diff --git a/migrations/1756153445.sh b/migrations/1756153445.sh new file mode 100644 index 0000000..63441e2 --- /dev/null +++ b/migrations/1756153445.sh @@ -0,0 +1,10 @@ +echo "Checking and correcting Snapper configs if needed" +if command -v snapper &>/dev/null; then + if ! sudo snapper list-configs 2>/dev/null | grep -q "root"; then + sudo snapper -c root create-config / + fi + + if ! sudo snapper list-configs 2>/dev/null | grep -q "home"; then + sudo snapper -c home create-config /home + fi +fi