Enable serial console on all Azure instances
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Jun 2019 12:39:07 +0000 (13:39 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 1 Jul 2019 06:53:58 +0000 (07:53 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/partresize

index e2df11e..0c2866c 100644 (file)
@@ -41,6 +41,11 @@ case "${1}" in
                                        ;;
                        esac
 
+                       # Enable the serial console on all systems on Azure
+                       if running_on_azure; then
+                               scon="on"
+                       fi
+
                        mount /boot > /dev/null
                        if [ -e /boot/grub/grub.cfg ]; then
                                # swtich permanent to serial console if it was selected on first boot