Updated base-files in snapshot - what just happened?

Hey,

I have a snapshot I installed from the uefi+ext4 aio image a few days ago. I noticed opkg list-upgradable mentioned base-files was upgradable, so I ran it and got a bunch of warnings that tmpfs and /dev/root (et. al.) could not be unmounted.

However, when I rebooted, I ran opkg list-upgradable again, expecting to see the same files available for upgrade, but nothing was listed.

Is there a way I can verify if this upgrade actually completed, or is it almost certainly a false report that nothing is upgradable?

Would having an rw mounted ext4 rootfs have anything to do with this behavior after reboot, vs, say, a squashfs overlay?

update: I just noticed the kernel upgraded from 5.15.101 to 5.15.105:

root@OpenWrt:~# uname -a
Linux OpenWrt 5.15.105 #0 SMP Tue Apr 4 00:08:32 2023 x86_64 GNU/Linux

Just thought to check /etc/os-release -- looks like here's my answer:

root@OpenWrt:~# cat /etc/os-release
NAME="OpenWrt"
VERSION="SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt SNAPSHOT"
VERSION_ID="snapshot"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r22506-9a62b3977f"
OPENWRT_BOARD="x86/64"
OPENWRT_ARCH="x86_64"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt SNAPSHOT r22506-9a62b3977f"

Everyone says upgrading kmods is impossible in a snapshot, is there any chance this behavior has been resolved? Should I be checking modprobe, or hashes in /lib/modules just to be absolutely sure?

There's nothing really unexpected about that, in-place upgrades are not (respectively only in a limited way) possible with OpenWrt - and especially upgrading base-files will (very likely) break the system.

4 Likes

https://openwrt.org/meta/infobox/upgrade_packages_warning exists for a reason, but I guess it's hard to find for those who aren't looking for the info.

2 Likes