fix for correct work with NVME disks

main
Dmitry Samoylik 3 months ago
parent f683191fc8
commit 1d24d118cd

@ -42,8 +42,9 @@ class EfiFinalizationFix(Actor):
} }
def devparts(dev): def devparts(dev):
part = next(re.finditer(r'\d+$', dev)).group(0) part = next(re.finditer(r'p?\d+$', dev)).group(0)
dev = dev[:-len(part)] dev = dev[:-len(part)]
part = next(re.finditer(r'\d+$', part)).group(0)
return [dev, part]; return [dev, part];
with open('/etc/system-release', 'r') as sr: with open('/etc/system-release', 'r') as sr:

Loading…
Cancel
Save