From: Matt Turner <mattst88@gentoo.org>
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] [PATCH] Clean up chroot directory on success
Date: Sat, 20 Feb 2021 21:04:07 -0500 [thread overview]
Message-ID: <CAEdQ38FbhoKyxML811YH_ehHAVTNPoz-g5TGCUt3jCPWUnsfwQ@mail.gmail.com> (raw)
In-Reply-To: <20210204110721.33846-1-gentoo.catalyst@xxoo.ws>
On Thu, Feb 4, 2021 at 6:08 AM Daniel Cordero <gentoo.catalyst@xxoo.ws> wrote:
>
> From: Daniel Cordero <catalyst@0xdc.io>
>
> The embedded and livecd-stage2 targets override the action sequence
> without calling set_completion_action_sequences. This would leave the
> temporary build environment unpacked on the filesystem.
Thanks. Seems like a good idea.
I had to rebase this, because about 10 days before this patch was sent
I changed the sequences to be self.function rather than "function" in
commit 440a379ae94e (catalyst: Store references to functions). Please
try to rebase your patches onto master in the future.
> Signed-off-by: Daniel Cordero <catalyst@0xdc.io>
> ---
> catalyst/targets/embedded.py | 2 +-
> catalyst/targets/livecd_stage2.py | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/catalyst/targets/embedded.py b/catalyst/targets/embedded.py
> index 918b36bf..102b5edd 100644
> --- a/catalyst/targets/embedded.py
> +++ b/catalyst/targets/embedded.py
> @@ -62,8 +62,8 @@ class embedded(StageBase):
> "empty",
> "clean",
> "capture",
I think we need to also remove capture here, since
set_completion_action_sequences() begins with
if "fetch" not in self.settings["options"]:
self.finish_sequence.append(self.capture)
I'll make that change locally when I commit this.
> - "clear_autoresume",
> ])
> + self.set_completion_action_sequences()
>
> def set_root_path(self):
> self.settings["root_path"] = normpath("/tmp/mergeroot")
> diff --git a/catalyst/targets/livecd_stage2.py b/catalyst/targets/livecd_stage2.py
> index 3606047f..b8bb56a2 100644
> --- a/catalyst/targets/livecd_stage2.py
> +++ b/catalyst/targets/livecd_stage2.py
> @@ -117,4 +117,4 @@ class livecd_stage2(StageBase):
> "setup_overlay",
> "create_iso",
> ])
> - self.finish_sequence.append("clear_autoresume")
> + self.set_completion_action_sequences()
> --
> 2.26.2
>
>
prev parent reply other threads:[~2021-02-21 2:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 11:07 [gentoo-catalyst] [PATCH] Clean up chroot directory on success Daniel Cordero
2021-02-21 2:04 ` Matt Turner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEdQ38FbhoKyxML811YH_ehHAVTNPoz-g5TGCUt3jCPWUnsfwQ@mail.gmail.com \
--to=mattst88@gentoo.org \
--cc=gentoo-catalyst@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox