git.annexia.org
/
febootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41598e9
)
Allow febootstrap-run to be run as root.
author
Matthew Kent
<matt@bravenet.com>
Fri, 25 Sep 2009 19:44:49 +0000
(20:44 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Fri, 25 Sep 2009 19:44:49 +0000
(20:44 +0100)
febootstrap-run.sh
patch
|
blob
|
history
diff --git
a/febootstrap-run.sh
b/febootstrap-run.sh
index
60cf021
..
ce5fbe2
100755
(executable)
--- a/
febootstrap-run.sh
+++ b/
febootstrap-run.sh
@@
-63,6
+63,11
@@
fi
target="$1"
shift
+if [ $(id -u) -eq 0 ]; then
+ chroot "$target" "$@"
+ exit 0
+fi
+
if [ ! -f "$target"/fakeroot.log ]; then
echo "febootstrap-run: $target: not a root filesystem"
exit 1