Not all kernel command-line parameters look like key=value.
disks:
primary: /dev/disk/by-id/ata-KINGSTON_SMS200S360G_50026B726A0002A2
kernel_cmdline:
- console: "ttyS0,115200n8"
+ - console=ttyS0,115200n8
disks:
primary: /dev/disk/by-id/ata-KINGSTON_SMS200S360G_50026B726A00DFF4
kernel_cmdline:
- console: "ttyS0,115200n8"
+ - console=ttyS0,115200n8
lineinfile:
path: /etc/default/grub
regexp: '^#?GRUB_CMDLINE_LINUX='
- line: 'GRUB_CMDLINE_LINUX="{{ map(lambda opt, val: opt + "=" + val, (install.kernel_cmdline or {}).items()).join(" ") }}"'
+ line: 'GRUB_CMDLINE_LINUX="{{ (install.kernel_cmdline or []).join(" ") }}"'
when: install is defined and install.kernel_cmdline is defined
notify: update grub
LABEL linux
KERNEL linux
INITRD initrd.preseed.gz
- APPEND install {{ map(lambda opt, val: opt + ' ' + val, (install.kernel_cmdline or {}).items()).join(' ') }}
+ APPEND install {{ (install.kernel_cmdline or []).join(' ') }}
- name: Make the USB disk bootable
pause: