submenu 'Other Installation Options -->' {
menuentry 'Unattended installation' --class ${class} --id install.unattended {
- linux /boot/vmlinuz ${commandline[@]} installer.unattended=1
+ linux /boot/vmlinuz ${commandline[@]} installer.unattended
initrd /boot/initramfs.img
}
}
# Split each word
key, delim, value = word.partition("=")
- # Skip any keywords
- if not key or not value:
- continue
+ # Parse console= options
+ if key == "console":
+ self._cmdline_handle_console(value)
- if key.startswith("installer."):
- self._cmdline_handle_keyword(key[10:], value)
+ # Activate unattended mode
+ elif key == "installer.unattended":
+ self.unattended = True
- elif key == "console":
- self._cmdline_handle_console(value)
+ # Handle any installer.* keywords
+ elif key.startswith("installer."):
+ self._cmdline_handle_keyword(key[10:], value)
def _cmdline_handle_keyword(self, key, value):
"""