Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archiso
Commits
1eb1ca6b
Commit
1eb1ca6b
authored
Jul 01, 2011
by
Gerardo Exequiel Pozzi
Browse files
[configs/releng] Make user "arch" at build time.
Signed-off-by:
Gerardo Exequiel Pozzi
<
vmlinuz386@yahoo.com.ar
>
parent
f2009c4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
configs/releng/build.sh
View file @
1eb1ca6b
...
...
@@ -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
}
...
...
configs/releng/root-image/etc/rc.d/archiso
View file @
1eb1ca6b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment