git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
There's no need to call getpwuid/getpwnam_r 5 times. Do it once before chroot, once...
[util-vserver.git]
/
distrib
/
gentoo
/
init-vserver.sh
diff --git
a/distrib/gentoo/init-vserver.sh
b/distrib/gentoo/init-vserver.sh
index
12fcda9
..
e628d9f
100644
(file)
--- a/
distrib/gentoo/init-vserver.sh
+++ b/
distrib/gentoo/init-vserver.sh
@@
-24,6
+24,7
@@
# You have been warned...
#
-RUNLEVEL=1 /sbin/rc sysinit
-/sbin/rc boot
+RUNLEVEL=1 /sbin/rc sysinit
|| exit 1
+/sbin/rc boot
|| exit 1
/sbin/rc ${1:-default}
+exit 0