aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-19 07:35:41 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-22 13:41:18 +0200
commit32113521eb21b36cd26ebde5c15aac09c7212ee6 (patch)
tree2cb4cac075a6a028f65846d6e81eec13bdfbf867 /scripts
parent9dc2cc5fa436375b2fa9d1e0c7e3934fc50d801e (diff)
Move pygos specific configuration to pygos build repo
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makemodule.am6
-rw-r--r--scripts/overlay.sh21
2 files changed, 1 insertions, 26 deletions
diff --git a/scripts/Makemodule.am b/scripts/Makemodule.am
index dd3fa0b..3326860 100644
--- a/scripts/Makemodule.am
+++ b/scripts/Makemodule.am
@@ -1,7 +1,3 @@
helper_SCRIPTS += scripts/devfs.sh scripts/trymount.sh
-if PYGOSCFG
-helper_SCRIPTS += scripts/overlay.sh
-endif
-
-EXTRA_DIST += scripts/trymount.sh scripts/overlay.sh
+EXTRA_DIST += scripts/trymount.sh
diff --git a/scripts/overlay.sh b/scripts/overlay.sh
deleted file mode 100644
index 090671c..0000000
--- a/scripts/overlay.sh
+++ /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
- mkdir -p "$work"
- mount -t overlay overlay \
- -olowerdir=${lower},upperdir=${upper},workdir=${work} \
- ${target}
- else
- mount --bind "$lower" "$target"
- fi
-fi