]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/grub2/00_cloud
OCI: Enable serial console by default
[people/pmueller/ipfire-2.x.git] / config / grub2 / 00_cloud
index 121cb2fbd606a9b5f24aa1da2da128f1f2e306b7..1ef5053e5d89a15363a1ee562e813b461b3ab824 100644 (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