Bug 137024 - lvm2 missing prereq for /bin/uname
Summary: lvm2 missing prereq for /bin/uname
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: 3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Alasdair Kergon
QA Contact:
Depends On:
Blocks: FC3Target FC4Target
TreeView+ depends on / blocked
Reported: 2004-10-25 08:41 UTC by Steve Hill
Modified: 2007-11-30 22:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-12-08 17:51:55 UTC

Attachments (Terms of Use)

Description Steve Hill 2004-10-25 08:41:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Gecko/20040626 Firefox/0.9.1

Description of problem:
The preinstall script for the lvm2 package requires /bin/uname but
this is not listed as a Prerequisite.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install lvm2 package on a system with /bin/uname not present (e.g.
installing the whole OS from scratch using RPM or YUM instead of Anaconda)

Actual Results:  lvm2 preinstall script fails with following error:

/var/tmp/rpm-tmp.98345: line 1: /bin/uname: No such file or directory
You need to be running a 2.6 kernel to install lvm2.
error: %pre(lvm2-2.00.25-1) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping lvm2-2.00.25-1

Expected Results:  The coreutils package contains /bin/uname - if the
package was specified in the installation list this should be
reordered to install first, otherwise the installation of lvm2 should
fail citing a dependency failure.

Additional info:

Comment 3 Alasdair Kergon 2004-11-03 13:32:43 UTC
This test is a workaround to stop people from attempting to install
the lvm2 RPM (outside anaconda) if they might be running LVM1 during
the install.  I have an updated version of the test using bash
built-ins instead of /bin/uname.

Comment 7 Alasdair Kergon 2004-12-08 17:51:12 UTC
Let's leave things as they are currently, without using /bin/uname.

If people do still find problems, I'll reinstate an internal bash
version of the test.

Closing for now.

Note You need to log in before you can comment on or make changes to this bug.