]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 e2df11ee01798dc41a755ce96d5452e0bc6efcdd..0c2866c0b9d79f8168464388204f3273acf976e6 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