diff options
author | Harald Hoyer <harald@redhat.com> | 2012-06-30 11:33:19 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-07-02 18:52:49 +0200 |
commit | 998bf6e0888d93443278c2ff5335fc594d318e4b (patch) | |
tree | e958d29cd643a1423e35e5e020dcef55e2b0253e /dracut.sh | |
parent | 34e43ceb0df05081b737f932b0bc2f0426fb5276 (diff) | |
download | dracut-998bf6e0888d93443278c2ff5335fc594d318e4b.tar.gz dracut-998bf6e0888d93443278c2ff5335fc594d318e4b.tar.bz2 dracut-998bf6e0888d93443278c2ff5335fc594d318e4b.zip |
dracut.sh: do not lazy resolve "include" directories
Diffstat (limited to 'dracut.sh')
-rwxr-xr-x | dracut.sh | 40 |
1 files changed, 21 insertions, 19 deletions
@@ -783,6 +783,27 @@ if [[ $no_kernel != yes ]]; then dinfo "*** Installing kernel module dependencies and firmware done ***" fi +if [[ $kernel_only != yes ]]; then + (( ${#install_items[@]} > 0 )) && dracut_install ${install_items[@]} + + while pop fstab_lines line; do + echo "$line 0 0" >> "${initdir}/etc/fstab" + done + + for f in $add_fstab; do + cat $f >> "${initdir}/etc/fstab" + done + + if [[ $DRACUT_RESOLVE_LAZY ]] && [[ $DRACUT_INSTALL ]]; then + dinfo "*** Resolving executable dependencies ***" + find "$initdir" -type f \ + '(' -perm -0100 -or -perm -0010 -or -perm -0001 ')' \ + -not -path '*.ko' -print0 \ + | xargs -r -0 $DRACUT_INSTALL ${initdir+-D "$initdir"} -R ${DRACUT_FIPS_MODE+-H} + dinfo "*** Resolving executable dependencies done***" + fi +fi + while pop include_src src && pop include_target tgt; do if [[ $src && $tgt ]]; then if [[ -f $src ]]; then @@ -810,25 +831,6 @@ while pop include_src src && pop include_target tgt; do done if [[ $kernel_only != yes ]]; then - (( ${#install_items[@]} > 0 )) && dracut_install ${install_items[@]} - - while pop fstab_lines line; do - echo "$line 0 0" >> "${initdir}/etc/fstab" - done - - for f in $add_fstab; do - cat $f >> "${initdir}/etc/fstab" - done - - if [[ $DRACUT_RESOLVE_LAZY ]] && [[ $DRACUT_INSTALL ]]; then - dinfo "*** Resolving executable dependencies ***" - find "$initdir" -type f \ - '(' -perm -0100 -or -perm -0010 -or -perm -0001 ')' \ - -not -path '*.ko' -print0 \ - | xargs -0 $DRACUT_INSTALL ${initdir+-D "$initdir"} -R ${DRACUT_FIPS_MODE+-H} - dinfo "*** Resolving executable dependencies done***" - fi - # make sure that library links are correct and up to date for f in /etc/ld.so.conf /etc/ld.so.conf.d/*; do [[ -f $f ]] && inst_simple "$f" |