diff options
author | Eric Sandall | 2009-12-18 03:54:59 -0800 |
---|---|---|
committer | Eric Sandall | 2010-01-02 10:09:44 -0800 |
commit | 884c8e119ca2dcf1d06d6dd20c25083e73a37a5b (patch) | |
tree | 4a3b8c806577bc1a9d17824f71970e2a033a40c3 | |
parent | 6418e91bedd023b120b3ae6b5d11e3b9eb2c2e17 (diff) |
lvm: Allow forcing all of LVM to be built
Fixes Bug #15517
(cherry picked from commit 6d695eaefec79ecc35fcfa1a7ea0db19f3b662e7)
-rw-r--r-- | disk/lvm/HISTORY | 4 | ||||
-rwxr-xr-x | disk/lvm/PRE_SUB_DEPENDS | 5 | ||||
-rwxr-xr-x | disk/lvm/SUB_DEPENDS | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/disk/lvm/HISTORY b/disk/lvm/HISTORY index c93922cc67..578ff03fbd 100644 --- a/disk/lvm/HISTORY +++ b/disk/lvm/HISTORY @@ -1,3 +1,7 @@ +2009-12-18 Eric Sandall <sandalle@sourcemage.org> + * SUB_DEPENDS, PRE_SUB_DEPENDS: Allow forcing all of LVM to be built + Fixes Bug #15517 + 2009-11-25 Ladislav Hagara <hgr@vabo.cz> * DETAILS: 2.02.56 diff --git a/disk/lvm/PRE_SUB_DEPENDS b/disk/lvm/PRE_SUB_DEPENDS new file mode 100755 index 0000000000..0b139d2b08 --- /dev/null +++ b/disk/lvm/PRE_SUB_DEPENDS @@ -0,0 +1,5 @@ +case $THIS_SUB_DEPENDS in + LVM_FULL) [[ "$LVM_DM_ONLY" == "n" ]] && return 0 ;; + *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}" ; + return 1;; +esac diff --git a/disk/lvm/SUB_DEPENDS b/disk/lvm/SUB_DEPENDS new file mode 100755 index 0000000000..7c24e9bf3d --- /dev/null +++ b/disk/lvm/SUB_DEPENDS @@ -0,0 +1,6 @@ +case "$THIS_SUB_DEPENDS" in + LVM_FULL) LVM_DM_ONLY=n && + persistent_add LVM_DM_ONLY ;; + *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}" && + return 1;; +esac |