diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-04-12 06:40:39 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-04-12 12:51:33 +0200 |
commit | a3437967a2ae4730ba638cc80328055e9805e7c9 (patch) | |
tree | 6e824f088920bb59fd00e0c3b03dcdbf859f74c1 /scripts/overlay.sh.in | |
parent | 55d4a328c9fa369611115a066f4f305f2b74dafd (diff) |
Rely on PATH variable for running init programs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'scripts/overlay.sh.in')
-rw-r--r-- | scripts/overlay.sh.in | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/overlay.sh.in b/scripts/overlay.sh.in deleted file mode 100644 index b53eea7..0000000 --- a/scripts/overlay.sh.in +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -lower=/cfg/preserve/${1} -upper=/cfg/overlay/${1} -work=/cfg/overlay/${1}_work -target=${2} - -if [ ! -d "$target" ]; then - exit -fi - -if [ -d "$lower" ]; then - if [ -d "$upper" ]; then - @BINPATH@/mkdir -p "$work" - @SBINPATH@/mount -t overlay overlay \ - -olowerdir=${lower},upperdir=${upper},workdir=${work} \ - ${target} - else - @SBINPATH@/mount --bind "$lower" "$target" - fi -fi |