diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-03-04 08:31:17 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-03-04 08:31:17 +0200 |
commit | a0297a62b274ee2995bf06aa0bb836f46780df00 (patch) | |
tree | aeec1c1685884b6b716f0fcab5942d015f83fa79 /initramfs-init | |
parent | 8fb3af8d05555bc4a8206b7f524826bad77ad948 (diff) | |
download | abuild-a0297a62b274ee2995bf06aa0bb836f46780df00.tar.gz abuild-a0297a62b274ee2995bf06aa0bb836f46780df00.tar.bz2 abuild-a0297a62b274ee2995bf06aa0bb836f46780df00.tar.xz abuild-a0297a62b274ee2995bf06aa0bb836f46780df00.zip |
initramfs-init: use apk's --clean-protected
Diffstat (limited to 'initramfs-init')
-rwxr-xr-x | initramfs-init | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/initramfs-init b/initramfs-init index 0ddf10d..bb4aae1 100755 --- a/initramfs-init +++ b/initramfs-init @@ -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/ |