Force bootlocal* files to be executables
authorMichael Prokop <mika@grml.org>
Thu, 30 Jan 2014 16:38:04 +0000 (17:38 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 30 Jan 2014 16:38:04 +0000 (17:38 +0100)
If the files have the wrong permissions on the filesystem
they are useless on the live system.

etc/grml/fai/config/scripts/GRMLBASE/15-initsetup

index 277dcb0..f7ebd82 100755 (executable)
@@ -34,9 +34,9 @@ fcopy -v /etc/inittab
 sed -i "s/\$USERNAME\$/${USERNAME}/" $target/etc/inittab
 
 # provide Grml's bootlocal init scripts
-fcopy -v /etc/init.d/bootlocal.first
-fcopy -v /etc/init.d/bootlocal.middle
-fcopy -v /etc/init.d/bootlocal.last
+fcopy -v -mroot,root,0755 /etc/init.d/bootlocal.first
+fcopy -v -mroot,root,0755 /etc/init.d/bootlocal.middle
+fcopy -v -mroot,root,0755 /etc/init.d/bootlocal.last
 
 ## END OF FILE #################################################################
 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2