Hello, I just install opensuse and i notice i don’t have entry to make a rollback on grub menu (and i don’t see another way to make a rollback).
I think the problem is because i don’t have any file like /.snapshot/number/grub-snapshot.cfg.
For information :
i have SUSE_BTRFS_SNAPSHOT_BOOTING="true"
in /etc/default/grub
i try grub2-mkconfig -o /boot/grub2/grub.cfg
/.snapshot is well mount
/etc/fstab :
/dev/mapper/cr_root on / type btrfs (rw,relatime,ssd,space_cache,subvolid=264,subvol=/@/.snapshots/1/snapshot)
/dev/mapper/cr_root on /.snapshots type btrfs (rw,relatime,ssd,space_cache,subvolid=263,subvol=/@/.snapshots)
/dev/mapper/cr_root on /srv type btrfs (rw,relatime,ssd,space_cache,subvolid=260,subvol=/@/srv)
/dev/mapper/cr_root on /opt type btrfs (rw,relatime,ssd,space_cache,subvolid=262,subvol=/@/opt)
/dev/mapper/cr_root on /root type btrfs (rw,relatime,ssd,space_cache,subvolid=261,subvol=/@/root)
/dev/mapper/cr_root on /tmp type btrfs (rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/tmp)
/dev/mapper/cr_root on /var type btrfs (rw,relatime,ssd,space_cache,subvolid=257,subvol=/@/var)
/dev/mapper/cr_root on /usr/local type btrfs (rw,relatime,ssd,space_cache,subvolid=258,subvol=/@/usr/local)
/dev/mapper/cr_boot on /boot type ext2 (rw,relatime)
/boot/grub2/grub.cfg
I think it always like that.
### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ###
btrfs-mount-subvol ($root) /.snapshots @/.snapshots
if [ -f "/.snapshots/grub-snapshot.cfg" ]; then
source "/.snapshots/grub-snapshot.cfg"
fi
### END /etc/grub.d/80_suse_btrfs_snapshot ###
/.snapshots/grub-snapshot.cfg
Is empty. I suppose its because i haven’t any grub-snapshot.cfg
if [ -z "$extra_cmdline" ]; then
submenu "Start bootloader from a read-only snapshot" {
if [ x$snapshot_found != xtrue ]; then
submenu "Not Found" { true; }
fi
}
fi
Thanks for your help