Merge "Decode string to bytes in dracut-regenerate"
This commit is contained in:
commit
b312c06dbb
@ -51,7 +51,7 @@ def main():
|
|||||||
e.output = out
|
e.output = out
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
kernel_set = out.split(':')
|
kernel_set = out.decode().split(':')
|
||||||
kernel_search = re.match("vmlinuz-(.*)", kernel_set[0])
|
kernel_search = re.match("vmlinuz-(.*)", kernel_set[0])
|
||||||
kernel_version = "%s" % kernel_search.groups(1)
|
kernel_version = "%s" % kernel_search.groups(1)
|
||||||
ramdisk_path = "/boot/%s" % kernel_set[1].strip()
|
ramdisk_path = "/boot/%s" % kernel_set[1].strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user