From 14494461a9e60d60b1014c4c15134b47cff8e776 Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Tue, 13 Jan 2015 10:49:12 +0100 Subject: [PATCH] --make-pxe-target: change permissions of regenerated initramrfs to 0644 --- src/sbin/livemedia-creator | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index d8ee2754..683612d5 100755 --- a/src/sbin/livemedia-creator +++ b/src/sbin/livemedia-creator @@ -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"))