prod_image_util: update /etc/ld.so.conf on every boot

Early images created this as a file instead of a symlink, these systems
will not be able to find the new GCC libraries using the older config.
This commit is contained in:
Michael Marineau 2014-08-26 18:28:07 -07:00
parent 1de8eb3b11
commit 5377e7870d

View File

@ -67,7 +67,7 @@ create_prod_image() {
# Add a tmpfiles rule that symlink ld.so.conf from /usr into / # Add a tmpfiles rule that symlink ld.so.conf from /usr into /
sudo tee "${root_fs_dir}/usr/lib64/tmpfiles.d/baselayout-ldso.conf" \ sudo tee "${root_fs_dir}/usr/lib64/tmpfiles.d/baselayout-ldso.conf" \
> /dev/null <<EOF > /dev/null <<EOF
L /etc/ld.so.conf - - - - ../usr/lib/ld.so.conf L+ /etc/ld.so.conf - - - - ../usr/lib/ld.so.conf
EOF EOF
# clear them out explicitly, so this fails if something else gets dropped # clear them out explicitly, so this fails if something else gets dropped