From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1C45159CB1 for ; Mon, 11 Apr 2016 14:07:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71C2421C00E; Mon, 11 Apr 2016 14:07:17 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D366621C00E for ; Mon, 11 Apr 2016 14:07:16 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id a140so14476970wma.0 for ; Mon, 11 Apr 2016 07:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nextworks-it.20150623.gappssmtp.com; s=20150623; h=to:from:organization:subject:message-id:date:user-agent :mime-version; bh=CfRo4gsUmVtIqr5DzOyej4euDATO2WYnDODXbk8VNp4=; b=U/YXA9bUd6Nq42LDOQf1Je8u4EIiZpYBZe2yWOjiXhfdR6PibLj+xwjWimBwK/G6uF 79Q3LlynO/0pFh0zlH1qBVItMCH6K3+AhWeA7UDt6yhaI2V+GxN1q9gwnL2k3p5ySjGh H+AVAxY5KIQkGwcXiZ9SVHEswxXujc+i/+OhxeK0d9t6w2cn+hAhuHqyMrNNEaMauCcL ZfvF0NiBhB29dcSBuKLqWfBWTwJ6MQ1ePjj3P4aCy15deGdCSKFDXurXoGL3h1plIwdP mswEdmyAsVsRQ/tBn8tIj53jMCbmGDPN2uHd1aTTCV1TrWHQN4DOeYNL/jJZEOvnkgWG YNcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:organization:subject:message-id:date :user-agent:mime-version; bh=CfRo4gsUmVtIqr5DzOyej4euDATO2WYnDODXbk8VNp4=; b=QdOvAqMqRz94nBknFv8qYncdGI4ES5trDB9SiwIJb2BSAHENV50qpT7nrde5fsl3rM /+B4xmP4kvvoeXXdt67s+NmE3IiseCgZPjz1cqXE0zdWRsilwbSpYDutBBQbrBPlFWR9 tL9/5oqydW/2pTcFIO1Yldd6FIBvM4c4FdMX2rcb6uLZzBpSzh93ifcAfLDkdsNk2duN cPutaEIUI5Qg3vQ5NqtU0KxDkx2w7eHnIFuSW5cvi+jQzixceMSD2gTNgmTSaC0g5XAJ EKQTmUVvY444BzdlKLDUawLPkfahrggBUZoK4U8PSMGVIcEunszAmQs69VQxwdbMP/m9 9i2g== X-Gm-Message-State: AD7BkJIfbn7w220S/XaW6yvBXiHFEyjIggFt4VMtpKjIVeI1HD6ru9BHpPRTrdW6ioJuGQ== X-Received: by 10.194.175.33 with SMTP id bx1mr24183415wjc.104.1460383635057; Mon, 11 Apr 2016 07:07:15 -0700 (PDT) Received: from [10.0.2.148] ([213.182.68.158]) by smtp.gmail.com with ESMTPSA id u145sm17540274wmu.17.2016.04.11.07.07.12 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Apr 2016 07:07:13 -0700 (PDT) To: gentoo-catalyst@lists.gentoo.org From: Marco Gigante Organization: Nextworks Srl Subject: [gentoo-catalyst] livecd_stage2 autoresume clear Message-ID: <570BAF8F.6040809@nextworks.it> Date: Mon, 11 Apr 2016 16:07:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050001010108010902010206" X-Archives-Salt: c1db10ae-f50b-4b70-b904-0d1ddb46eb9c X-Archives-Hash: 6815abc69d31c3ed39cea34a5a7c7b1f This is a multi-part message in MIME format. --------------050001010108010902010206 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi. I'm using catalyst to generate installcd-stage2-minimal with custom changes and packages. I realized catalyst clears autoresume states once the iso image was successfully generated, regardless the fact I run catalyst with or without --clear-autoresume option. Poking around the code, for my convenience I made the change as in the attached diff (vs. master branch). Could such modification bring to unexpected behaviour? I tried with all 2.X, 3.0, and master branches seeing the same behaviour. Thanks in advance for any help. marco --------------050001010108010902010206 Content-Type: text/x-patch; name="0001-Set-autoresume-clear-option-dependent-for-livecd_sta.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Set-autoresume-clear-option-dependent-for-livecd_sta.pa"; filename*1="tch" >From 60458178bdbd3d18e4264a16641365b898880774 Mon Sep 17 00:00:00 2001 From: Marco Gigante Date: Mon, 11 Apr 2016 15:23:31 +0200 Subject: [PATCH] Set autoresume clear option-dependent for livecd_stage2 --- catalyst/targets/livecd_stage2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catalyst/targets/livecd_stage2.py b/catalyst/targets/livecd_stage2.py index ea916b8..e1e7496 100644 --- a/catalyst/targets/livecd_stage2.py +++ b/catalyst/targets/livecd_stage2.py @@ -83,4 +83,5 @@ class livecd_stage2(StageBase): "livecd_update","root_overlay","fsscript","rcupdate","unmerge",\ "unbind","remove","empty","target_setup",\ "setup_overlay","create_iso"] - self.settings["action_sequence"].append("clear_autoresume") + if "clear-autoresume" not in self.settings["options"]: + self.settings["action_sequence"].append("clear_autoresume") -- 1.7.9.5 --------------050001010108010902010206--