2018-11-05 15:28:18 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
lower=/cfg/preserve/${1}
|
|
|
|
upper=/cfg/overlay/${1}
|
|
|
|
work=/cfg/overlay/${1}_work
|
|
|
|
target=${2}
|
|
|
|
|
2019-03-29 18:31:45 +01:00
|
|
|
mkdir -p "$work" "$upper"
|
|
|
|
mount -t overlay overlay \
|
|
|
|
-olowerdir=${lower},upperdir=${upper},workdir=${work} \
|
|
|
|
"$target"
|