top | item 42959728

(no title)

wryun | 1 year ago

On most openwrt devices you can compare /rom/etc/config to /etc/config (though this will get you a bunch of automatic changes as well).

discuss

order

choobacker|1 year ago

Tracking config via VCS is great, but the automatic changes is what then makes it tricky to understand what you've actually configured.

RGamma|1 year ago

GP missed this basic fact and then moved to NixOS for a router target? What!?

darkwater|1 year ago

I use NixOS, btw

teekert|1 year ago

He was missing a config to compare to previous versions so it makes sense from that perspective.

hagbard_c|1 year ago

On virtual routers there is no content in /rom. What you can easily do is install another copy of the same image on another VM or container and run it through firstboot. Make a backup and compare it with a backup from your running system. Even better is to make a backup just after firstboot, then use the system and compare your current backup with the first one.

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.

FeistySkink|1 year ago

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//'