From 3abc172e08d421545062103ddf40a5e584010ba7 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 23 Feb 2009 12:06:05 +0000 Subject: initram: kill .apk-new files after installing newroot and add a boot option keep_apk_new to keep them. Might be useful during upgrades. --- initramfs-init | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'initramfs-init') 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 -- cgit v1.2.3-60-g2f50