From 5ee337ce35ed30a630128090fc54e30778a115a8 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 17 Nov 2022 14:51:17 +0100 Subject: update-kernel: mock depmod and mkinitfs allow pass options for mksquashfs via MKSQUASHFS_OPTS. this will allow us to pass -info as option to test what gets included in the modloop. --- update-kernel.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'update-kernel.in') diff --git a/update-kernel.in b/update-kernel.in index 681d774..46b920d 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -285,7 +285,7 @@ find $ROOTFS/lib/modules \ -o -name \*.ko.xz -exec unxz {} + \ -o -name \*.ko.zst -exec unzstd --rm {} + \ -o ! -name '' # don't fail if no files found. busybox find doesn't support -true -depmod -b $ROOTFS "$KVER" +$MOCK depmod -b $ROOTFS "$KVER" STAGING=$tmpdir/boot @@ -339,14 +339,14 @@ case $ARCH in x86|x86_64) mksfs="-Xbcj x86" ;; *) mksfs= esac -mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz -exit-on-error $mksfs +mksquashfs $MODLOOP "$STAGING/$MODIMG" $MKSQUASHFS_OPTS -comp xz -exit-on-error $mksfs if [ -n "$MODLOOPSIGN" ]; then sign_modloop "$STAGING/$MODIMG" MKINITFS_ARGS="$MKINITFS_ARGS -s $tmpdir/$MODLOOPSIG" fi -mkinitfs $MKINITFS_ARGS -q -b $ROOTFS -F "$features base squashfs" \ +$MOCK mkinitfs $MKINITFS_ARGS -q -b $ROOTFS -F "$features base squashfs" \ -o "$STAGING/initramfs-$FLAVOR" "$KVER" for file in System.map config vmlinuz; do -- cgit v1.2.3