mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue