Skip to content

Commit d887275

Browse files
authored
Merge pull request #908 from rancher-sandbox/sync
Force sync after moving persistent directories to data volume
2 parents 714551f + 60a2d31 commit d887275

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/05-persistent-data-volume.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ if [ "$(awk '$2 == "/" {print $3}' /proc/mounts)" == "tmpfs" ]; then
4343
mkdir -p "${DIR}" "${DEST}"
4444
mv "${DIR}" "${DEST}"
4545
done
46+
# Make sure all data moved to the persistent volume has been committed to disk
47+
sync
4648
break
4749
fi
4850
done

0 commit comments

Comments
 (0)