From 33053860be79e893b19919db1fe005d6d4472ae8 Mon Sep 17 00:00:00 2001 From: Michel Le Cocq Date: Sun, 9 Feb 2025 08:11:25 +0100 Subject: [PATCH] suppression appel script 'encore' local et quelques commentaires --- upsnapz.sh | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/upsnapz.sh b/upsnapz.sh index eb4600f..3f357ee 100755 --- a/upsnapz.sh +++ b/upsnapz.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Time-stamp: <2025-02-09 07:37:50 nomad> +# Time-stamp: <2025-02-09 08:11:14 nomad> # # Michel Le Cocq # @@ -8,17 +8,25 @@ # Licence Art Libre 1.3 (LAL 1.3) # upsnapz.sh +# +# Script to upgrade your system install on zfs root with zfs boot menu (only Debian for the moment). +# +# refresh apt +# zfs snapshot +# apt upgrade +# apt autoremove +# zfs clone promote +# check zfs boot menu release +# check zfs pool status -# What dit it do ? -# - apt update -# - - -## To do or not : +# To do or not : # # ajouter zpool upgrade or not # ajouter question cleanup zroot # # regarder si un nouveau kernel existe et si oui faire ce qu'il y a a faire +# +# ameliorer check zfs boot menu function check_zpool_status { @@ -79,6 +87,10 @@ function check_ZFS_BOOT_MENU echo 'avaible release :' cat /tmp/sha256.txt | grep EFI | grep release | awk -F"[()]" '{print $2}' fi + + # check with: + # GitHub/zfsbootmenu + # gh release list } function askpromote() @@ -276,4 +288,4 @@ echo zpool status printf '\nNothing else to do.\n' -~/bin/clean-snapshot.sh +#~/bin/clean-snapshot.sh