lvm2 does not work with baselayout-2, as this (after version 2.0.0_alpha1) has skipped support for the old volume-addons (/lib/rcscripts/addons/lvm-start.sh in this case).
Created attachment 117238 [details, diff] ebuild change to install the init-script
Created attachment 117240 [details] Simplest possible init-script for lvm This init-script will just include the old addons to do the real starting/stopping of lvm. Additionally it checks if we run under baselayout-2.
You can also add some elog to postinst, about adding that to runlevel boot with baselayout-2.
Created attachment 117924 [details] Updated lvm-initscript Updated initscript that should solve the dep-cycles it created on baselayout-1 systems. It is generic enough to be used for all other volume-managers (dm, md, evms).
As far as I'm aware start_addon and stop_addon still exist, are these going away anytime soon? I've just written a similar dm-crypt script (bug 177100) and I'm going to be adding in the dependency checking for "before checkroot" (yoink!), but I've used start_addon and stop_addon instead...
I've added this script to the latest version, lvm2-2-02.17 only without a revbump since baselayout-2 is masked. robbat: If you have an issue with this change, please let me know. It's not destructive and necessary for people to help test baselayout-2.
(In reply to comment #6) > I've added this script to the latest version, lvm2-2-02.17 only without a > revbump since baselayout-2 is masked. > > robbat: If you have an issue with this change, please let me know. It's not > destructive and necessary for people to help test baselayout-2. > Hi Doug (or another dev), Would you be so kind to put in an ewarn/elog about adding the init to the boot runlevel? If people use lvm2 on the root partition and baselayout2 without adding it to the boot runlevel have an unbootable system. Thanks!
Michiel: Good idea. Done. :) robbat fixed my typo from yesterday..
(In reply to comment #8) > Michiel: Good idea. Done. :) > > robbat fixed my typo from yesterday.. > Thanks a lot Doug!!