commit:     75b1b7cc4faf3c2fd455a5b6260e51c2b2a38c0b
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 13 17:37:04 2018 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Jan 13 17:37:04 2018 +0000
URL:        https://gitweb.gentoo.org/proj/grss.git/commit/?id=75b1b7cc

grs/Netboot.py: change name of source init script for netboot

Since we want an init script for ISO images too, we need to rename
the netboot init script to avoid a name collision.

 grs/Netboot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grs/Netboot.py b/grs/Netboot.py
index 307b3b3..ae5a0a4 100644
--- a/grs/Netboot.py
+++ b/grs/Netboot.py
@@ -99,7 +99,7 @@ class Netboot(HashIt):
         Execute(cmd, timeout=None, logfile=self.logfile)
 
         # 4. Copy in the init script
-        init_src = os.path.join(self.libdir, 'scripts/init')
+        init_src = os.path.join(self.libdir, 'scripts/init.netboot')
         init_dst = os.path.join(initramfs_root, 'init')
         shutil.copy(init_src, init_dst)
         os.chmod(init_dst, 0o0755)

Reply via email to