From 8023bbf98369128964e199000708679c03831dc1 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Mon, 9 Apr 2012 05:39:47 -0500 Subject: [PATCH] script/gentree: undo e8f1727... since -V will not create and skel the home directory --- script/gentree | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/gentree b/script/gentree index c4272e7..e409eb6 100755 --- a/script/gentree +++ b/script/gentree @@ -107,6 +107,10 @@ onelink() { done } +in_chroot() { + chroot "${sroot}" "${@}" +} + in_fakeroot() { for fakeroot in $(which fakeroot) /usr/local/bin/fakeroot do @@ -139,7 +143,7 @@ do_admin() { log Create an emergency user admin/admin # delink passwd to ensure it doesn't get patched in-place chk onelink "${sroot}/etc/passwd" "${sroot}/etc/master.passwd" "${sroot}/etc/group" - echo '$1$2rXOWsK/$eiBHA6K7xL96DZbcY24YR0' | chk /usr/sbin/pw -V "${sroot}/etc" useradd admin -u 999 -g wheel -G operator -c Administrator -d /usr/home/admin -m -k "${sroot}/usr/share/skel" -s /bin/csh -H 0 + echo '$1$2rXOWsK/$eiBHA6K7xL96DZbcY24YR0' | chk in_chroot /usr/sbin/pw useradd admin -u 999 -g wheel -G operator -c Administrator -d /usr/home/admin -m -s /bin/csh -H 0 } do_overlay() { -- 2.42.0