rajout appel de la fonction showsnap

This commit is contained in:
Michel Le Cocq 2025-02-26 11:03:46 +01:00
parent 620b3faddf
commit 1c1e1fc501

View File

@ -1,6 +1,6 @@
#!/bin/bash
# Time-stamp: <2025-02-26 08:02:52 nomad>
# Time-stamp: <2025-02-26 11:02:08 nomad>
# Michel Le Cocq <lecocq@ipgp.fr>
# <nomad@neuronfarm.net>
@ -89,7 +89,7 @@ function cleansnap
printf '\nClean snapshot.\n'
printf 'Current available bootfs:\n'
zfs list -o name,used,usedbysnapshots -r zroot/ROOT -s creation | grep -v '^zroot/ROOT .*'
showsnap
oldest=$(zfs list -H -o name -r zroot/ROOT -s creation | grep -v '^zroot/ROOT$' | head -n 1)
oldestdate=$(echo $oldest | cut -d "_" -f 3- | tr '_' '-')
current=$(zpool get -H bootfs zroot -o value)