mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 15:33:28 +00:00
initramfs-init: use apk's --clean-protected
This commit is contained in:
parent
8fb3af8d05
commit
a0297a62b2
@ -185,13 +185,12 @@ done
|
|||||||
if [ -n "$KOPT_chart" ]; then
|
if [ -n "$KOPT_chart" ]; then
|
||||||
pkgs="$pkgs acct"
|
pkgs="$pkgs acct"
|
||||||
fi
|
fi
|
||||||
apk add --root /newroot --initdb --quiet --progress $pkgs >/dev/null
|
apkflags=""
|
||||||
eend $?
|
|
||||||
|
|
||||||
# kill .apk-new files
|
|
||||||
if [ -z "$KOPT_keep_apk_new" ]; then
|
if [ -z "$KOPT_keep_apk_new" ]; then
|
||||||
find /newroot/etc -name '*.apk-new' | xargs rm -f
|
apkflags="--clean-protected"
|
||||||
fi
|
fi
|
||||||
|
apk add --root /newroot --initdb --quiet --progress $apkflags $pkgs >/dev/null
|
||||||
|
eend $?
|
||||||
|
|
||||||
# copy alpine release info
|
# copy alpine release info
|
||||||
cp $ALPINE_MNT/.alpine-release $NEWROOT/
|
cp $ALPINE_MNT/.alpine-release $NEWROOT/
|
||||||
|
Loading…
Reference in New Issue
Block a user