diff options
Diffstat (limited to 'prog/jelka/chroot.sh')
-rwxr-xr-x | prog/jelka/chroot.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/jelka/chroot.sh b/prog/jelka/chroot.sh index cf6a1da..b55645e 100755 --- a/prog/jelka/chroot.sh +++ b/prog/jelka/chroot.sh @@ -1,9 +1,9 @@ #!/bin/bash set -xeuo pipefail -mkdir -p $2 -mount -t tmpfs -o nr_blocks=1,mode=0755 tmp $2 if [ x$1 = xstart ] then + mkdir -p $2 + mount -t tmpfs -o nr_blocks=1,mode=0755 tmp $2 for i in /bin /dev/null /etc /lib /usr do [ -d $i ] && mkdir -p $2/$i || { mkdir -p $2/`rev <<<$i | cut -d/ -f2- | rev` && touch $2/$i; } |