diff options
author | 2017-12-25 19:04:26 -0500 | |
---|---|---|
committer | 2017-12-25 19:04:26 -0500 | |
commit | ba36d48d5de17bafe584d74640e41660d6aa09b4 (patch) | |
tree | 0d2c9e19a4eb193cb781d72284dedf38e9bfed4a | |
parent | grs/Netboot.py: add self.kernelroot (diff) | |
download | grss-ba36d48d5de17bafe584d74640e41660d6aa09b4.tar.gz grss-ba36d48d5de17bafe584d74640e41660d6aa09b4.tar.bz2 grss-ba36d48d5de17bafe584d74640e41660d6aa09b4.zip |
grs/Netboot.py: chmod 755 the init script
-rw-r--r-- | grs/Netboot.py | 7 |
1 files 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) |