Author: gjb
Date: Tue Jun  2 15:02:30 2015
New Revision: 283913
URL: https://svnweb.freebsd.org/changeset/base/283913

Log:
  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

Modified:
  head/release/tools/arm.subr

Modified: head/release/tools/arm.subr
==============================================================================
--- head/release/tools/arm.subr Tue Jun  2 15:02:28 2015        (r283912)
+++ head/release/tools/arm.subr Tue Jun  2 15:02:30 2015        (r283913)
@@ -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
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to