Merge pull request 'fix for correct work with NVME disks' (#1) from samoylikdv/leapp-repository:main into main

Reviewed-on: #1
main
Arkady L. Shane 5 months ago
commit d0f1f6b622

@ -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