diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-23 12:06:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-23 12:06:05 +0000 |
commit | 3abc172e08d421545062103ddf40a5e584010ba7 (patch) | |
tree | b355802671ea8f81086df782d58f2653f9ccc8b4 | |
parent | 14bcd8ddb01259d8f2500112241ed5dd1937325a (diff) | |
download | abuild-3abc172e08d421545062103ddf40a5e584010ba7.tar.gz abuild-3abc172e08d421545062103ddf40a5e584010ba7.tar.bz2 abuild-3abc172e08d421545062103ddf40a5e584010ba7.tar.xz abuild-3abc172e08d421545062103ddf40a5e584010ba7.zip |
initram: kill .apk-new files after installing newroot
and add a boot option keep_apk_new to keep them. Might be useful during
upgrades.
-rwxr-xr-x | initramfs-init | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/initramfs-init b/initramfs-init index 6e6a361..ab7ebf8 100755 --- a/initramfs-init +++ b/initramfs-init @@ -182,6 +182,11 @@ done apk add --root /newroot --initdb --quiet --progress $pkgs eend $? +# kill .apk-new files +if [ -z "$KOPT_keep_apk_new" ]; then + find /newroot/etc -name '*.apk-new' | xargs rm +fi + # copy alpine release info cp $ALPINE_MNT/.alpine-release $NEWROOT/ ln -sf /.alpine-release $NEWROOT/etc/alpine-release |