Box86: first check for working systemd-binfmt

pull/899/head
Botspot 3 years ago
parent aa0007151a
commit de0e2b42dc

@ -7,6 +7,17 @@ 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..."

Loading…
Cancel
Save