svn commit: r284004 - head/release/tools
Glen Barber
gjb at FreeBSD.org
Thu Jun 4 23:11:25 UTC 2015
Author: gjb
Date: Thu Jun 4 23:11:24 2015
New Revision: 284004
URL: https://svnweb.freebsd.org/changeset/base/284004
Log:
Make sure /home exists within the DESTDIR before creating the
'freebsd' user account.
Sponsored by: The FreeBSD Foundation
Modified:
head/release/tools/arm.subr
Modified: head/release/tools/arm.subr
==============================================================================
--- head/release/tools/arm.subr Thu Jun 4 23:07:21 2015 (r284003)
+++ head/release/tools/arm.subr Thu Jun 4 23:11:24 2015 (r284004)
@@ -82,6 +82,7 @@ arm_create_user() {
# and set the default password for the 'root' user to 'root'.
chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
groupadd freebsd -g 1001
+ chroot ${CHROOTDIR} mkdir -p ${DESTDIR}/home
chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
useradd freebsd \
-m -M 0755 -w yes -n freebsd -u 1001 -g 1001 -G 0 \
More information about the svn-src-all
mailing list