diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-10-24 11:51:05 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-10-24 19:33:54 +0300 |
commit | e8290993c8f52719613dde85881fe87723b7de54 (patch) | |
tree | 326101757c26f408d8d173b0d4d5973805bc2495 | |
parent | 602ff4dd8f6704adb5143424637772a5649de86e (diff) | |
download | alpine-conf-e8290993c8f52719613dde85881fe87723b7de54.tar.bz2 alpine-conf-e8290993c8f52719613dde85881fe87723b7de54.tar.xz |
update-kernel: use quiet mode when available
-rw-r--r-- | update-kernel.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/update-kernel.in b/update-kernel.in index e2c17b2..4ab4cb5 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -40,14 +40,14 @@ clean_up() { set +e ignore_sigs - apk del $VIRTUAL + apk del -q $VIRTUAL rm -fr $TMPDIR } trap clean_up EXIT $SIGNALS -apk add -U --virtual $VIRTUAL mkinitfs squashfs-tools +apk add -qU -t $VIRTUAL mkinitfs squashfs-tools . /etc/mkinitfs/mkinitfs.conf @@ -56,9 +56,9 @@ FLAVOR=$(uname -r | cut -d - -f 3-) TMPDIR=$(mktemp -dt $SCRIPT.XXXXXX) ROOT=$TMPDIR/root -apk add --arch $ARCH --root $ROOT --keys-dir /etc/apk/keys \ - --repositories /etc/apk/repositories --no-scripts \ - --initdb -U alpine-base dahdi-linux linux-$FLAVOR linux-firmware +apk add -qU -p $ROOT --initdb --no-scripts --arch $ARCH \ + --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories \ + alpine-base dahdi-linux linux-$FLAVOR linux-firmware KVER=$(ls $ROOT/lib/modules) depmod -b $ROOT $KVER @@ -73,7 +73,7 @@ cp -a $ROOT/lib/modules $MODLOOP cp -a $ROOT/lib/firmware $MODLOOP/modules mksquashfs $MODLOOP $STAGING/$MODIMG -comp xz -mkinitfs -F "$features squashfs" -b $ROOT -o $STAGING/$FLAVOR.gz $KVER +mkinitfs -q -F "$features squashfs" -b $ROOT -o $STAGING/$FLAVOR.gz $KVER cp $ROOT/boot/vmlinuz-$FLAVOR $STAGING/$FLAVOR |