diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-17 08:04:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-17 08:53:47 +0000 |
commit | 4f314bd697ebadd47c156f7966f720ef5cddf0ff (patch) | |
tree | 998ccb0a20e047dedd65d952631d5d3ca980e89b | |
parent | 5cbac6ffb832633ad3ea8349b6e68b26403edd4a (diff) | |
download | alpine-conf-4f314bd697ebadd47c156f7966f720ef5cddf0ff.zip |
setup-disk: don't install sfdisk on target system
-rw-r--r-- | setup-disk.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in index 750ab46..ea3c590 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -326,7 +326,9 @@ EOF cp /etc/apk/keys/* "$mnt"/etc/apk/keys/ local apkflags="--initdb --quiet --progress --update-cache --clean-protected" - local pkgs=$(cat "$mnt"/etc/apk/world "$mnt"/var/lib/apk/world 2>/dev/null) + local pkgs=$(grep -h -v -w sfdisk "$mnt"/etc/apk/world \ + "$mnt"/var/lib/apk/world 2>/dev/null) + pkgs="$pkgs acct linux-$KERNEL_FLAVOR alpine-base" if [ "$(rc --sys)" = "XEN0" ]; then pkgs="$pkgs xen-hypervisor" |