Commit e8290993 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

update-kernel: use quiet mode when available

parent 602ff4dd
...@@ -40,14 +40,14 @@ clean_up() { ...@@ -40,14 +40,14 @@ clean_up() {
set +e set +e
ignore_sigs ignore_sigs
apk del $VIRTUAL apk del -q $VIRTUAL
rm -fr $TMPDIR rm -fr $TMPDIR
} }
trap clean_up EXIT $SIGNALS 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 . /etc/mkinitfs/mkinitfs.conf
...@@ -56,9 +56,9 @@ FLAVOR=$(uname -r | cut -d - -f 3-) ...@@ -56,9 +56,9 @@ FLAVOR=$(uname -r | cut -d - -f 3-)
TMPDIR=$(mktemp -dt $SCRIPT.XXXXXX) TMPDIR=$(mktemp -dt $SCRIPT.XXXXXX)
ROOT=$TMPDIR/root ROOT=$TMPDIR/root
apk add --arch $ARCH --root $ROOT --keys-dir /etc/apk/keys \ apk add -qU -p $ROOT --initdb --no-scripts --arch $ARCH \
--repositories /etc/apk/repositories --no-scripts \ --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories \
--initdb -U alpine-base dahdi-linux linux-$FLAVOR linux-firmware alpine-base dahdi-linux linux-$FLAVOR linux-firmware
KVER=$(ls $ROOT/lib/modules) KVER=$(ls $ROOT/lib/modules)
depmod -b $ROOT $KVER depmod -b $ROOT $KVER
...@@ -73,7 +73,7 @@ cp -a $ROOT/lib/modules $MODLOOP ...@@ -73,7 +73,7 @@ cp -a $ROOT/lib/modules $MODLOOP
cp -a $ROOT/lib/firmware $MODLOOP/modules cp -a $ROOT/lib/firmware $MODLOOP/modules
mksquashfs $MODLOOP $STAGING/$MODIMG -comp xz 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 cp $ROOT/boot/vmlinuz-$FLAVOR $STAGING/$FLAVOR
......
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