From 005187a343c26733087c93ee1e716122184f8e33 Mon Sep 17 00:00:00 2001 From: Botspot Date: Mon, 30 Aug 2021 22:43:47 -0500 Subject: [PATCH] Box86: install-32: use new box86-no-binfmt-restart --- apps/Box86/install-32 | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/apps/Box86/install-32 b/apps/Box86/install-32 index b706d6e..a4d3d1a 100755 --- a/apps/Box86/install-32 +++ b/apps/Box86/install-32 @@ -7,24 +7,19 @@ function error { exit 1 } -echo -n "Checking for working systemd-binfmt..." -if ! sudo systemctl restart systemd-binfmt ;then - echo -e "\nError: systemd-binfmt failed to restart. Running debug..." - echo 'systemctl status systemd-binfmt.service' - systemctl status systemd-binfmt.service - echo 'systemctl status systemd-binfmt.service' - journalctl -xe | cat - error "Exiting now because systemd-binfmt failed to restart." -else - echo "Done" -fi - sudo rm -f /etc/apt/sources.list.d/box86.list -echo "adding box86 repo..." +echo "Adding box86 repo..." sudo wget https://itai-nelken.github.io/weekly-box86-debs/debian/box86.list -O /etc/apt/sources.list.d/box86.list || error "Failed to download /etc/apt/sources.list.d/box86.list" -echo "adding key..." +echo "Adding key..." wget -qO- https://itai-nelken.github.io/weekly-box86-debs/debian/KEY.gpg | sudo apt-key add - || error "Failed to add key to box86 repo!" -echo "installing box86..." -"${DIRECTORY}/pkg-install" "box86" "$(dirname "$0")" || exit 1 +echo "Installing box86..." +"${DIRECTORY}/pkg-install" "box86-no-binfmt-restart" "$(dirname "$0")" || exit 1 + +if ! sudo systemctl restart systemd-binfmt ;then + echo -e "\nWarning: systemd-binfmt failed to restart. Getting debug info..." + echo "Running command: 'systemctl status systemd-binfmt.service'" + systemctl status systemd-binfmt.service + echo "Still exiting with success, but you will have to manually run all x86 applications with box86 as binfmt isn't there to do it for you." +fi