Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2015 19:19:26 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283963 - head/release/tools
Message-ID:  <201506031919.t53JJQTG029861@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Wed Jun  3 19:19:25 2015
New Revision: 283963
URL: https://svnweb.freebsd.org/changeset/base/283963

Log:
  Use the new pw(8) '-R' option to create the users/groups.
  
  MFC after:	1 week
  X-MFC-after:	r283961
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/release/tools/arm.subr

Modified: head/release/tools/arm.subr
==============================================================================
--- head/release/tools/arm.subr	Wed Jun  3 19:17:45 2015	(r283962)
+++ head/release/tools/arm.subr	Wed Jun  3 19:19:25 2015	(r283963)
@@ -80,14 +80,13 @@ arm_create_disk() {
 arm_create_user() {
 	# Create a default user account 'freebsd' with the password 'freebsd',
 	# and set the default password for the 'root' user to 'root'.
-	chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \
+	chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
 		groupadd freebsd -g 1001
-	chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \
+	chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
 		useradd freebsd \
 		-m -M 0755 -w yes -n freebsd -u 1001 -g 1001 -G 0 \
-		-c 'FreeBSD User' -d '/home/freebsd' -s '/bin/csh' \
-		-b "${DESTDIR}/home"
-	chroot ${CHROOTDIR} /usr/sbin/pw -V ${DESTDIR}/etc \
+		-c 'FreeBSD User' -d '/home/freebsd' -s '/bin/csh'
+	chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
 		usermod root -w yes
 
 	return 0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506031919.t53JJQTG029861>