
17.12.2015 22:08, Richard Brown пишет:
Hi Thorsten,
On 17 December 2015 at 12:55, Thorsten Kukuk <kukuk@suse.de> wrote:
Ok, since I already told Richard that I don't think that his analysis is fully correct, here now a short description how to setup btrfs, snapshots and rollback with full root filesystem encryption on openSUSE Leap 42.1:
- Use GPT disk label - In the partitioner, select encrypted LVM, btrfs for the root filesystem and make sure that the snapshot checkbox is activated. - Install.
To do the rollback: Select the approbiate snapshot in the grub2 menu or call "snapper rollback <id>" on the commandline. Both works.
And yes, due to old legacy code, it is currently not possible to do this without LVM. But we will work on this.
Thorsten
Thank you for the feedback, but I'm very disappointed to report that even following your instructions to the letter, the resulting system does not have Boot to Snapshot working
The steps I took are as follows
First - started with a nice blank disk (dd if=/dev/zero to wipe it all out) Gave it a GPT partition table Confirmed the GPT partition table with parted -l
Model: ATA SanDisk SD7SB3Q2 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/512B Partition Table: gpt
Booted from a USB stick - tested with both Leap 42.1 and Tumbleweed In the partitioner, I clicked on encrypted LVM, btrfs for the root filesystem, and snapshots were ticked This results in a system with the following partition configuration /dev/sda1 156MB FAT mounted as /boot/efi /dev/sda2 400MB btrfs mounted as /boot
That's different from legacy BIOS
/dev/sda3 237.93GB LVM /dev/system LVM Volume Group /dev/system/root 40GB btrfs mounted as / /dev/system/swap 2GB swap
I then installed as normal, nothing fancy, GNOME picked as DE, nothing else customised
To do the rollback, I CANNOT select *any* snapshot on the grub2 menu, there is no Grub Menu item for "Boot to Read Only Snapshot"
I can either boot the OS, or pick advanced Options, no chance for using Boot to Snapshot
Snapper IS working, if I boot the system I can use snapper to rollback just fine, but that is no good if the problem is one which would necessitate the use of the Boot to Snapshot feature.
I want to file a bug about this, obviously, but if you could please indicate either what I did wrong, or where you think the flaw might be so I can narrow down the focus of the bug and provide detailed information on the areas of suspicion
Try legacy BIOS with disk labeled as GPT before running installer.
Right now, my experience in this area leads me to believe that Boot to Snapshot just downright does-not-work when LVM encryption is used.
It works on legacy BIOS.
I realise this is contrary to your instructions above, but I do have a machine right in front of me now that seems to confirm my past experiences..
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org