Skip to content

Commit

Permalink
* modified script build/GNU/Linux/39_copy_binaries_libraries.sh:
Browse files Browse the repository at this point in the history
  commenting out ldconfig line
* added new script rescue/GNU/Linux/55_copy_ldconfig.sh:
  copy the /etc/ld.so.conf* stuff to ROOTFS
* added new script skel/default/etc/scripts/system-setup.d/01-run-ldconfig.sh:
  run ldconfig -X before dhclient gets started at boot time
Fix for issue #772
  • Loading branch information
gdha committed Feb 15, 2016
1 parent 47d4f06 commit d62a555
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/share/rear/build/GNU/Linux/39_copy_binaries_libraries.sh
Expand Up @@ -71,5 +71,5 @@ for lib in "${all_libs[@]}" ; do
fi
done

ldconfig $v -r "$ROOTFS_DIR" >&8
StopIfError "Could not configure libraries with ldconfig"
#ldconfig $v -r "$ROOTFS_DIR" >&8
#StopIfError "Could not configure libraries with ldconfig"
3 changes: 3 additions & 0 deletions usr/share/rear/rescue/GNU/Linux/55_copy_ldconfig.sh
@@ -0,0 +1,3 @@
#
REQUIRED_PROGS=( ${REQUIRED_PROGS[@]} ldconfig )
COPY_AS_IS=( ${COPY_AS_IS[@]} /etc/ld.so.conf /etc/ld.so.conf.d/* )
@@ -0,0 +1,5 @@
#!/bin/bash
# force ldconfig here for backward compatibility reasons (e.g. no systemd present)
if [[ -f /etc/ld.so.conf ]]; then
/bin/ldconfig -X
fi

1 comment on commit d62a555

@jsmeix
Copy link
Member

@jsmeix jsmeix commented on d62a555 Sep 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this change the recovery system could fail to boot,
see #1494

Please sign in to comment.