diff options
Diffstat (limited to 'kvmx-create')
-rwxr-xr-x | kvmx-create | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmx-create b/kvmx-create index 8b30e83..cdf3278 100755 --- a/kvmx-create +++ b/kvmx-create @@ -286,6 +286,14 @@ function kvmx_create_custom { if [ "$bootloader" == "grub" ]; then $APT_INSTALL grub-pc + + # Serial console support + echo '' >> $WORK/etc/default/grub + echo '# Custom configuration' >> $WORK/etc/default/grub + echo 'GRUB_TERMINAL=serial' >> $WORK/etc/default/grub + echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' >> $WORK/etc/default/grub + echo 'GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"' >> $WORK/etc/default/grub + kvmx_sudo_run chroot $WORK/ update-grub kvmx_sudo_run chroot $WORK/ grub-install $device # Possible alternatives: |