mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
sys-kernel/coreos-kernel: strip ROOT from TMPDIR before running dracut
Update-bootengine chroots into the sysroot and runs dracut from there. Dracut 053 has revised TMPDIR handling and the portage TMPDIR prefixed with ROOT leaks into the chroot. This causes dracut to abort during setup with the error message "invalid tmpdir". Override TMPDIR before running update-bootengine to allow dracut to function. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
68f2867457
commit
743f86d4da
@ -46,7 +46,8 @@ pkg_setup() {
|
||||
[[ -n "${KV_OUT_DIR}" ]] || die "Failed to detect modules build tree"
|
||||
|
||||
if [[ "${ROOT:-/}" != / ]]; then
|
||||
${ROOT}/usr/sbin/update-bootengine -m -c ${ROOT} -k "${KV_FULL}" || die
|
||||
# TMPDIR needs to be corrected for chroot
|
||||
TMPDIR=${TMPDIR#${ROOT}} ${ROOT}/usr/sbin/update-bootengine -m -c ${ROOT} -k "${KV_FULL}" || die
|
||||
else
|
||||
update-bootengine -k "${KV_FULL}" || die
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user