I have an issue where I don’t see all my snapshots when I go to the read-only snapshots in GRUB.
I’m on microos.
This is the output from running snapper ls
;
# | Type | Præ # | Dato | Bruger | Brugt plads | Oprydning | Beskrivelse | Brugerdata
-----+--------+-------+-------------------------------+--------+-------------+-----------+-------------------------+--------------
0 | single | | | root | | | current |
70 | single | | tir 28 nov 2023 10:05:20 CET | root | 132,38 MiB | number | Snapshot Update of #69 | important=yes
71 | single | | ons 29 nov 2023 11:17:08 CET | root | 115,97 MiB | number | Snapshot Update of #70 | important=yes
72 | single | | fre 01 dec 2023 09:53:49 CET | root | 160,53 MiB | number | Snapshot Update of #71 | important=yes
73 | single | | lør 02 dec 2023 23:30:05 CET | root | 134,33 MiB | number | Snapshot Update of #72 | important=yes
74 | single | | søn 03 dec 2023 18:50:25 CET | root | 215,76 MiB | number | Snapshot Update of #73 | important=yes
78 | single | | fre 08 dec 2023 11:18:33 CET | root | 864,74 MiB | number | Snapshot Update of #72 | important=yes
84 | single | | fre 15 dec 2023 10:01:28 CET | root | 111,95 MiB | number | Snapshot Update of #70 | important=yes
85 | single | | lør 16 dec 2023 22:16:39 CET | root | 29,77 MiB | number | Snapshot Update of #84 | important=yes
149 | single | | fre 29 mar 2024 22:25:09 CET | root | 2,91 GiB | number | Snapshot Update of #148 | important=yes
194 | single | | ons 12 jun 2024 09:56:06 CEST | root | 39,32 MiB | number | Snapshot Update of #193 |
195 | single | | tor 13 jun 2024 10:56:50 CEST | root | 25,96 MiB | number | Snapshot Update of #194 |
196 | single | | fre 14 jun 2024 10:01:19 CEST | root | 27,41 MiB | number | Snapshot Update of #195 |
197 | single | | lør 15 jun 2024 13:01:40 CEST | root | 38,36 MiB | number | Snapshot Update of #196 |
198 | single | | tir 18 jun 2024 11:38:38 CEST | root | 130,94 MiB | number | Snapshot Update of #197 |
199 | single | | ons 19 jun 2024 10:13:19 CEST | root | 48,00 KiB | number | Snapshot Update of #198 |
200 | single | | tor 20 jun 2024 09:51:59 CEST | root | 934,87 MiB | number | Snapshot Update of #199 |
201 | single | | fre 21 jun 2024 10:48:01 CEST | root | 16,00 KiB | number | Snapshot Update of #85 |
202- | single | | fre 21 jun 2024 11:07:27 CEST | root | 16,00 KiB | number | rollback backup of #201 | important=yes
203 | single | | fre 21 jun 2024 11:07:27 CEST | root | 48,00 KiB | | writable copy of #199 |
204+ | single | | fre 21 jun 2024 11:35:31 CEST | root | 958,79 MiB | number | Snapshot Update of #203 |
I’m only seeing snapshot #70-84 and #202 in the GRUB boot menu. All others are missing.
This is my /.snapshots/grub-snapshot.cfg
;
if [ -z "$extra_cmdline" ]; then
submenu "Start bootloader from a read-only snapshot" {
if [ -f "/.snapshots/202/grub-snapshot.cfg" ]; then
source "/.snapshots/202/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/85/grub-snapshot.cfg" ]; then
source "/.snapshots/85/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/84/grub-snapshot.cfg" ]; then
source "/.snapshots/84/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/78/grub-snapshot.cfg" ]; then
source "/.snapshots/78/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/74/grub-snapshot.cfg" ]; then
source "/.snapshots/74/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/73/grub-snapshot.cfg" ]; then
source "/.snapshots/73/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/72/grub-snapshot.cfg" ]; then
source "/.snapshots/72/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/71/grub-snapshot.cfg" ]; then
source "/.snapshots/71/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/70/grub-snapshot.cfg" ]; then
source "/.snapshots/70/grub-snapshot.cfg"
fi
if [ x$snapshot_found != xtrue ]; then
submenu "Not Found" { true; }
fi
}
fi
How do I fix this? It seems whenever the transactional-update.timer
triggers a new update only second-latest snapshots get added.