blob: e98c442072c2278ce2cb62bf5b11f1deded5368b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
lower=/cfg/preserve/${1}
upper=/cfg/overlay/${1}
work=/cfg/overlay/${1}_work
target=${2}
mkdir -p "$work" "$upper"
mount -t overlay overlay \
-olowerdir=${lower},upperdir=${upper},workdir=${work} \
"$target"
|