<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>156009</bug_id>
          
          <creation_ts>2006-11-23 02:10 0000</creation_ts>
          <short_desc>genkernel should check that /etc/lvm/lvm.conf is valid before merging it to initrd</short_desc>
          <delta_ts>2007-04-05 15:00:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InSVN</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>betelgeuse@gentoo.org</reporter>
          <assigned_to>genkernel@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2006-11-23 02:10:45 0000</bug_when>
            <thetext>I recently stumbled onto a problem where I had typoed my lvm.conf in the chroot. When booting the machine I found out that genkernel happily used my typoed lvm.conf in the initrd. You can use lvm dumpconfig to detect if lvm.conf is valid.

rj ~ # lvm dumpconfig
  Parse error at line 79: expected a value
  Failed to load config file /etc/lvm/lvm.conf
rj ~ # echo $?
255
rj ~ # lvm dumpconfig
devices {
        dir=&quot;/dev&quot;
        scan=&quot;/dev&quot;
        filter=&quot;r|/dev/cdrom|&quot;
        cache=&quot;/etc/lvm/.cache&quot;
        write_cache_state=1
        sysfs_scan=1
        md_component_detection=1
}
activation {
        missing_stripe_filler=&quot;/dev/ioerror&quot;
        reserved_stack=256
        reserved_memory=8192
        process_priority=-18
        mirror_region_size=512
        mirror_log_fault_policy=&quot;allocate&quot;
        mirror_device_fault_policy=&quot;remove&quot;
}
global {
        umask=63
        test=0
        activation=1
        proc=&quot;/proc&quot;
        locking_type=1
        locking_dir=&quot;/var/lock/lvm&quot;
}
shell {
        history_size=100
}
backup {
        backup=1
        backup_dir=&quot;/etc/lvm/backup&quot;
        archive=1
        archive_dir=&quot;/etc/lvm/archive&quot;
        retain_min=10
        retain_days=30
}
log {
        verbose=0
        syslog=1
        overwrite=0
        level=0
        indent=1
        command_names=0
        prefix=&quot;  &quot;
}
rj ~ # echo $?
0</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-12-13 09:23:51 0000</bug_when>
            <thetext>Ehh... ok... got a patch?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-03-14 01:30:04 0000</bug_when>
            <thetext>OK, I think I&apos;ve fixed this in subversion/3.4.7_pre5</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-04-05 15:00:59 0000</bug_when>
            <thetext>This is fixed in genkernel 3.4.7 which is now in the tree.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>