Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27420 - lvmcreate_initrd contains obsolete use of `tail -1'
Summary: lvmcreate_initrd contains obsolete use of `tail -1'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-27 06:19 UTC by Thomas Weidner
Modified: 2005-06-28 10:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2003-08-27 06:19:05 UTC
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 Rob Holland 2004-07-08 01:56:08 UTC
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 Eric Edgar (RETIRED) gentoo-dev 2005-06-28 10:24:09 UTC
This is in the -r4 version of lvm-user.  Closing as fixed.