Revision c0f3abdc image_creator/os_type/linux.py

b/image_creator/os_type/linux.py
91 91
                    action = m.group(1)
92 92
                    continue
93 93

  
94
            if event.strip() == "button[ /]power":
94
            if event.strip() in ("button[ /]power", "button/power.*"):
95 95
                if action:
96 96
                    if not self.g.is_file(action):
97 97
                        self.out.warn("Acpid action file: %s does not exist" %
......
114 114
                              action.strip().split()[0])
115 115
                return
116 116

  
117
        self.out.warn("No acpi power button event found!")
118

  
117 119
    @sysprep()
118 120
    def remove_persistent_net_rules(self, print_header=True):
119 121
        """Remove udev rules that will keep network interface names persistent

Also available in: Unified diff