summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinitramfs-init5
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