From eeadc90a1180c89d5324f76d91cd55ebd95f7a01 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Mon, 15 Mar 2010 23:45:04 -0300 Subject: [PATCH] Add do_fix_perms() in archiso rc script. 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 file changed, 9 insertions(+) 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