From 79e69cf70df3586bd4ef4b15f577b42719380f38 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 9 Dec 2024 12:11:53 -0600 Subject: [PATCH] build{,-rootfs}: Do not force TTY The `-o` argument to `xargs` tells it to reopen a TTY to pass to the spawned process's standard input. If there is no controlling TTY, this will fail. There's no reason to do this anyway, so let's avoid it. --- build-rootfs.sh | 4 ++-- build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-rootfs.sh b/build-rootfs.sh index 98fba3d..711a7ea 100755 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -22,7 +22,7 @@ emerge \ cat \ install.packages \ "${CONFIGDIR}"/install.packages \ - | xargs -ro \ + | xargs -rt \ ${target}-emerge \ --root=/mnt/gentoo \ --config-root="${O}"/portage \ @@ -30,7 +30,7 @@ ${target}-emerge \ --rebuilt-binaries=y if [ -f "${CONFIGDIR}"/installonly.packages ]; then - < "${CONFIGDIR}"/installonly.packages xargs -ro \ + < "${CONFIGDIR}"/installonly.packages xargs -rt \ ${target}-emerge \ --root=/mnt/gentoo \ --config-root="${O}"/portage \ diff --git a/build.sh b/build.sh index 6bba031..7f793b9 100755 --- a/build.sh +++ b/build.sh @@ -16,6 +16,6 @@ cat \ install.packages \ "${CONFIGDIR}"/build.packages \ "${CONFIGDIR}"/install.packages \ - | xargs -rot \ + | xargs -rt \ ${target}-emerge -bkvnuUDj ${target}-emerge -bv @preserved-rebuild