commit: ba36d48d5de17bafe584d74640e41660d6aa09b4
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 26 00:04:26 2017 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Dec 26 00:04:26 2017 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=ba36d48d
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)