From 53a74dd5fd214df6dbb52e5197ab66c65ef120e2 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Thu, 3 Feb 2022 09:38:49 -0700 Subject: [PATCH 1/2] debian/build.sh: Use 'uname -n' instead of 'hostname' Arch Linux does not have easy access to the 'hostname' command anymore so use 'uname -n' so that this command works properly. Signed-off-by: Nathan Chancellor --- debian/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/build.sh b/debian/build.sh index 983bdf7..d412a40 100755 --- a/debian/build.sh +++ b/debian/build.sh @@ -158,7 +158,7 @@ function create_img() { printf "UUID=%s\t/\text4\terrors=remount-ro\t0\t1\n" "$(blkid -o value -s UUID "$(findmnt -n -o SOURCE "${MOUNT_DIR}")")" | tee -a "${MOUNT_DIR}"/etc/fstab # Add hostname entry to /etc/hosts so sudo does not complain - printf "127.0.0.1\t%s\n" "$(hostname)" | tee -a "${MOUNT_DIR}"/etc/hosts + printf "127.0.0.1\t%s\n" "$(uname -n)" | tee -a "${MOUNT_DIR}"/etc/hosts # Install some problematic LTP testcases for debugging if requested if ${LTP}; then From 49af93716d5cd9ed728eac967ba4ff26f7793487 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Thu, 3 Feb 2022 09:41:02 -0700 Subject: [PATCH 2/2] debian/build.sh: Update default version to bullseye Signed-off-by: Nathan Chancellor --- debian/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/build.sh b/debian/build.sh index d412a40..ff725da 100755 --- a/debian/build.sh +++ b/debian/build.sh @@ -111,7 +111,7 @@ function reality_checks() { is_available qemu-img # Default values - [[ -z ${DEB_VERSION} ]] && DEB_VERSION=buster + [[ -z ${DEB_VERSION} ]] && DEB_VERSION=bullseye [[ -z ${DEB_USER} ]] && DEB_USER=user [[ -z ${DEB_PASS} ]] && DEB_PASS=password [[ -z ${LTP} ]] && LTP=false