From 5f7a9014ee2422c4d077e7b45e353fba6e1a91f0 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 7 Sep 2024 12:52:52 +0200 Subject: [PATCH] remove cd's --- usr/lib/archboot/uki.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr/lib/archboot/uki.sh b/usr/lib/archboot/uki.sh index 2f149468b..eae70fa10 100644 --- a/usr/lib/archboot/uki.sh +++ b/usr/lib/archboot/uki.sh @@ -59,14 +59,12 @@ _prepare_initramfs() { _systemd_ukify() { echo "Generating ${_ARCH} UKI image..." - cd "${_UKIDIR}" &>"${_NO_LOG}" || exit 1 [[ -n "/${_INTEL_UCODE}" ]] && _INTEL_UCODE="--initrd=/${_INTEL_UCODE}" _AMD_UCODE="--initrd=/${_AMD_UCODE}" #shellcheck disable=SC2086 /usr/lib/systemd/ukify build --linux="${_KERNEL}" \ ${_INTEL_UCODE} ${_AMD_UCODE} --initrd="${_INITRD}" --cmdline="${_CMDLINE}" \ - --os-release=@"${_OSREL}" --splash="${_SPLASH}" --output="../${_UKI}" &>"${_NO_LOG}" || exit 1 - cd ../ &>"${_NO_LOG}" || exit 1 + --os-release=@"${_OSREL}" --splash="${_SPLASH}" --output="${_UKI}" &>"${_NO_LOG}" || exit 1 } _create_cksum() {