diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-08-08 08:19:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-08-08 08:19:46 -0300 |
commit | 0ccaea92faf3911d054fd7d120d04a4ff0d68a0d (patch) | |
tree | 201af574f7c1b455a4de128b99fbf5028a53b974 /share/trashman/grub-serial-console | |
parent | 823ff53f995eb4e5f29a971fa7341d701eef3cff (diff) | |
download | trashman-0ccaea92faf3911d054fd7d120d04a4ff0d68a0d.tar.gz trashman-0ccaea92faf3911d054fd7d120d04a4ff0d68a0d.tar.bz2 |
Adds grub-serial-console and swapfile
Diffstat (limited to 'share/trashman/grub-serial-console')
-rw-r--r-- | share/trashman/grub-serial-console/info | 1 | ||||
-rwxr-xr-x | share/trashman/grub-serial-console/unix/linux/debian/install | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/share/trashman/grub-serial-console/info b/share/trashman/grub-serial-console/info new file mode 100644 index 0000000..7047634 --- /dev/null +++ b/share/trashman/grub-serial-console/info @@ -0,0 +1 @@ +setup serial console for GNU Grub diff --git a/share/trashman/grub-serial-console/unix/linux/debian/install b/share/trashman/grub-serial-console/unix/linux/debian/install new file mode 100755 index 0000000..8832fdd --- /dev/null +++ b/share/trashman/grub-serial-console/unix/linux/debian/install @@ -0,0 +1,29 @@ +#!/usr/bin/env sh +# +# Configure a swapfile +# + +# Parameters +SHARE="$1" +LIB="$2" + +# Include basic functions +. $LIB/trashman/functions || exit 1 +. $LIB/trashman/debian || exit 1 + +# Serial console support for VMs not created by a recent kvmx-create +if ! grep -q "GRUB_TERMINAL=serial" /etc/default/grub; then + # Serial console support + #echo '' | sudo tee -a /etc/default/grub > /dev/null + #echo '# Custom configuration' | sudo tee -a /etc/default/grub > /dev/null + #echo 'GRUB_TERMINAL=serial' | sudo tee -a /etc/default/grub > /dev/null + #echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' | sudo tee -a /etc/default/grub > /dev/null + #echo 'GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"' | sudo tee -a /etc/default/grub > /dev/null + #sudo update-grub + echo '' | tee -a /etc/default/grub > /dev/null + echo '# Custom configuration' | tee -a /etc/default/grub > /dev/null + echo 'GRUB_TERMINAL=serial' | tee -a /etc/default/grub > /dev/null + echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' | tee -a /etc/default/grub > /dev/null + echo 'GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"' | tee -a /etc/default/grub > /dev/null + update-grub +fi |