]> git.wh0rd.org Git - home.git/commitdiff
pass user home down to chroot
authorMike Frysinger <vapier@gentoo.org>
Sun, 21 Nov 2010 23:23:21 +0000 (15:23 -0800)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:36 +0000 (15:36 -0400)
.bin/custom-chroot

index a96b181072d6bba86773f50ac2b7ff2bff8a170d..9416b0bd2f3b05e0fc0370ce9128eda4f6f022d2 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash -e
 
-[[ -w / ]] || exec sudo "$0" "$@"
+[[ -w / ]] || exec sudo env HOME="$HOME" "$0" "$@"
 
 mounts="proc sys dev dev/pts usr/portage usr/portage/distfiles"