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}" <<EOF
# Bricklayer GRUB configuration
set timeout=60
menuentry 'Install ${name} (${arch})' --class ${class} --id install {
- linux /boot/vmlinuz
+ linux /boot/vmlinuz ${commandline[@]}
initrd /boot/initramfs.img
}
submenu 'Other Installation Options -->' {
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
}
}
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