Bug 527087 - qemu-common postinstall scriptlet uses getent before it's installed
Summary: qemu-common postinstall scriptlet uses getent before it's installed
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Mark McLoughlin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F12VirtBlocker
TreeView+ depends on / blocked
 
Reported: 2009-10-04 09:48 UTC by Bruce Jerrick
Modified: 2009-10-12 07:16 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
: 537044 (view as bug list)
Environment:
Last Closed: 2009-10-12 07:16:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bruce Jerrick 2009-10-04 09:48:52 UTC
Description of problem:
The qemu-common postinstall scriptlet tries to execute 'getent', but that
may not exist yet, due to a missing Requires(post).

Version-Release number of selected component (if applicable):
qemu-common-0.11.0-2.fc12.i686.rpm

How reproducible:
Depends on package set (installation order).

Steps to Reproduce:
1. Install F12, including qemu-common.
2. grep -A3 "^Installing qemu-common" /root/install.log
  
Actual results:
Installing qemu-common-0.11.0-2.fc12.i686
/var/tmp/rpm-tmp.f9IFe3: line 1: getent: command not found
/var/tmp/rpm-tmp.f9IFe3: line 2: getent: command not found
/var/tmp/rpm-tmp.f9IFe3: line 3: getent: command not found

Expected results:
No "command not found" messages.

Additional info:
FIX: Add this to the qemu-common spec file:
    Requires(post): /usr/bin/getent

These should also be added (they're also used by postinstall):
    Requires(post): /usr/sbin/groupadd
    Requires(post): /usr/sbin/useradd

Comment 1 Mark McLoughlin 2009-10-09 10:33:30 UTC
Thanks Bruce, will fix for F-12

Note, https://fedoraproject.org/wiki/Packaging:UsersAndGroups suggests requiring shadow-utils and doing it in %pre

I don't think we need to do it in %pre, since we don't install any files owned by this user/group - the first time one of them should be used is when we load the kvm modules in qemu-system-x86 %post and udev creates the /dev/kvm node

Comment 2 Mark McLoughlin 2009-10-09 14:36:22 UTC
* Fri Oct  9 2009 Mark McLoughlin <markmc> - 2:0.11.0-6
- Fix fs errors with virtio and qcow2 backing file (#524734)
- Fix ksm initscript errors on kernel missing ksm (#527653)
- Add missing Requires(post): getent, useradd, groupadd (#527087)

Comment 3 Mark McLoughlin 2009-10-09 16:01:46 UTC
tag request: https://fedorahosted.org/rel-eng/ticket/2429

Comment 4 Mark McLoughlin 2009-10-12 07:16:54 UTC
tagged now for F12 GA


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