9990-misc-helpers.sh: support lvm/mdadm in fromiso feature.
authorMihai Moldovan <ionic@ionic.de>
Thu, 25 Mar 2021 05:15:28 +0000 (06:15 +0100)
committerMihai Moldovan <ionic@ionic.de>
Thu, 25 Mar 2021 05:20:44 +0000 (06:20 +0100)
commitcf60d58aaf46248744f163b4892040a8e323579a
tree96072f798816352c3ba8e106ac0cc19ba1693e9d
parenta70800ee4b64f8566344587935642d55feb51777
9990-misc-helpers.sh: support lvm/mdadm in fromiso feature.

Previously, it wasn't possible to use fromiso with a Linux software RAID
or LVM device.

The code handling lvm/mdadm devices has been moved around and the
fromiso feature split up, so that lvm/mdadm devices are now started as
necessary even when fromiso has been passed.

The usual caveats apply: if you start from an lvm/mdadm device *without*
using the toram feature, the original volume will be kept mounted, so
it's not safe to mount the volume containing the grml image after
booting it.

With the toram feature, this is not an issue, since all the data is read
into a ramdisk and the original volume unmounted.
components/9990-misc-helpers.sh