From 439c020e268830965fd5ee90147e93e753855caf Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 5 Dec 2016 21:05:51 +0000 Subject: [PATCH 2/3] update-kernel: don't install deps if script runs in fakeroot --- update-kernel.in | 6 ++++-- 1 file 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 -- 2.11.0