I must be misunderstanding btrfs (what a surprise).
Im sure from what iv read that when you use snapper rollback that it should change the default snapshot which should then be booted from.
I just dont see how to get btrfs to boot from the set default snapshot
snapper has set a default snapshot
sudo btrfs subvolume get-default / <b2> β
ID 345 gen 1492 top level 263 path @/.snapshots/52/snapshot
some info on that default snapshot
sudo btrfs subvolume show /.snapshots/52/snapshot ξ² INT β
@/.snapshots/52/snapshot
Name: snapshot
UUID: 639ef70e-9dc9-9f40-b083-52d734060e8b
Parent UUID: e6c5ebce-4cad-8140-ac44-e858437473b7
Received UUID: -
Creation time: 2024-07-07 10:25:55 +0100
Subvolume ID: 345
Generation: 1492
Gen at creation: 1492
Parent ID: 263
Top level ID: 263
Flags: -
Send transid: 0
Send time: 2024-07-07 10:25:55 +0100
Receive transid: 0
Receive time: -
Snapshot(s):
Quota group: n/a
snapper indicates that it should be booted from after the next reboot
sudo snapper -c root list ξ² β
# β Type β Pre # β Date β User β Cleanup β Description β Userdata
βββββΌβββββββββΌββββββββΌβββββββββββββββββββββββββββββββΌβββββββΌβββββββββββΌβββββββββββββββββββββββββΌββββββββββββββ
0 β single β β β root β β current β
2 β single β β Mon 03 Jun 2024 03:33:30 BST β root β β β
7 β single β β Mon 03 Jun 2024 04:01:24 BST β root β β Manual Snapshot β
23 β single β β Sat 06 Jul 2024 11:27:53 BST β root β β Manual Snapshot β
32 β single β β Sat 06 Jul 2024 19:00:13 BST β root β timeline β timeline β
34 β single β β Sat 06 Jul 2024 19:56:39 BST β root β number β rollback backup β important=yes
37 β single β β Sat 06 Jul 2024 20:00:15 BST β root β timeline β timeline β
38 β single β β Sat 06 Jul 2024 20:02:25 BST β root β number β boot β
39 β single β β Sat 06 Jul 2024 20:16:44 BST β root β number β boot β
40 β single β β Sat 06 Jul 2024 20:26:56 BST β root β number β rollback backup of #35 β important=yes
41 β single β β Sat 06 Jul 2024 20:26:56 BST β root β β writable copy of #37 β
42 β single β β Sat 06 Jul 2024 20:28:27 BST β root β number β boot β
43 β single β β Sat 06 Jul 2024 21:00:08 BST β root β timeline β timeline β
44 β single β β Sun 07 Jul 2024 09:39:00 BST β root β β boot β
45 β single β β Sun 07 Jul 2024 09:46:43 BST β root β number β boot β
46 β single β β Sun 07 Jul 2024 09:52:28 BST β root β β hellothere β
47 β single β β Sun 07 Jul 2024 10:00:00 BST β root β number β timeline β
48 β single β β Sun 07 Jul 2024 10:10:13 BST β root β number β boot β
49 β single β β Sun 07 Jul 2024 10:18:52 BST β root β number β boot β
50 β single β β Sun 07 Jul 2024 10:21:34 BST β root β β new β
51 β single β β Sun 07 Jul 2024 10:25:55 BST β root β number β rollback backup of #47 β important=yes
52+ β single β β Sun 07 Jul 2024 10:25:55 BST β root β β writable copy of #50 β
53 β single β β Sun 07 Jul 2024 10:26:35 BST β root β number β boot β
54 β single β β Sun 07 Jul 2024 11:00:00 BST β root β timeline β timeline β
ο ξ° ο ~ ξ°
But after a reboot as far as i can tell its still booting from the @ snapshot
findmnt / ξ² β
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sda1[/@] btrfs rw,relatime,space_cache=v2,subvolid=329,subvol=/@
I have changed the fstab and the default/grub to remove the subvol=X, its supposed to boot from the default subvolume now?
sudo cat /etc/default/grub ξ² β
# GRUB boot loader configuration
GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="root=UUID=c863c9b5-d87a-4196-bdfb-5002d20e4ce0 quiet splash udev.log_priority=3"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
# Set to 'countdown' or 'menu' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=hidden
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"
# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y
# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false
# Uncomment to ensure that the root filesystem is mounted read-only so that
# systemd-fsck can run the check automatically. We use 'fsck' by default, which
# needs 'rw' as boot parameter, to avoid delay in boot-time. 'fsck' needs to be
# removed from 'mkinitcpio.conf' to make 'systemd-fsck' work.
# See also Arch-Wiki: https://wiki.archlinux.org/index.php/Fsck#Boot_time_checking
#GRUB_ROOT_FS_RO=true
fstab
sudo cat /etc/fstab ξ² β
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=c863c9b5-d87a-4196-bdfb-5002d20e4ce0 / btrfs defaults 0 0
UUID=c863c9b5-d87a-4196-bdfb-5002d20e4ce0 /home btrfs subvol=/@home,defaults 0 0
UUID=c863c9b5-d87a-4196-bdfb-5002d20e4ce0 /var/cache btrfs subvol=/@cache,defaults 0 0
UUID=c863c9b5-d87a-4196-bdfb-5002d20e4ce0 /var/log btrfs subvol=/@log,defaults 0 0
But it still boots from @ ?
How are
sudo snapper rollback
sudo btrfs subvolume set-default
supposed to work?