Bug 27420 - lvmcreate_initrd contains obsolete use of `tail -1'
Bug#: 27420 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: 3.14159@gmx.net
Component: Applications
URL: 
Summary: lvmcreate_initrd contains obsolete use of `tail -1'
Keywords:  
Status Whiteboard: 
Opened: 2003-08-27 06:19 0000
Description:   Opened: 2003-08-27 06:19 0000
lvmcreate_initrd always fails creating a ramdisk,because the created ramdisk is
too small. this is caused by using `tail -1' which is obsolete and exits with
an error. (/sbin/lvmcreate_initrd line 262) when `tail -1' is replaced by `tail
-n 1' the script works as expected. pls correct using a patch or some sed
script in the ebuild.

------- Comment #1 From Rob Holland 2004-07-08 01:56:08 0000 -------
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 "54,56d" -e "73d" make.tmpl
 
+       # Fix tail
+       sed -i -e 's/tail -1/tail -n 1/' tools/lvmcreate_initrd
+
        make || die "Make failed"
 }

Easily fixed :)

------- Comment #2 From Eric Edgar (RETIRED) 2005-06-28 10:24:09 0000 -------
This is in the -r4 version of lvm-user.  Closing as fixed.