diff options
author | Matthew Kent <matt@bravenet.com> | 2009-09-25 20:44:49 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-09-25 20:44:49 +0100 |
commit | 2c8be74033d01f92c840bb382d66a523c63086ce (patch) | |
tree | 9107f27935095c8ccef0c4bceac8b54239a07e72 | |
parent | 41598e9bc5576b3b555abd82c2bf0fbaec6451eb (diff) | |
download | febootstrap-2c8be74033d01f92c840bb382d66a523c63086ce.tar.gz febootstrap-2c8be74033d01f92c840bb382d66a523c63086ce.tar.xz febootstrap-2c8be74033d01f92c840bb382d66a523c63086ce.zip |
Allow febootstrap-run to be run as root.
-rwxr-xr-x | febootstrap-run.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/febootstrap-run.sh b/febootstrap-run.sh index 60cf021..ce5fbe2 100755 --- 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 |