]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
AWS: Hypervisor UUID has been dropped from newer kernels
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 Jan 2021 10:42:38 +0000 (10:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 Jan 2021 10:51:51 +0000 (10:51 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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)