Commented out the checks on the sanity of lvm.conf since they were not quite working right. This should fix bug #173622.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@506 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 18 years ago
parent 62c3988a09
commit 92542bf56c

@ -2,6 +2,11 @@
# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
12 Apr 2007; Chris Gianelloni <wolf31o2@gentoo.org> gen_initramfs.sh,
gen_initrd.sh:
Commented out the checks on the sanity of lvm.conf since they were not quite
working right. This should fix bug #173622.
09 Apr 2007; Chris Gianelloni <wolf31o2@gentoo.org> +x86/nb-busybox.cf: 09 Apr 2007; Chris Gianelloni <wolf31o2@gentoo.org> +x86/nb-busybox.cf:
Added nb-busybox.cf to x86 on the request of Andrew Gaffney Added nb-busybox.cf to x86 on the request of Andrew Gaffney
<agaffney@gentoo.org>. <agaffney@gentoo.org>.

@ -208,7 +208,7 @@ append_lvm2(){
cd ${TEMP} cd ${TEMP}
mkdir -p "${TEMP}/initramfs-lvm2-temp/bin/" mkdir -p "${TEMP}/initramfs-lvm2-temp/bin/"
mkdir -p "${TEMP}/initramfs-lvm2-temp/etc/lvm/" mkdir -p "${TEMP}/initramfs-lvm2-temp/etc/lvm/"
if [ -e '/sbin/lvm' ] && ldd /sbin/lvm|grep -q 'not a dynamic executable' if [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable'
then then
print_info 1 ' LVM2: Adding support (using local static binaries)...' print_info 1 ' LVM2: Adding support (using local static binaries)...'
cp /sbin/lvm "${TEMP}/initramfs-lvm2-temp/bin/lvm" || cp /sbin/lvm "${TEMP}/initramfs-lvm2-temp/bin/lvm" ||
@ -223,15 +223,15 @@ append_lvm2(){
fi fi
if [ -x /sbin/lvm ] if [ -x /sbin/lvm ]
then then
lvm dumpconfig 2>&1 > /dev/null || gen_die 'Could not copy over lvm.conf!' # lvm dumpconfig 2>&1 > /dev/null || gen_die 'Could not copy over lvm.conf!'
ret=$? # ret=$?
if [ ${ret} != 0 ] # if [ ${ret} != 0 ]
then # then
cp /etc/lvm/lvm.conf "${TEMP}/initramfs-lvm2-temp/etc/lvm/" || cp /etc/lvm/lvm.conf "${TEMP}/initramfs-lvm2-temp/etc/lvm/" ||
gen_die 'Could not copy over lvm.conf!' gen_die 'Could not copy over lvm.conf!'
else # else
gen_die 'Could not copy over lvm.conf!' # gen_die 'Could not copy over lvm.conf!'
fi # fi
fi fi
cd "${TEMP}/initramfs-lvm2-temp/" cd "${TEMP}/initramfs-lvm2-temp/"
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"

@ -168,7 +168,7 @@ create_base_initrd_sys() {
# LVM2 # LVM2
if [ "${LVM2}" = '1' ] if [ "${LVM2}" = '1' ]
then then
if [ -e '/sbin/lvm' ] && ldd /sbin/lvm|grep -q 'not a dynamic executable'; if [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable';
then then
print_info 1 'LVM2: Adding support (using local static binaries)...' print_info 1 'LVM2: Adding support (using local static binaries)...'
cp /sbin/lvm "${TEMP}/initrd-temp/bin/lvm" || cp /sbin/lvm "${TEMP}/initrd-temp/bin/lvm" ||
@ -189,15 +189,15 @@ create_base_initrd_sys() {
mkdir -p ${TEMP}/initrd-temp/etc/lvm mkdir -p ${TEMP}/initrd-temp/etc/lvm
if [ -x /sbin/lvm ] if [ -x /sbin/lvm ]
then then
lvm dumpconfig 2>&1 > /dev/null || gen_die 'Could not copy over lvm.conf!' # lvm dumpconfig 2>&1 > /dev/null || gen_die 'Could not copy over lvm.conf!'
ret=$? # ret=$?
if [ ${ret} != 0 ] # if [ ${ret} != 0 ]
then # then
cp /etc/lvm/lvm.conf "${TEMP}/initramfs-lvm2-temp/etc/lvm/" || cp /etc/lvm/lvm.conf "${TEMP}/initramfs-lvm2-temp/etc/lvm/" ||
gen_die 'Could not copy over lvm.conf!' gen_die 'Could not copy over lvm.conf!'
else # else
gen_die 'Could not copy over lvm.conf!' # gen_die 'Could not copy over lvm.conf!'
fi # fi
fi fi
fi fi

Loading…
Cancel
Save