From: "Richard Farina" <zerochaos@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/catalyst:fix_stage1 commit in: targets/stage1/ Date: Wed, 14 Sep 2016 22:12:17 +0000 (UTC) [thread overview] Message-ID: <1473891107.36f490a4476148f800fb7c16a6b45d46cc6ee4f7.zerochaos@gentoo> (raw) commit: 36f490a4476148f800fb7c16a6b45d46cc6ee4f7 Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org> AuthorDate: Wed Sep 14 22:11:47 2016 +0000 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> CommitDate: Wed Sep 14 22:11:47 2016 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=36f490a4 stage1-controller.sh was *not running in chroot*, move it's functions into the pre-clean which does safely run in chroot targets/stage1/stage1-controller.sh | 5 +---- targets/stage1/stage1-preclean-chroot.sh | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/targets/stage1/stage1-controller.sh b/targets/stage1/stage1-controller.sh index 6af1385..ac813de 100755 --- a/targets/stage1/stage1-controller.sh +++ b/targets/stage1/stage1-controller.sh @@ -27,10 +27,7 @@ case "$1" in ;; clean) - # Clean out man, info and doc files - rm -rf /tmp/stage1root/usr/share/{man,doc,info}/* - # Zap all .pyc and .pyo files - find /tmp/stage1root/ -iname "*.py[co]" -exec rm -f {} \; + exit 0 ;; *) diff --git a/targets/stage1/stage1-preclean-chroot.sh b/targets/stage1/stage1-preclean-chroot.sh index 0ba4c00..1b623f1 100755 --- a/targets/stage1/stage1-preclean-chroot.sh +++ b/targets/stage1/stage1-preclean-chroot.sh @@ -22,6 +22,11 @@ else echo UTC > "${ROOT}/etc/TZ" fi +# Clean out man, info and doc files +rm -rf "${ROOT}"/usr/share/{man,doc,info}/* +# Zap all .pyc and .pyo files +find "${ROOT}"/ -iname "*.py[co]" -exec rm -f {} \; + # unset ROOT for safety (even though cleanup_stages doesn't use it) unset ROOT cleanup_stages
WARNING: multiple messages have this Message-ID (diff)
From: "Richard Farina" <zerochaos@gentoo.org> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/catalyst:master commit in: targets/stage1/ Date: Thu, 15 Sep 2016 00:57:01 +0000 (UTC) [thread overview] Message-ID: <1473891107.36f490a4476148f800fb7c16a6b45d46cc6ee4f7.zerochaos@gentoo> (raw) Message-ID: <20160915005701.4xs1EKFDx_aHA200docLnGEheNteI1kcWSHIjuL_ZZY@z> (raw) commit: 36f490a4476148f800fb7c16a6b45d46cc6ee4f7 Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org> AuthorDate: Wed Sep 14 22:11:47 2016 +0000 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> CommitDate: Wed Sep 14 22:11:47 2016 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=36f490a4 stage1-controller.sh was *not running in chroot*, move it's functions into the pre-clean which does safely run in chroot targets/stage1/stage1-controller.sh | 5 +---- targets/stage1/stage1-preclean-chroot.sh | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/targets/stage1/stage1-controller.sh b/targets/stage1/stage1-controller.sh index 6af1385..ac813de 100755 --- a/targets/stage1/stage1-controller.sh +++ b/targets/stage1/stage1-controller.sh @@ -27,10 +27,7 @@ case "$1" in ;; clean) - # Clean out man, info and doc files - rm -rf /tmp/stage1root/usr/share/{man,doc,info}/* - # Zap all .pyc and .pyo files - find /tmp/stage1root/ -iname "*.py[co]" -exec rm -f {} \; + exit 0 ;; *) diff --git a/targets/stage1/stage1-preclean-chroot.sh b/targets/stage1/stage1-preclean-chroot.sh index 0ba4c00..1b623f1 100755 --- a/targets/stage1/stage1-preclean-chroot.sh +++ b/targets/stage1/stage1-preclean-chroot.sh @@ -22,6 +22,11 @@ else echo UTC > "${ROOT}/etc/TZ" fi +# Clean out man, info and doc files +rm -rf "${ROOT}"/usr/share/{man,doc,info}/* +# Zap all .pyc and .pyo files +find "${ROOT}"/ -iname "*.py[co]" -exec rm -f {} \; + # unset ROOT for safety (even though cleanup_stages doesn't use it) unset ROOT cleanup_stages
next reply other threads:[~2016-09-14 22:12 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-09-14 22:12 Richard Farina [this message] 2016-09-15 0:57 ` [gentoo-commits] proj/catalyst:master commit in: targets/stage1/ Richard Farina
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=1473891107.36f490a4476148f800fb7c16a6b45d46cc6ee4f7.zerochaos@gentoo \ --to=zerochaos@gentoo.org \ --cc=gentoo-commits@lists.gentoo.org \ --cc=gentoo-dev@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: linkBe 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