diff --git a/mknet.sh.in b/mknet.sh.in index 9a26862..fdbdd99 100644 --- a/mknet.sh.in +++ b/mknet.sh.in @@ -52,7 +52,7 @@ Usage: $PROGNAME [options] Options: -r Use this XBPS repository (may be specified multiple times). -c Use this XBPS cache directory. - -i Compression type for the initramfs image (lz4 if unset). + -i Compression type for the initramfs image (xz if unset). -o Output file name for the netboot tarball (auto if unset). -k Console keymap to set (us if unset) @@ -151,7 +151,7 @@ info_msg "Install kernel and additional required netboot packages" # dracut-network provides the in-initrd network stack # dialog is needed by the install environment # ${INITRAMFS_COMPRESSION} is the name of the compressor we want to use (lz4 by default) -run_cmd_target "xbps-install $XBPS_CONFFILE $XBPS_CACHEDIR $XBPS_REPOSITORY -r $ROOTFS -Sy linux dracut syslinux binutils dracut-network dialog ${INITRAMFS_COMPRESSION-lz4}" +run_cmd_target "xbps-install $XBPS_CONFFILE $XBPS_CACHEDIR $XBPS_REPOSITORY -r $ROOTFS -Sy linux dracut syslinux binutils dracut-network dialog ${INITRAMFS_COMPRESSION-xz}" run_cmd_chroot "$ROOTFS" "xbps-reconfigure -a" # Dracut needs to know the kernel version that will be using this @@ -168,7 +168,7 @@ KERNELVERSION=$(ls "$ROOTFS/usr/lib/modules/") info_msg "Building initrd for kernel version $KERNELVERSION" run_cmd_chroot "$ROOTFS" "env -i /usr/bin/dracut \ -N \ - --${INITRAMFS_COMPRESSION-lz4} \ + --${INITRAMFS_COMPRESSION-xz} \ --add-drivers ahci \ --force-add 'autoinstaller netmenu' \ --omit systemd \