Bug 1228365

Summary: No Snapper root config and mount created, installer 20240722
Product: [openSUSE] openSUSE Tumbleweed Reporter: Lassi Väätämöinen <lassi.vaatamoinen>
Component: InstallationAssignee: E-mail List <yast2-maintainers>
Status: NEW --- QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P1 - Urgent CC: aschnell
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lassi Väätämöinen 2024-07-26 18:31:49 UTC
DESCRIPTION:

There seems to be an grave issue with Snapper snapshot subvolume cretaion in 20240722 installer.

1. After installation, there is no /.snapshots BTRFS subvolume created
2.  /etc/fstab: no mount point for /.snapshots defined

Accordint to the tutorial disk size > 16GB should have automatic snapshot feature available:
https://en.opensuse.org/openSUSE:Snapper_Tutorial

My disk size was 96GB, and there was no mount point.


ACTIONS NEEDED:

1. Add the missing line to /etc/fstab:

UUID=0aafc776-2ae2-45f6-8ce5-b84725de8c8a  /.snapshots             btrfs  subvol=/@/.snapshots          0  0

2. Rn snapper config and mount:
# snapper --config root create-config /
# mount /.snapshots


If I did not do the above, with the exception of '0' snapshot, there was nothing listed by 'snapper ls' when I booted to a read-only snapshot.


ADDITIONAL INFORMATION

Also perhaps the snapshot rollbacking failed due to this earlier, when booting to read-only snapshot. There only was the '0' snapshot listed and Snapper complained about "unknown subvolume" and proposed using "--ambit classic". But that did not work either then.
Comment 1 Lassi Väätämöinen 2024-07-26 18:33:45 UTC
If there's some kind of detection logic about the BTRFS subvolumes when /etc/fstab is getting created, maybe the installer is missing just running this:

'snapper --config root create-config /'