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:
Brandon Philips 2014-03-13 12:04:10 -07:00
parent 96172f7f20
commit 9ce005cf88

View File

@ -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