We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1de95ce + be0c8bb commit 97788a3Copy full SHA for 97788a3
pkg/cidata/cidata.TEMPLATE.d/boot/05-persistent-data-volume.sh
@@ -44,8 +44,8 @@ if [ "$(awk '$2 == "/" {print $3}' /proc/mounts)" == "tmpfs" ]; then
44
fi
45
for DIR in ${DATADIRS}; do
46
if [ -d /mnt/data"${DIR}" ]; then
47
- [ -e "${DIR}" ] && rm -rf "${DIR}"
48
- ln -s /mnt/data"${DIR}" "${DIR}"
+ mkdir -p "${DIR}"
+ mount --bind /mnt/data"${DIR}" "${DIR}"
49
50
done
51
0 commit comments