From bbbb6c5bf26b764dfff8a83c2cc0ed3769bfdd74 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 2 Nov 2013 10:11:01 +0000 Subject: images: Split dracut options out into a config file. Also ensure that the compression method is xz -9 for much better compression (was previously defaulting to gzip) --- images/NEWS | 2 ++ images/dracut.conf | 4 ++++ images/make_boot_img | 3 +-- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 images/dracut.conf (limited to 'images') diff --git a/images/NEWS b/images/NEWS index 3cf924b06..84ab15c8a 100644 --- a/images/NEWS +++ b/images/NEWS @@ -1,3 +1,5 @@ +- add a dracut.conf rather than adding lots of command line options +- ensure initrd is xz compressed - include network modules as specified by kernel/list_modules.pm Version 1.94 - 29 October 2013 by Colin Guthrie diff --git a/images/dracut.conf b/images/dracut.conf new file mode 100644 index 000000000..61b2e5636 --- /dev/null +++ b/images/dracut.conf @@ -0,0 +1,4 @@ +hostonly=no +nofscks=yes +omit_dracutmodules+=" dash modsign systemd plymouth btrfs crypt lvm cifs resume rootfs-block biosdevname usrmount shutdown " +compress=xz diff --git a/images/make_boot_img b/images/make_boot_img index 2be5bbde5..b0e3eec70 100755 --- a/images/make_boot_img +++ b/images/make_boot_img @@ -161,9 +161,8 @@ sub initrd { $modules="$modules mgakadeploy " if ($ENV{BUILD_KA}); mkdir_p("build/dracut.conf.d"); - touch("build/dracut.conf"); # TODO if --nofscks and --no-hostonly are switched, dracut gives an error - fix or report upstream - __ "DRAKX_STAGE1_BINARY=$stage1_binary DRAKX_INIT_BINARY=$init_binary dracut --conf ./build/dracut.conf --confdir ./build/dracut.conf.d --nofscks --no-hostonly --add ' $modules ' --omit ' dash modsign systemd plymouth btrfs crypt lvm cifs resume rootfs-block biosdevname shutdown ' --add-drivers ' $drivers ' '$img' '$kernel'" + __ "DRAKX_STAGE1_BINARY=$stage1_binary DRAKX_INIT_BINARY=$init_binary dracut --conf dracut.conf --confdir ./build/dracut.conf.d --add ' $modules ' --add-drivers ' $drivers ' '$img' '$kernel'" } -- cgit v1.2.1