diff options
author | gjb <gjb@FreeBSD.org> | 2015-06-02 15:02:30 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2015-06-02 15:02:30 +0000 |
commit | a82be33c48de9a37b20723f54faa4a1452d5ceeb (patch) | |
tree | 234884052ff02548fec5ab2a83fd798af88c0245 /release | |
parent | 33cba056a868f7b00df011100c15490e1ce2e464 (diff) | |
download | FreeBSD-src-a82be33c48de9a37b20723f54faa4a1452d5ceeb.zip FreeBSD-src-a82be33c48de9a37b20723f54faa4a1452d5ceeb.tar.gz |
Pass the '-b' argument to pw(8) so the '/home' directory is created
in the correct place.
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rw-r--r-- | release/tools/arm.subr | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/tools/arm.subr b/release/tools/arm.subr index 4049c4d..c5a2941 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -85,7 +85,8 @@ arm_create_user() { 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' + -c 'FreeBSD User' -d '/home/freebsd' -s '/bin/csh' \ + -b "${DESTDIR}/home" chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \ usermod root -w yes |