Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175983 - sys-fs/lvm2 misses init-script for usage with baselayout-2
Summary: sys-fs/lvm2 misses init-script for usage with baselayout-2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-25 16:30 UTC by Matthias Schwarzott
Modified: 2007-05-10 20:52 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild change to install the init-script (lvm2-ebuild-install-init-script.diff,600 bytes, patch)
2007-04-25 16:30 UTC, Matthias Schwarzott
Details | Diff
Simplest possible init-script for lvm (lvm.rc,532 bytes, text/plain)
2007-04-25 16:32 UTC, Matthias Schwarzott
Details
Updated lvm-initscript (lvm,752 bytes, text/plain)
2007-05-02 08:21 UTC, Matthias Schwarzott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2007-04-25 16:30:06 UTC
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).
Comment 1 Matthias Schwarzott gentoo-dev 2007-04-25 16:30:31 UTC
Created attachment 117238 [details, diff]
ebuild change to install the init-script
Comment 2 Matthias Schwarzott gentoo-dev 2007-04-25 16:32:29 UTC
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.
Comment 3 Matthias Schwarzott gentoo-dev 2007-04-26 06:53:56 UTC
You can also add some elog to postinst, about adding that to runlevel boot with baselayout-2.
Comment 4 Matthias Schwarzott gentoo-dev 2007-05-02 08:21:24 UTC
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).
Comment 5 Mike Auty (RETIRED) gentoo-dev 2007-05-05 10:55:00 UTC
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...
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2007-05-09 16:33:13 UTC
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.
Comment 7 Michiel de Bruijne 2007-05-10 06:31:02 UTC
(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!
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2007-05-10 15:07:02 UTC
Michiel: Good idea. Done. :)

robbat fixed my typo from yesterday..
Comment 9 Michiel de Bruijne 2007-05-10 20:52:15 UTC
(In reply to comment #8)
> Michiel: Good idea. Done. :)
> 
> robbat fixed my typo from yesterday..
> 

Thanks a lot Doug!!