OCI: Enable serial console by default

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2021-10-14 12:00:31 +00:00
committed by Arne Fitzenreiter
parent 80909fb6da
commit a09578f4eb
2 changed files with 11 additions and 3 deletions

View File

@@ -23,8 +23,16 @@ cat <<EOF
# Read the system manufacturer string from the BIOS
smbios --type 1 --get-string 4 --set system_manufacturer
# Read the chassis asset tag
smbios --type 3 --get-string 8 --set chassis_asset_tag
# Are we on Amazon EC2?
if [ "\$system_manufacturer" = "Amazon EC2" ]; then
next_entry=gnulinux-${KERNEL_RELEASE}-serial-${boot_device_id}
fi
# Are we on Oracle Cloud?
if [ "\$chassis_asset_tag" = "OracleCloud.com" ]; then
next_entry=gnulinux-${KERNEL_RELEASE}-serial-${boot_device_id}
fi
EOF

View File

@@ -45,9 +45,9 @@ case "${1}" in
esac
fi
# Enable the serial console on all systems on AWS EC2, Azure
# and Google Compute Platform
if running_on_ec2 || running_on_azure || running_on_gcp; then
# Enable the serial console on all systems on AWS EC2, Oracle Cloud,
# Azure and Google Compute Platform
if running_on_ec2 || running_on_oci || running_on_azure || running_on_gcp; then
scon="on"
fi