<?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>27420</bug_id>
          
          <creation_ts>2003-08-27 06:19 0000</creation_ts>
          <short_desc>lvmcreate_initrd contains obsolete use of `tail -1&apos;</short_desc>
          <delta_ts>2005-06-28 10:24:09 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>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>3.14159@gmx.net</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>3.14159@gmx.net</who>
            <bug_when>2003-08-27 06:19:05 0000</bug_when>
            <thetext>lvmcreate_initrd always fails creating a ramdisk,because the created ramdisk is too small. this is caused by using `tail -1&apos; which is obsolete and exits with an error. (/sbin/lvmcreate_initrd line 262) when `tail -1&apos; is replaced by `tail -n 1&apos; the script works as expected. pls correct using a patch or some sed script in the ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tigger@ereet.co.uk</who>
            <bug_when>2004-07-08 01:56:08 0000</bug_when>
            <thetext>bash-2.05b$ diff -u lvm-user-1.0.7-r1.ebuild lvm-user-1.0.7-r2.ebuild 
--- lvm-user-1.0.7-r1.ebuild    2004-06-30 18:35:54.000000000 +0100
+++ lvm-user-1.0.7-r2.ebuild    2004-07-08 09:51:22.359606800 +0100
@@ -43,6 +43,9 @@
        # Fix flags
        sed -i -e &quot;54,56d&quot; -e &quot;73d&quot; make.tmpl
 
+       # Fix tail
+       sed -i -e &apos;s/tail -1/tail -n 1/&apos; tools/lvmcreate_initrd
+
        make || die &quot;Make failed&quot;
 }

Easily fixed :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rocket@gentoo.org</who>
            <bug_when>2005-06-28 10:24:09 0000</bug_when>
            <thetext>This is in the -r4 version of lvm-user.  Closing as fixed.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>