From ba36d48d5de17bafe584d74640e41660d6aa09b4 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Mon, 25 Dec 2017 19:04:26 -0500 Subject: grs/Netboot.py: chmod 755 the init script --- grs/Netboot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/grs/Netboot.py b/grs/Netboot.py index 22279cc..0918f1a 100644 --- a/grs/Netboot.py +++ b/grs/Netboot.py @@ -86,9 +86,10 @@ class Netboot(HashIt): Execute(cmd, timeout=None, logfile=self.logfile) # 4. Copy in the init script - init_path = os.path.join(self.libdir, 'scripts/init') - shutil.copy(init_path, initramfs_root) - + init_src = os.path.join(self.libdir, 'scripts/init') + init_dst = os.path.join(initramfs_root, 'init') + shutil.copy(init_src, init_dst) + os.chmod(init_dst, 0o0755) # 5. Repack initramfs_path = os.path.join(netboot_dir, self.medium_name) -- cgit v1.2.3-65-gdbad