--make-pxe-target: change permissions of regenerated initramrfs to 0644

Resolves: rhbz#1184021
This commit is contained in:
Radek Vykydal 2015-01-13 10:49:12 +01:00
parent 52cd17be3f
commit 219ede2ae5

View File

@ -558,6 +558,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"))