From e0e5cee7d309b0d1ecfd93e37d814f25a69d98c7 Mon Sep 17 00:00:00 2001 From: Botspot Date: Sun, 15 Aug 2021 15:32:01 -0500 Subject: [PATCH] pkg-install: check for unconfigured u-boot-rpi --- pkg-install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg-install b/pkg-install index fc12e26..e5e3f61 100755 --- a/pkg-install +++ b/pkg-install @@ -88,14 +88,14 @@ Please run this command: sudo apt --fix-broken install" #check for dpkg --configure -a if echo "$errors" | grep -q "dpkg \-\-configure \-a" ;then - message_to_user "Before APT or Pi-Apps will work, dpkg needs to repair your system. + message_to_user "Before dpkg, apt, or Pi-Apps will work, dpkg needs to repair your system. Please run this command: sudo dpkg --configure -a" fi #check for faulty dphys-swapfile package if echo "$errors" | grep -q "error processing package dphys-swapfile" ;then - message_to_user "Before APT or Pi-Apps will work, dphys-swapfile must be fixed. + message_to_user "Before dpkg, apt, or Pi-Apps will work, dphys-swapfile must be fixed. Try Googling the above errors, or ask the Pi-Apps developers for help." fi @@ -107,6 +107,12 @@ Try Googling the above errors, or ask the Pi-Apps developers for help." Please free up some space, then try again." fi + #check for unconfigured boot-firmware package + if echo "$errors" | grep -q "missing /boot/firmware, did you forget to mount it" || echo "$errors" | grep -q "u-boot-rpi" ;then + message_to_user "Package(s) failed to install because your boot drive is not working. + +You must fix the u-boot-rpi package before dpkg, apt, or Pi-Apps will work." + fi } echo "Running pkg-install..."