Hello!
I am using openSUSE Tumbleweed and I want to make use of snasphots, without using snapper.
So, I created a manual snapshot of my system:
Code:
sudo btrfs subvol snapshot /mnt/@ /mnt/@snapshots/1/snapshot/
I added this entry to /etc/grub.d/40_custom:
Code:
menuentry 'openSUSE Tumbleweed Maio' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-58ce4ca7-01f9-4a45-aa77-b7e6567b7f69' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod btrfs
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 58ce4ca7-01f9-4a45-aa77-b7e6567b7f69
else
search --no-floppy --fs-uuid --set=root 58ce4ca7-01f9-4a45-aa77-b7e6567b7f69
fi
echo 'Loading Linux 6.3.1-1-default ...'
linux /@snapshots/1/snapshot/boot/vmlinuz-6.3.1-1-default root=UUID=58ce4ca7-01f9-4a45-aa77-b7e6567b7f69 rootflags=subvol="@snapshots/1/snapshot" ${extra_cmdline} splash=silent quiet security=apparmor nosgx mitigations=auto
echo 'Loading initial ramdisk ...'
initrd /@snapshots/1/snapshot/boot/initrd-6.3.1-1-default
}
I regenerated grub.cfg through YaST
Then, when I tried to boot the snapshot from GRUB menu but I get this error message:
https://postimg.cc/4n9LJX4d