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
This commit is contained in:
Glen Barber 2015-06-02 15:02:30 +00:00
parent 1bfa92ba85
commit 92284ce807
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283913

View File

@ -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