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:
parent
1bfa92ba85
commit
92284ce807
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user