won't boot after apt-get upgrade (RPI 3)

After running some commands to upgrade packages, I can no longer boot Volumio.
I am able to reflash Volumio to the SD card and start over, but this is a major inconvenience and I’m not able to add extra functionality.

Some of the commands I ran were
sudo apt-get update
sudo apt-get upgrade
sudo rpi-update

Booting Volumio for Hardware : BCM2835
   This script mounts rootfs RO with an overlay RW layer.
modprobe: can't change directory to '4.9.39-v7+': No such file or directory
modprobe: can't change directory to '4.9.39-v7+': No such file or directory
modprobe: can't change directory to '4.9.39-v7+': No such file or directory
IMGPART=/dev/mmcblk0p2
IMGFILE=/volumio_current.sqsh
Boot delay (except first time) will be 5 seconds
/dev/mmcblk0p2 not detected,retrying mdev in 5 seconds
/dev/mmcblk0p2: LABEL="volumio" UUID="f5d0a8a4-e2df-4761-8f10-de76e3c357ce" TYPE="ext4" PARTUUID="d9b1e0cd-02"
Doing a 5 second delay here to give kernel load a headstart
Checking for USB updates
mount: mounting /dev/loop0 on /mnt/static failed: No such device
cat: can't open '/mnt/static/etc/os-release': No such file or directory
With Option: WITHWRKDIR
mount: mounting overlay on /mnt/ext/union failed: No such device
mount: mounting /mnt/static on /mnt/ext/union/static failed: Invalid argument

Finish initramfs, continue booting Volumio
switch_root: error moving root: Invalid argument

(BTW, I’m trying to configure LIRC to blast some IR codes to my reciever. Is there a Volumio specific guide for this? I’m trying to follow this: alexba.in/blog/2013/01/06/settin … spberrypi/ )

Doing apt-get upgrade will break your system, which is what happened to you.
If you want lirc, use the lirc plugin

Ditto for rpi-update - at least it killed mine in the same sort of way.
I was adding diag tools to poke around device trees on RPi 3B+ :
IE - dtc and vcdbg

sudo apt-get update
sudo apt-get install dtc

Seemed ok.
But I was getting -

sudo vcdbg log msg
vcdbg: error while loading shared libraries: libdebug_sym.so: cannot open shared object file: No such file or directory

Research suggested I run -

sudo apt-get install libraspberrypi-bin-nonfree
sudo rpi-update && sudo reboot

… end of … Ooops. Maybe I will stick to a vanilla Raspian to mess about on, and keep a Volumio SD cleaner…

Ian
.