mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-09 21:57:37 +00:00
initram: kill .apk-new files after installing newroot
and add a boot option keep_apk_new to keep them. Might be useful during upgrades.
This commit is contained in:
parent
14bcd8ddb0
commit
3abc172e08
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user