diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-17 14:51:17 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-17 15:50:38 +0000 |
commit | 5ee337ce35ed30a630128090fc54e30778a115a8 (patch) | |
tree | b602b773a7b6e760999e343e7a15c8448b3e8763 /update-kernel.in | |
parent | 5759305c42df1926fa9222fb9bd307674453352d (diff) | |
download | alpine-conf-5ee337ce35ed30a630128090fc54e30778a115a8.zip |
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.
Diffstat (limited to 'update-kernel.in')
-rw-r--r-- | update-kernel.in | 6 |
1 files changed, 3 insertions, 3 deletions
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 |