This commit is contained in:
albert 2025-02-03 11:36:49 -08:00
parent 421957cbb7
commit 4226464c2c
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -127,10 +127,12 @@
# BTRFS Related
clean-boot-snapshots = ''
echo -en "Deleting boot snapshots...."
for i in $(sudo snapper -c root list | grep boot | awk {'print $1'});
for i in $(sudo snapper -c root list | grep boot | awk {'print $1'} | head -n -4);
echo -en " $i,"
sudo snapper -c root delete $i;
end
echo "Remaining snapshots:"
sudo snapper -c root list
echo -e " done."
'';
};