mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 09:26:58 +02:00
sys-apps/baselayout: force link creation in tmpfile rule
The /lib symlink does not point to /usr/lib but instead points to /usr/lib64 on current releases which have a single /usr/lib64 folder and a symlink from /usr/lib to it. This means that when they update to a release with a split lib vs. lib64 setup, the kernel modules are not found because /lib/modules does not exist (because /lib still points to /usr/lib64 instead of /usr/lib). Force link recreation to match the new layout. The system will still be able to rollback because the link to /usr/lib is still valid because /usr/lib is itself a link that forwards to /usr/lib64.
This commit is contained in:
parent
20cae0b0c3
commit
b3f4b641ce
@ -102,7 +102,7 @@ src_compile() {
|
||||
local tmpfiles="${T}/baselayout-usr.conf"
|
||||
echo -n > ${tmpfiles} || die
|
||||
for sym in "${!USR_SYMS[@]}" ; do
|
||||
echo "L ${sym} - - - - ${USR_SYMS[$sym]}" >> ${tmpfiles}
|
||||
echo "L+ ${sym} - - - - ${USR_SYMS[$sym]}" >> ${tmpfiles}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user