No read-only snapshots listed in grub submenu (only after-installation snapshot is present)

Hello, I have recently installed micro-os.
I use transactional-update to daily update my system with “transactional-update pkg install…”, “transactional-update dup”, optionally “transactional-update apply” and the likes.
After rebooting I noticed that in the grub submenu where old read-only snapshots are listed, there is only one read-only snapshot (the default snapshot created after microos installation).
Indeed looking at /.snapshosts/grub-snapshot.conf there is only one entry listed and ./snapshots/N/grub-snapshot.cfg files have not been created.

if [ -z "$extra_cmdline" ]; then
submenu  "Start bootloader from a read-only snapshot" {
if [ -f "/.snapshots/2/grub-snapshot.cfg" ]; then
source "/.snapshots/2/grub-snapshot.cfg"
fi
if [ x$snapshot_found != xtrue ]; then
submenu "Not Found" { true; }
fi
}
fi

But I have a bunch of snapshots lying around that I expected to see listed in grub submenu:

# snapper list
# │ Type   │ Pre # │ Date                     │ User │ Used Space │ Cleanup │ Description            │ Userdata
────┼────────┼───────┼──────────────────────────┼──────┼────────────┼─────────┼────────────────────────┼──────────────
0  │ single │       │                          │ root │            │         │ current                │
2  │ single │       │ Tue Jun 11 14:23:25 2024 │ root │  90.97 MiB │ number  │ after installation     │ important=yes
9  │ single │       │ Tue Jun 11 16:59:09 2024 │ root │  37.36 MiB │ number  │ Snapshot Update of #8  │
10  │ single │       │ Wed Jun 12 11:39:59 2024 │ root │  82.79 MiB │ number  │ Snapshot Update of #9  │
11  │ single │       │ Wed Jun 12 11:45:58 2024 │ root │  94.57 MiB │ number  │ Snapshot Update of #10 │
12  │ single │       │ Wed Jun 12 11:50:33 2024 │ root │ 224.00 KiB │ number  │ Snapshot Update of #11 │
13  │ single │       │ Wed Jun 12 11:52:00 2024 │ root │  55.45 MiB │ number  │ Snapshot Update of #12 │
14- │ single │       │ Wed Jun 12 12:17:24 2024 │ root │  70.82 MiB │ number  │ Snapshot Update of #12 │
15  │ single │       │ Wed Jun 12 12:20:18 2024 │ root │  71.18 MiB │ number  │ Snapshot Update of #14 │
17  │ single │       │ Wed Jun 12 12:53:52 2024 │ root │ 176.00 KiB │ number  │ Snapshot Update of #15 │
18  │ single │       │ Wed Jun 12 12:58:41 2024 │ root │ 268.00 KiB │ number  │ Snapshot Update of #17 │
19  │ single │       │ Wed Jun 12 12:59:12 2024 │ root │   1.09 MiB │ number  │ Snapshot Update of #18 │
20  │ single │       │ Wed Jun 12 14:31:04 2024 │ root │   2.61 MiB │ number  │ Snapshot Update of #19 │
21  │ single │       │ Wed Jun 12 14:33:35 2024 │ root │   9.38 MiB │ number  │ Snapshot Update of #19 │
22  │ single │       │ Wed Jun 12 14:36:21 2024 │ root │   9.27 MiB │ number  │ Snapshot Update of #19 │
23  │ single │       │ Wed Jun 12 14:43:39 2024 │ root │   9.25 MiB │ number  │ Snapshot Update of #19 │
24+ │ single │       │ Wed Jun 12 15:03:33 2024 │ root │  13.13 MiB │ number  │ Snapshot Update of #19 │

SUSE_BTRFS_SNAPSHOT_BOOTING=“true” is present in my /etc/default/grub.

If I run “snapper create” then a snapshot is created and /.snapshosts/grub-snapshot.cfg get updated and also /.snapshots/N/grub-snapshot.cfg is created:

# snapper create
# snapper list
# │ Type   │ Pre # │ Date                     │ User │ Used Space │ Cleanup │ Description            │ Userdata
────┼────────┼───────┼──────────────────────────┼──────┼────────────┼─────────┼────────────────────────┼──────────────
0  │ single │       │                          │ root │            │         │ current                │
2  │ single │       │ Tue Jun 11 14:23:25 2024 │ root │ 173.66 MiB │ number  │ after installation     │ important=yes
14- │ single │       │ Wed Jun 12 12:17:24 2024 │ root │  16.00 KiB │ number  │ Snapshot Update of #12 │
15  │ single │       │ Wed Jun 12 12:20:18 2024 │ root │  71.18 MiB │ number  │ Snapshot Update of #14 │
17  │ single │       │ Wed Jun 12 12:53:52 2024 │ root │ 176.00 KiB │ number  │ Snapshot Update of #15 │
18  │ single │       │ Wed Jun 12 12:58:41 2024 │ root │ 268.00 KiB │ number  │ Snapshot Update of #17 │
19  │ single │       │ Wed Jun 12 12:59:12 2024 │ root │   1.09 MiB │ number  │ Snapshot Update of #18 │
20  │ single │       │ Wed Jun 12 14:31:04 2024 │ root │   2.61 MiB │ number  │ Snapshot Update of #19 │
21  │ single │       │ Wed Jun 12 14:33:35 2024 │ root │   9.38 MiB │ number  │ Snapshot Update of #19 │
22  │ single │       │ Wed Jun 12 14:36:21 2024 │ root │   9.27 MiB │ number  │ Snapshot Update of #19 │
23  │ single │       │ Wed Jun 12 14:43:39 2024 │ root │   9.25 MiB │ number  │ Snapshot Update of #19 │
24+ │ single │       │ Wed Jun 12 15:03:33 2024 │ root │  13.13 MiB │ number  │ Snapshot Update of #19 │
25  │ single │       │ Wed Jun 12 15:32:10 2024 │ root │  16.00 KiB │         │                        │

# cat /.snapshots/grub-snapshot.cfg
if [ -z "$extra_cmdline" ]; then
submenu  "Start bootloader from a read-only snapshot" {
if [ -f "/.snapshots/25/grub-snapshot.cfg" ]; then
source "/.snapshots/25/grub-snapshot.cfg"
fi
if [ -f "/.snapshots/2/grub-snapshot.cfg" ]; then
source "/.snapshots/2/grub-snapshot.cfg"
fi
if [ x$snapshot_found != xtrue ]; then
submenu "Not Found" { true; }
fi
}
fi

# cat /.snapshots/25/grub-snapshot.cfg

if [ -f "/.snapshots/25/snapshot/boot/grub2/grub.cfg" ]; then
snapshot_found=true
saved_subvol=$btrfs_subvol
menuentry  " openSUSE MicroOS  (6.9.3-1,2024-06-12T13:32)" "/.snapshots/25/snapshot" "/@/.snapshots/25/snapshot" {
btrfs_subvol="$3"
extra_cmdline="rootflags=subvol=$3"
export extra_cmdline
snapshot_num=25
export snapshot_num
configfile "$2/boot/grub2/grub.cfg"
btrfs_subvol=$saved_subvol
}
fi

So I can’t boot from an earlier snapshot, only from the last default one or the first snapshot created post installation. How could I do ? I already reinstalled microos but the behaviour is the same, so it seems to me something wrong in transactional-update.

Is the package snapper-zypp-plugin installed?

it is:

# rpm -q snapper-zypp-plugin
snapper-zypp-plugin-0.11.0-1.1.x86_64

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.