mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 01:16:59 +02:00
fix(sys-kernel/coreos-kernel): Fix initramfs in /usr builds.
Properly handle when /lib in bootengine is a symlink to /usr/lib64 in addition to the /lib64. mv needs /usr to exist first :)
This commit is contained in:
parent
0fba2d0a96
commit
625f25e70f
@ -184,7 +184,9 @@ cros-kernel2_src_compile() {
|
||||
|
||||
local bootengine_lib=$(get_bootengine_lib)
|
||||
if [[ -n "${bootengine_lib}" ]]; then
|
||||
mv "${bootengine_root}/lib" "${bootengine_root}/${bootengine_lib}"
|
||||
mkdir -p "${bootengine_root}/${bootengine_lib%/*}" || die
|
||||
mv "${bootengine_root}/lib" \
|
||||
"${bootengine_root}/${bootengine_lib}" || die
|
||||
fi
|
||||
update_bootengine_cpio "${bootengine_root}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user