Fix file permissions, since GIT does not manage perms other than 755 and 644.
Also this can be used to adjusts owner:group.
Signed-off-by: Gerardo Exequiel Pozzi
---
configs/syslinux-iso/overlay/etc/rc.d/archiso | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/configs/syslinux-iso/overlay/etc/rc.d/archiso b/configs/syslinux-iso/overlay/etc/rc.d/archiso
index 618a79e..c30b435 100755
--- a/configs/syslinux-iso/overlay/etc/rc.d/archiso
+++ b/configs/syslinux-iso/overlay/etc/rc.d/archiso
@@ -81,10 +81,19 @@ do_locale_gen ()
stat_done
}
+# GIT does not manage perms others thans 755 and 644, so fix here.
+do_fix_perms ()
+{
+ stat_busy "Fixing file permissions..."
+ chmod 440 /etc/sudoers
+ stat_done
+}
+
case "$1" in
start)
do_locale_gen
do_makeuser
+ do_fix_perms
;;
esac
exit 0
--
1.7.0.2