diff options
author | gjb <gjb@FreeBSD.org> | 2015-06-04 23:11:24 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2015-06-04 23:11:24 +0000 |
commit | b86973a665cc05fe5bc56a0c5e9791e0b1093649 (patch) | |
tree | ed00ac469f30ef78982fcbd40ea00c151619e3f4 /release | |
parent | 21439c6ed153507e25fe769e54b6ffe4f710e971 (diff) | |
download | FreeBSD-src-b86973a665cc05fe5bc56a0c5e9791e0b1093649.zip FreeBSD-src-b86973a665cc05fe5bc56a0c5e9791e0b1093649.tar.gz |
Make sure /home exists within the DESTDIR before creating the
'freebsd' user account.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rw-r--r-- | release/tools/arm.subr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/release/tools/arm.subr b/release/tools/arm.subr index f6608f3..3f58259 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -82,6 +82,7 @@ arm_create_user() { # and set the default password for the 'root' user to 'root'. chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ groupadd freebsd -g 1001 + chroot ${CHROOTDIR} mkdir -p ${DESTDIR}/home chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \ useradd freebsd \ -m -M 0755 -w yes -n freebsd -u 1001 -g 1001 -G 0 \ |