mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 23:51:07 +02:00
fix(build_library): make the usr link relative
Fix the problem of: "pecified switch root path %s does not seem to be an OS tree. /etc/os-release is missing" because dracut doesn't have an /usr/share/coreos/os-release file.
This commit is contained in:
parent
96172f7f20
commit
9ce005cf88
@ -115,7 +115,7 @@ EOF
|
||||
if [[ -a "${ROOT_FS_DIR}/etc/os-release" ]] ; then
|
||||
sudo rm "${ROOT_FS_DIR}/etc/os-release"
|
||||
fi
|
||||
sudo ln -s "/usr/share/coreos/os-release" "${ROOT_FS_DIR}/etc/os-release"
|
||||
sudo ln -s "../usr/share/coreos/os-release" "${ROOT_FS_DIR}/etc/os-release"
|
||||
|
||||
# Create the defaults for the coreos configuration files in the usr directory
|
||||
sudo_clobber "${ROOT_FS_DIR}/usr/share/coreos/release" <<EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user