unbox/work_mode.sh
2020-01-29 14:40:46 +01:00

9 lines
226 B
Bash
Executable file

#!/bin/bash
set -e
cd /
mkdir -p /mnt/tmp
mount -t tmpfs none /mnt/tmp
mkdir -p /mnt/tmp/upper
mkdir -p /mnt/tmp/work
mount -t overlay overlay -o lowerdir=/opt/root,upperdir=/mnt/tmp/upper,workdir=/mnt/tmp/work /root
cd /root