oem: Wait for udev to create device nodes

merge-requests/1/head
Matthias Klumpp 8 years ago
parent d1caca1a61
commit f59f3b8fe4

@ -81,7 +81,10 @@ class LibremDiskDevice(object):
disk.commit() disk.commit()
# for some reason, parted doesn't format this on its own, so we do it # wait for device nodes
check_call(['udevadm', 'settle'])
# create file system and labels
check_call(['mkfs.ext4', self.path + '-part1']) check_call(['mkfs.ext4', self.path + '-part1'])
check_call(['e2label', self.path + '-part1', 'rescue']) check_call(['e2label', self.path + '-part1', 'rescue'])

Loading…
Cancel
Save