Create a /usr/home -> /home symlink for the arm images to

avoid /usr/home confusingly being created as a directory.

Reported by:	Russell Haley
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
gjb 2016-07-20 22:49:33 +00:00
parent 1e19a6f1d9
commit c3da6d9f13

View File

@ -88,6 +88,7 @@ arm_create_user() {
-c 'FreeBSD User' -d '/home/freebsd' -s '/bin/csh'
chroot ${CHROOTDIR} /usr/sbin/pw -R ${DESTDIR} \
usermod root -w yes
chroot ${CHROOTDIR} ln -s /home ${DESTDIR}/usr/home
return 0
}