feat: add fs-diff script for impermanence check

This commit is contained in:
Swarsel 2024-08-05 01:46:18 +02:00
parent c0a2be3791
commit ea81fcf56e
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
8 changed files with 51 additions and 4 deletions

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
# fs-diff.sh
set -euo pipefail
OLD_TRANSID=$(sudo btrfs subvolume find-new /mnt/root-blank 9999999)
@ -10,7 +8,7 @@ sed '$d' |
cut -f17- -d' ' |
sort |
uniq |
while read path; do
while read -r path; do
path="/$path"
if [ -L "$path" ]; then
: # The path is a symbolic link, so is probably handled by NixOS already