From: Michael Tremer Date: Mon, 9 May 2022 10:25:28 +0000 (+0000) Subject: master: Add kernel command line arguments for live OS X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d720a7308eb08fc67a495f566499fc084c9aec23;p=people%2Fms%2Fbricklayer.git master: Add kernel command line arguments for live OS Signed-off-by: Michael Tremer --- diff --git a/src/bricklayer-master b/src/bricklayer-master index 2f4fbe5..c6db433 100644 --- a/src/bricklayer-master +++ b/src/bricklayer-master @@ -169,6 +169,16 @@ make_grub_config() { local name="${2}" local class="${3}" local arch="${4}" + local label="${5}" + + # Make kernel commandline + local commandline=( + # Tell dracut where to find the filesystem + "root=live:LABEL=${label}" + + # Be less verbose during boot + "quiet" + ) cat > "${path}" <' { menuentry 'Unattended installation' --class ${class} --id install.unattended { - linux /boot/vmlinuz installer.unattended=1 + linux /boot/vmlinuz ${commandline[@]} installer.unattended=1 initrd /boot/initramfs.img } } @@ -469,7 +479,7 @@ mkimage() { local os_release="$(mktemp)" # Create the live system image - if ! make_live_system_image "${tempdir}/live-os.img" "${os_release}" \ + if ! make_live_system_image "${tempdir}/squashfs.img" "${os_release}" \ "kernel = ${kernel_release}"; then rm -rf "${tempdir}" "${os_release}" return 1