summaryrefslogtreecommitdiff
path: root/release/tools
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-06-01 20:59:18 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-06-01 20:59:18 +0000
commitf3ca4d917021ad982b1cf7c268c7ad2e55372b43 (patch)
tree0024d7a93f2ca4090330a1b2f54a6150e9a792d1 /release/tools
parentb506d010c222a2c2f57a17081c33c2a22a9a9a64 (diff)
downloadsrc-test2-f3ca4d917021ad982b1cf7c268c7ad2e55372b43.tar.gz
src-test2-f3ca4d917021ad982b1cf7c268c7ad2e55372b43.zip
Notes
Diffstat (limited to 'release/tools')
-rw-r--r--release/tools/arm.subr11
1 files changed, 7 insertions, 4 deletions
diff --git a/release/tools/arm.subr b/release/tools/arm.subr
index c2375a0e1598..6cab3c4ee73f 100644
--- a/release/tools/arm.subr
+++ b/release/tools/arm.subr
@@ -80,11 +80,14 @@ arm_create_disk() {
arm_create_user() {
# Create a default user account 'freebsd' with the password 'freebsd',
# and set the default password for the 'root' user to 'root'.
- chroot ${CHROOTDIR} /usr/sbin/pw groupadd freebsd -g 1001
- chroot ${CHROOTDIR} /usr/sbin/pw useradd freebsd \
+ chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \
+ groupadd freebsd -g 1001
+ chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \
+ useradd freebsd \
-m -M 0755 -w yes -n freebsd -u 1001 -g 1001 -G 0 \
-c 'FreeBSD User' -d '/home/freebsd' -s '/bin/csh'
- chroot ${CHROOTDIR} /usr/sbin/pw usermod root -w yes
+ chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \
+ usermod root -w yes
return 0
}
@@ -98,7 +101,7 @@ arm_install_base() {
installworld installkernel distribution
chroot ${CHROOTDIR} mkdir -p ${DESTDIR}/boot/msdos
- #arm_create_user
+ arm_create_user
echo '# Custom /etc/fstab for FreeBSD embedded images' \
> ${CHROOTDIR}/${DESTDIR}/etc/fstab