summaryrefslogtreecommitdiffstats
path: root/febootstrap-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'febootstrap-run.sh')
-rwxr-xr-xfebootstrap-run.sh5
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