ソースを参照

mknet.sh: Change default initrd compression to xz

Michael Aldridge 7 年 前
コミット
76d42ecaae
1 ファイル変更3 行追加3 行削除
  1. 3 3
      mknet.sh.in

+ 3 - 3
mknet.sh.in

@@ -52,7 +52,7 @@ Usage: $PROGNAME [options] <rootfs>
 Options:
  -r <repo-url>      Use this XBPS repository (may be specified multiple times).
  -c <cachedir>      Use this XBPS cache directory.
- -i <lz4|gzip|bzip2|xz> Compression type for the initramfs image (lz4 if unset).
+ -i <lz4|gzip|bzip2|xz> Compression type for the initramfs image (xz if unset).
  -o <file>          Output file name for the netboot tarball (auto if unset).
 
  -k <keymap>        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 \