Revision 20409e9f image_creator/os_type/linux.py

b/image_creator/os_type/linux.py
50 50
        if dev in self._uuid:
51 51
            return self._uuid[dev]
52 52

  
53
        for attr in self.g.blkid(dev):
54
            if attr[0] == 'UUID':
55
                self._uuid[dev] = attr[1]
56
                return attr[1]
53
        uuid = self.g.vfs_uuid(dev)
54
        assert len(uuid)
55
        self._uuid[dev] = uuid
56
        return uuid
57 57

  
58 58
    @sysprep()
59 59
    def fix_acpid(self, print_header=True):

Also available in: Unified diff