Skip to content
Snippets Groups Projects
Commit 3abc172e authored by Natanael Copa's avatar Natanael Copa
Browse files

initram: kill .apk-new files after installing newroot

and add a boot option keep_apk_new to keep them. Might be useful during
upgrades.
parent 14bcd8dd
No related merge requests found
......@@ -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
......
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