diff --git a/usr/lib/archboot/iso.sh b/usr/lib/archboot/iso.sh index 9af91952a..e11cac9b3 100644 --- a/usr/lib/archboot/iso.sh +++ b/usr/lib/archboot/iso.sh @@ -2,20 +2,17 @@ # SPDX-License-Identifier: GPL-3.0-or-later # created by Tobias Powalowski . /etc/archboot/defaults -_ISODIR="$(mktemp -d ISODIR.XXX)" _BOOTLOADER="/usr/share/archboot/bootloader" _usage () { echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Create ${_ARCH} ISO Image\e[m" - echo -e "\e[1m--------------------------------------\e[m" - echo "This will create an Archboot ISO image." + echo -e "\e[1m----------------------------------------\e[m" + echo "Create an Archboot ISO image: .iso" echo echo "Options:" - echo -e " \e[1m-g\e[m Start generation of an ISO image." - echo -e " \e[1m-c=CONFIG\e[m Which CONFIG should be used." - echo " ${_CONFIG_DIR} includes the config files" - echo " default=${_ARCH}.conf" - echo -e " \e[1m-i=ISO\e[m Your custom ISO name." + echo -e " \e[1m-g\e[m Start generation of an ISO image" + echo -e " \e[1m-c=CONFIG\e[m CONFIG from ${_CONFIG_DIR}: default=${_ARCH}.conf" + echo -e " \e[1m-i=ISO\e[m Customize ISO name" echo -e " \e[1m-s\e[m Save initramfs files in current work directory" echo echo -e "Usage: \e[1m${_BASENAME} \e[m" diff --git a/usr/lib/archboot/run/iso.sh b/usr/lib/archboot/run/iso.sh index bc88af4ce..accfa4f76 100755 --- a/usr/lib/archboot/run/iso.sh +++ b/usr/lib/archboot/run/iso.sh @@ -9,6 +9,7 @@ _parameters "$@" _root_check _architecture_check _config +_ISODIR="$(mktemp -d ISODIR.XXX)" if echo "${_BASENAME}" | rg -qw 'aarch64' || echo "${_BASENAME}" | rg -qw 'x86_64'; then # running system = aarch64 or x86_64 echo "Starting ISO creation..." diff --git a/usr/lib/archboot/run/uki.sh b/usr/lib/archboot/run/uki.sh index f574f74f8..f0f0432f4 100755 --- a/usr/lib/archboot/run/uki.sh +++ b/usr/lib/archboot/run/uki.sh @@ -9,6 +9,7 @@ _parameters "$@" _root_check _architecture_check _config +_UKIDIR="$(mktemp -d UKIDIR.XXX)" echo "Starting UKI creation..." _prepare_initramfs || exit 1 _systemd_ukify || exit 1 diff --git a/usr/lib/archboot/uki.sh b/usr/lib/archboot/uki.sh index d6806814f..16250a5d6 100644 --- a/usr/lib/archboot/uki.sh +++ b/usr/lib/archboot/uki.sh @@ -2,20 +2,17 @@ # SPDX-License-Identifier: GPL-3.0-or-later # created by Tobias Powalowski . /etc/archboot/defaults -_UKIDIR="$(mktemp -d UKIDIR.XXX)" _usage () { echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Create ${_ARCH} UKI Image\e[m" - echo -e "\e[1m--------------------------------------\e[m" - echo "This will create an Archboot UKI image." + echo -e "\e[1m----------------------------------------\e[m" + echo "Create an Archboot UKI image: .efi" echo echo "Options:" echo -e " \e[1m-g\e[m Start generation of an UKI image." - echo -e " \e[1m-c=CONFIG\e[m Which CONFIG should be used." - echo " ${_CONFIG_DIR} includes the config files" - echo " default=${_ARCH}.conf" - echo -e " \e[1m-cli='options'\e[m Your custom kernel commandline options." - echo -e " \e[1m-i=UKI\e[m Your custom UKI image name." + echo -e " \e[1m-c=CONFIG\e[m CONFIG from ${_CONFIG_DIR}: default=${_ARCH}.conf" + echo -e " \e[1m-cli='options'\e[m Customize kernel commandline options" + echo -e " \e[1m-i=UKI\e[m Customize UKI image name" echo echo -e "Usage: \e[1m${_BASENAME} \e[m" exit 0