]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/system/functions
AWS: Hypervisor UUID has been dropped from newer kernels
[ipfire-2.x.git] / src / initscripts / system / functions
index 71edf500b4cd6eb4b447ea848127c7e220d397d7..31b30e037f40c1b8b7d922bcc5ae35a190024ba9 100644 (file)
@@ -793,13 +793,6 @@ running_on_hypervisor() {
 running_on_ec2() {
        local uuid
 
-       # Check if the hypervisor UUID starts with ec2
-       if [ -r "/sys/hypervisor/uuid" ]; then
-               uuid=$(</sys/hypervisor/uuid)
-
-               [ "${uuid:0:3}" = "ec2" ] && return 0
-       fi
-
        # Check if the DMI product UUID starts with EC2
        if [ -r "/sys/devices/virtual/dmi/id/product_uuid" ]; then
                uuid=$(</sys/devices/virtual/dmi/id/product_uuid)