Bug 769970

Summary: initramfs lacks pushd and popd
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: dracutAssignee: dracut-maint
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bcl, dracut-maint, harald, jonathan, mgracik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-23 10:28:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Fix apply-live-updates.sh none

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!