Bug 750603

Summary: dracut --install isn't copying script to the target
Product: [Fedora] Fedora Reporter: Brian Lane <bcl>
Component: dracutAssignee: dracut-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 16CC: dracut-maint, jonathan, robatino
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dracut-013-18.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-02 14:19:19 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 713568    
Attachments:
Description Flags
Trimmed down log of it not installing the script
none
Trimmed down log of it installing the script working
none
Patch to fix --install of scripts none

Description Brian Lane 2011-11-01 14:10:02 EDT
lorax uses dracut --install to include a script to copy kickstarts over to sysroot. This seems to have been broken in 013-16, if I copy over dracut & dracut-functions to my test system from -15 it installs the script when I run:

/sbin/dracut --debug --include /tmp/bcl-hook.sh /lib/dracut/hooks/pre-pivot/ -f /tmp/initramfs-3.1.0-5.fc16.x86_64.img 3.1.0-5.fc16.x86_64 2> dracut.log

/tmp/bcl-hook.sh is a simple shell script with 0755 set on it.
Comment 1 Brian Lane 2011-11-01 14:16:13 EDT
Created attachment 531170 [details]
Trimmed down log of it not installing the script
Comment 2 Brian Lane 2011-11-01 14:53:09 EDT
Created attachment 531182 [details]
Trimmed down log of it installing the script working

The main difference seems to start at the point where inst_script calls inst_simple -- in the broken case it is calling inst_binary
Comment 3 Brian Lane 2011-11-01 15:16:02 EDT
Created attachment 531185 [details]
Patch to fix --install of scripts
Comment 4 Fedora Update System 2011-11-01 15:57:37 EDT
dracut-013-18.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/dracut-013-18.fc16
Comment 5 Fedora Update System 2011-11-02 14:19:19 EDT
dracut-013-18.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.