diff --git a/image_creator/os_type/linux.py b/image_creator/os_type/linux.py index 91f691097b424636b72c89c29847d02d163a29eb..fd45152de12e21268f49449e6281ac1198056202 100644 --- a/image_creator/os_type/linux.py +++ b/image_creator/os_type/linux.py @@ -91,7 +91,7 @@ class Linux(Unix): action = m.group(1) continue - if event.strip() == "button[ /]power": + if event.strip() in ("button[ /]power", "button/power.*"): if action: if not self.g.is_file(action): self.out.warn("Acpid action file: %s does not exist" % @@ -114,6 +114,8 @@ class Linux(Unix): action.strip().split()[0]) return + self.out.warn("No acpi power button event found!") + @sysprep() def remove_persistent_net_rules(self, print_header=True): """Remove udev rules that will keep network interface names persistent