desktop-2025-01-29-14-20-16

This commit is contained in:
Alexander Szczepanski
2025-01-29 14:20:16 +01:00
parent b40d52a433
commit b3a2a1030b
10 changed files with 121 additions and 56 deletions

21
scripts/fs-diff.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
# fs-diff.sh
set -euo pipefail
OLD_TRANSID=$(sudo btrfs subvolume find-new /fs-diff/root-blank 9999999)
OLD_TRANSID=${OLD_TRANSID#transid marker was }
sudo btrfs subvolume find-new "/fs-diff/root" "$OLD_TRANSID" |
sed '$d' |
cut -f17- -d' ' |
sort |uniq |
while read path; do
path="/$path"
if [ -L "$path" ]; then
: # The path is a symbolic link, so is probably handled by NixOS already
elif [ -d "$path" ]; then
: # The path is a directory, ignore
else
echo "$path"
fi
done