Skip to content
Snippets Groups Projects
Commit a0297a62 authored by Timo Teräs's avatar Timo Teräs
Browse files

initramfs-init: use apk's --clean-protected

parent 8fb3af8d
No related branches found
No related tags found
No related merge requests found
......@@ -185,13 +185,12 @@ done
if [ -n "$KOPT_chart" ]; then
pkgs="$pkgs acct"
fi
apk add --root /newroot --initdb --quiet --progress $pkgs >/dev/null
eend $?
# kill .apk-new files
apkflags=""
if [ -z "$KOPT_keep_apk_new" ]; then
find /newroot/etc -name '*.apk-new' | xargs rm -f
apkflags="--clean-protected"
fi
apk add --root /newroot --initdb --quiet --progress $apkflags $pkgs >/dev/null
eend $?
# copy alpine release info
cp $ALPINE_MNT/.alpine-release $NEWROOT/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment