Re:OpenWrt 24.10.0 – First Stable Release
by FeistySkink on Thursday February 06, 2025 @06:35PM
(#42967596)
If you have an overlay, you can do something like this to list user-installed packages only:
ls /overlay/upper/usr/lib/opkg/info/*.list | sed -e 's/.*\///' | sed -e 's/\.list//'
Re:OpenWrt 24.10.0 – First Stable Release
by hagbard_c on Friday February 07, 2025 @02:59PM
(#42976794)
There is no overlay on ext4-based virtual routers.
# mount|grep ext4
/dev/mapper/pve-vm--501--disk--0 on / type ext4 (rw,relatime,stripe=512)
The /overlay directory exists just like the /rom one does but they're empty: # ls -l /|grep -E 'overlay|rom'
drwxr-xr-x 2 root root 1024 Jan 27 23:53 overlay
drwxr-xr-x 2 root root 1024 Jan 27 23:53 rom
These are empty directories (there is a note file in /rom with some info for those using squashfs which is not applicable to these installations).
Do keep in mind that the OpenWRT backup does not contain information about which extra packages were installed after firstboot. I solved this adding a cron job which runs opkg list-installed > /etc/opkg_installed.txt and adding that last filepath to /etc/sysupgrade.conf so it gets added to backups.