From 2c87f8bd0e28ffcda4e297b5edc643c30cd84e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Thu, 30 Nov 2023 23:08:51 +0000 Subject: jelka --- prog/jelka/chroot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/jelka/chroot.sh') 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; } -- cgit v1.2.3