diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-07-22 17:15:03 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-07-22 17:15:03 +0200 |
commit | a9667fbc7e50a2d0794e13058a7bb294091f324e (patch) | |
tree | 278d24e0b339b0c54e3027b06f523130a83902ce /roles/installer/debian | |
parent | Merge branch 'topic/installer-again-and-again' (diff) |
ubuntu: disable splash screen and vt_handoff
Diffstat (limited to 'roles/installer/debian')
3 files changed, 9 insertions, 0 deletions
diff --git a/roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 b/roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 index b8562e2e..47d1065a 100644 --- a/roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 +++ b/roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 @@ -73,6 +73,9 @@ d-i preseed/late_command string \ lvremove -f {{ hostvars[install_hostname].host_name }}/dummy; \ in-target bash -c "swapoff -a; sed -e '/^\/swapfile/d' -i /etc/fstab; rm -f /swapfile"; \ in-target bash -c "apt-get update -q && apt-get full-upgrade -y -q"; \ + in-target bash -c "sed -e 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=.*\)splash/\1/' -i /etc/default/grub"; \ + in-target bash -c "sed -e 's/^vt_handoff=.*$/vt_handoff=\"0\"/' -i /etc/grub.d/10_linux"; \ + in-target bash -c "update-grub"; \ {% if preseed_virtual_machine %} in-target bash -c "apt-get install -y -q --no-install-recommends linux-image-virtual"; \ in-target bash -c "apt-get purge -y -q linux-image-generic intel-microcode amd64-microcode iucode-tool linux-firmware"; \ diff --git a/roles/installer/debian/preseed/templates/preseed_ubuntu-focal.cfg.j2 b/roles/installer/debian/preseed/templates/preseed_ubuntu-focal.cfg.j2 index d8208a5e..d7438fd7 100644 --- a/roles/installer/debian/preseed/templates/preseed_ubuntu-focal.cfg.j2 +++ b/roles/installer/debian/preseed/templates/preseed_ubuntu-focal.cfg.j2 @@ -73,6 +73,9 @@ d-i preseed/late_command string \ lvremove -f {{ hostvars[install_hostname].host_name }}/dummy; \ in-target bash -c "swapoff -a; sed -e '/^\/swapfile/d' -i /etc/fstab; rm -f /swapfile"; \ in-target bash -c "apt-get update -q && apt-get full-upgrade -y -q"; \ + in-target bash -c "sed -e 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=.*\)splash/\1/' -i /etc/default/grub"; \ + in-target bash -c "sed -e 's/^vt_handoff=.*$/vt_handoff=\"0\"/' -i /etc/grub.d/10_linux"; \ + in-target bash -c "update-grub"; \ {% if preseed_virtual_machine %} in-target bash -c "apt-get install -y -q --no-install-recommends linux-image-virtual"; \ in-target bash -c "apt-get purge -y -q linux-image-generic intel-microcode amd64-microcode iucode-tool linux-firmware"; \ diff --git a/roles/installer/debian/preseed/templates/preseed_ubuntu-xenial.cfg.j2 b/roles/installer/debian/preseed/templates/preseed_ubuntu-xenial.cfg.j2 index 0387027f..e4536d4e 100644 --- a/roles/installer/debian/preseed/templates/preseed_ubuntu-xenial.cfg.j2 +++ b/roles/installer/debian/preseed/templates/preseed_ubuntu-xenial.cfg.j2 @@ -69,6 +69,9 @@ d-i finish-install/reboot_in_progress note d-i preseed/late_command string \ lvremove -f {{ hostvars[install_hostname].host_name }}/dummy; \ in-target bash -c "apt-get update -q && apt-get full-upgrade -y -q"; \ + in-target bash -c "sed -e 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=.*\)splash/\1/' -i /etc/default/grub"; \ + in-target bash -c "sed -e 's/^vt_handoff=.*$/vt_handoff=\"0\"/' -i /etc/grub.d/10_linux"; \ + in-target bash -c "update-grub"; \ {% if preseed_virtual_machine %} in-target bash -c "apt-get install -y -q --no-install-recommends linux-image-virtual"; \ in-target bash -c "apt-get purge -y -q linux-image-generic intel-microcode amd64-microcode iucode-tool linux-firmware"; \ |