diff options
author | gjb <gjb@FreeBSD.org> | 2015-06-03 19:19:25 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2015-06-03 19:19:25 +0000 |
commit | de010910edae3c3f6d771022bfcac115faa39a44 (patch) | |
tree | d60506f86f371a960ceff89674dafcd30b471510 /release | |
parent | 05099a39d92ba594098d6578fefa5b8fe7db088f (diff) | |
download | FreeBSD-src-de010910edae3c3f6d771022bfcac115faa39a44.zip FreeBSD-src-de010910edae3c3f6d771022bfcac115faa39a44.tar.gz |
Use the new pw(8) '-R' option to create the users/groups.
MFC after: 1 week
X-MFC-after: r283961
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rw-r--r-- | release/tools/arm.subr | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/release/tools/arm.subr b/release/tools/arm.subr index c5a2941..f6608f3 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -80,14 +80,13 @@ 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 -V ${DESTDIR}/etc \ + chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ groupadd freebsd -g 1001 - chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \ + chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ useradd freebsd \ -m -M 0755 -w yes -n freebsd -u 1001 -g 1001 -G 0 \ - -c 'FreeBSD User' -d '/home/freebsd' -s '/bin/csh' \ - -b "${DESTDIR}/home" - chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \ + -c 'FreeBSD User' -d '/home/freebsd' -s '/bin/csh' + chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ usermod root -w yes return 0 |