Bug 769970 - initramfs lacks pushd and popd
Summary: initramfs lacks pushd and popd
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-22 20:53 UTC by John Reiser
Modified: 2012-01-23 10:28 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-23 10:28:23 UTC
Type: ---


Attachments (Terms of Use)
Fix apply-live-updates.sh (931 bytes, patch)
2012-01-04 17:26 UTC, Brian Lane
no flags Details | Diff

Description John Reiser 2011-12-22 20:53:42 UTC
Description of problem: Upon booting a DVD for install of rawhide for Fedora 17, then some dracut-related shell complains that pushd and popd are not found.  Either lorax did not pick a good enough shell (pushd and popd are shell builtins), or dracut (or some dracut unit) is assuming incorrectly that pushd and popd are in the shell selected by lorax.


Version-Release number of selected component (if applicable):
lorax-17.1-1.fc17.x86_64
dracut-014-9.git20111215.fc17.noarch.rpm
systemd-37-4.fc17.x86_64.rpm

How reproducible: every time


Steps to Reproduce:
1. build, burn, and boot DVD for install of rawhide for Fedora 17.
2.
3.
  
Actual results: During boot, shell complains that pushd and popd are not found.  I see the message on VGA console only, not in dmesg, not in syslog.  Perhaps other problems (selinux is preventing lots of shlibs from working) have prevented logging?


Expected results: no complaints.


Additional info:

Comment 1 John Reiser 2011-12-22 23:18:36 UTC
The early shell is /bin/dash which lacks pushd and popd.  The [only?] user is:
    /lib/dracut/hooks/pre-pivot/20apply-live-updates.sh
and it is trivial to rewrite that to avoid pushd+popd.

Comment 2 Brian Lane 2012-01-04 17:26:30 UTC
Created attachment 550732 [details]
Fix apply-live-updates.sh

Comment 3 Harald Hoyer 2012-01-05 10:02:27 UTC
good find! thanks!


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