summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-07-01 21:36:31 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-07-09 15:14:49 -0300
commit1eb1ca6b5465ae31ad8e95d87670defc86265f9d (patch)
treecdf27d26077e8a56cdc264d80e296e50a27b0e46 /configs
parentf2009c4c76daf31cd008b6faee8b96abaacc7673 (diff)
downloadarchiso32-1eb1ca6b5465ae31ad8e95d87670defc86265f9d.tar.xz
[configs/releng] Make user "arch" at build time.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'configs')
-rwxr-xr-xconfigs/releng/build.sh1
-rwxr-xr-xconfigs/releng/root-image/etc/rc.d/archiso9
2 files changed, 1 insertions, 9 deletions
diff --git a/configs/releng/build.sh b/configs/releng/build.sh
index d2923d9..7da0215 100755
--- a/configs/releng/build.sh
+++ b/configs/releng/build.sh
@@ -31,6 +31,7 @@ make_customize_root_image() {
wget -O ${work_dir}/root-image/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/all/
sed -i "s/#Server/Server/g" ${work_dir}/root-image/etc/pacman.d/mirrorlist
chroot ${work_dir}/root-image /usr/sbin/locale-gen
+ chroot ${work_dir}/root-image /usr/sbin/useradd -m -p "" -g users -G "audio,disk,optical,wheel" arch
: > ${work_dir}/build.${FUNCNAME}
fi
}
diff --git a/configs/releng/root-image/etc/rc.d/archiso b/configs/releng/root-image/etc/rc.d/archiso
index 1bd315d..68e8375 100755
--- a/configs/releng/root-image/etc/rc.d/archiso
+++ b/configs/releng/root-image/etc/rc.d/archiso
@@ -2,14 +2,6 @@
. /etc/rc.conf
. /etc/rc.d/functions
-do_makeuser ()
-{
- stat_busy "Making the default user arch"
- addgroups="audio,disk,optical,wheel"
- useradd -m -p "" -g users -G $addgroups arch
- stat_done
-}
-
do_locale_gen ()
{
if [[ ${LOCALE} != "en_US.UTF-8" ]]; then
@@ -43,7 +35,6 @@ do_special_console()
case "$1" in
start)
do_locale_gen
- do_makeuser
do_special_console
;;
esac