--make-pxe-target: change permissions of regenerated initramrfs to 0644
This commit is contained in:
parent
c46f3367ca
commit
14494461a9
@ -612,6 +612,7 @@ def rebuild_initrds_for_live(opts, sys_root_dir, results_dir):
|
||||
|
||||
new_initrd_path = joinpaths(results_dir, os.path.basename(kernel.initrd.path))
|
||||
shutil.move(joinpaths(sys_root_dir, outfile), new_initrd_path)
|
||||
os.chmod(new_initrd_path, 0644)
|
||||
shutil.copy2(joinpaths(sys_root_dir, kernel.path), results_dir)
|
||||
|
||||
os.unlink(joinpaths(sys_root_dir,"/proc/modules"))
|
||||
|
Loading…
Reference in New Issue
Block a user