Bug 27785

Summary: Live ISO booting updated kernel in encrypted +pick up mgalive-persist partition in LVM
Product: Mageia Reporter: Morgan Leijström <fri>
Component: Release (media or process)Assignee: Martin Whitaker <mageia>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal CC: davidwhodgins, sysadmin-bugs
Version: Cauldron   
Target Milestone: Mageia 9   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment: Look at for Mageia 9

Description Morgan Leijström 2020-12-08 22:30:48 CET
Tried on 8beta2 round 1 x86_64 Xfce Live, both encrypted and nonencrypted LVM

I dont know if it was meant to work but is broken, or just not considered.
I see in journal LVM get activated and find the partition, so I would believe it is little work to make it work.

This may seem like an unneeded luxory, but LVM do have use cases also on Live:

§ Facilitates encrypting both mgalive-persist and swap (in same LVM group based on one encrypted pv... like i have on my workstation.)

§ Facilitates i.e having a couple swap partitions, and then if needed easily remove one or two to be able to easily extend persistence partition - while running.

§ Facilitates snapshots

...


Comment:
I found old computers are actually running faster from fast USB/CF/SD, than their original disk, so having swap seem natural.  It is also advantageous on old computer with little ram.  And depending on use case it is nice to hibernate a laptop to Live storage, i.e i have an old diskless laptop now running nicely on Live.  Because there exist no PATA SSD to put into it (well i could try CompactFlash + IDE adapter, but Live works)
Morgan Leijström 2020-12-08 22:31:32 CET

Target Milestone: --- => Mageia 8
Assignee: bugsquad => mageia

Comment 1 Martin Whitaker 2020-12-09 11:26:40 CET
See my previous answer in bug 25191, comment 2.

Also note that there is a disadvantage to using an encrypted persistence partition (even in the simple case we support now). GRUB won't detect any newer kernels stored there, so you will always be using the original kernel.

As I said in the previous bug, if you want/need a more complex setup, just use the classical installer to install directly onto your removable device. It may use more space, but it should be faster and more flexible.
Comment 2 Morgan Leijström 2020-12-09 15:24:47 CET
Oh, thanks for the heads up about the new kernel will not get used if using encryption!  I will note that on the wiki.

Trying to get to the bottom of what can be done - not mostly for me but for enthusiasts eventually reading the wiki.

Yes a traditional install is more flexible.

However, Live to me feels a bit more reliable. I have had some trouble before about where boot loader lands, and i believe an update screwed up main system (or a coincidence), but that was years ago.  Did not report it, but something similar to Bug 27013

Not sure which is faster; compression also mean less data to read/write and transfer. Depends on how CPU intensive it is and CPU versus memory and connection speed.  But OK we can compress on a normal install too.  I will not experiment though - not now anyway...


PS 
Today used mga8 live at a customer to replace a disk, writing diskimage. :)
  DS
Comment 3 Martin Whitaker 2020-12-09 22:25:29 CET
It's not straightforward to support this, so it's not going to happen for Mageia 8.

GRUB2 does have some support for booting from encrypted filesystems, so that's something else to look at for Mageia 9.

Target Milestone: Mageia 8 => ---

Comment 4 Morgan Leijström 2020-12-09 22:34:48 CET
:)

Status comment: (none) => Look at for Mageia 9
Summary: Live ISO booting do not pick up mgalive-persist partition in LVM => Live ISO booting updated kernel in encrypted +pick up mgalive-persist partition in LVM

Comment 5 Morgan Leijström 2020-12-09 23:40:15 CET
Wondering:

As an encrypted Live always boot original kernel, can that induce a problem with proprietary drivers rebuilding and use?

Regardless of that, maybe kernel updates ought to be blacklisted if mgalive-persist is encrypted?
Comment 6 Morgan Leijström 2021-01-29 01:11:14 CET
Pinging for the question in comment 5
(for writing in wiki)
Comment 7 Dave Hodgins 2021-01-29 02:46:53 CET
(In reply to Morgan Leijström from comment #5)
> Wondering:
> As an encrypted Live always boot original kernel, can that induce a problem
> with proprietary drivers rebuilding and use?

It shouldn't since the running kernel will not be auto-orphaned.
 
> Regardless of that, maybe kernel updates ought to be blacklisted if
> mgalive-persist is encrypted?

What about users installing updates in preparation for then installing to
a different computer (that may need the new kernel)?

CC: (none) => davidwhodgins

Comment 8 Morgan Leijström 2021-01-29 09:12:49 CET
Thank you :)
Morgan Leijström 2021-03-15 09:01:42 CET

Severity: normal => enhancement
Target Milestone: --- => Mageia 9