Commit 439c020e authored by Natanael Copa's avatar Natanael Copa

update-kernel: don't install deps if script runs in fakeroot

parent 0bd627de
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment