diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-12-05 21:05:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-12-05 21:05:51 +0000 |
commit | 439c020e268830965fd5ee90147e93e753855caf (patch) | |
tree | ea599d87eb0e3ca2b6ba24bc67532860d33ee5b4 | |
parent | 0bd627de56f28063d9fcef455587d0b7d11a00a6 (diff) | |
download | alpine-conf-439c020e268830965fd5ee90147e93e753855caf.tar.bz2 alpine-conf-439c020e268830965fd5ee90147e93e753855caf.tar.xz |
update-kernel: don't install deps if script runs in fakeroot
-rw-r--r-- | update-kernel.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/update-kernel.in b/update-kernel.in index 6d24649..918055a 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -154,14 +154,16 @@ clean_up() { set +e ignore_sigs - [ "$SUPERUSER" ] && apk del $QUIET_OPT $VIRTUAL + if [ "$SUPERUSER" ] && [ -z "$FAKEROOTKEY" ]; then + apk del $QUIET_OPT $VIRTUAL + fi rm -fr $TMPDIR } trap clean_up EXIT $SIGNALS -if [ "$SUPERUSER" ]; then +if [ "$SUPERUSER" ] && [ -z "$FAKEROOTKEY" ]; then apk add $QUIET_OPT --update-cache -t $VIRTUAL mkinitfs squashfs-tools kmod fi |