unbox/work_mode.sh

10 lines
226 B
Bash
Raw Normal View History

2020-01-28 13:40:30 +00:00
#!/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