SlimeyX has joined #openwrt-devel
DonkeyHotei has quit [Ping timeout: 480 seconds]
DonkeyHotei has joined #openwrt-devel
jeff___m has joined #openwrt-devel
cmonroe has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
gch981213 has joined #openwrt-devel
<owrt-images-builds> Build [#60](https://buildbot.openwrt.org/images/#/builders/58/builds/60) of `master_ipq40xx/generic` failed.
Ansuel has quit [Remote host closed the connection]
Ansuel has joined #openwrt-devel
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
tSYS has quit [Quit: *squeak*]
tSYS has joined #openwrt-devel
Mangix has quit [Read error: Connection reset by peer]
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
minimal has quit [Quit: Leaving]
jeff___m has quit [Ping timeout: 480 seconds]
philipp64 has joined #openwrt-devel
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openwrt-devel
goliath has joined #openwrt-devel
goliath has quit []
mpmc has quit [Quit: ZNC - https://znc.in]
mpmc has joined #openwrt-devel
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
goliath has joined #openwrt-devel
rotanid has quit [Remote host closed the connection]
rua has quit [Quit: Leaving.]
robimarko has joined #openwrt-devel
<owrt-images-builds> Build [#58](https://buildbot.openwrt.org/images/#/builders/185/builds/58) of `master_ipq806x/generic` completed successfully.
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
rotanid has joined #openwrt-devel
jeff___m has joined #openwrt-devel
Borromini has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
<rmilecki> do we have any idea (and would we like such solution) for keeping disabled services disabled after sysupgrade?
<rmilecki> let's say: /etc/init.d/minidlna disable; sysupgrade /tmp/foo
<rmilecki> i'd expect minidlna to stay disabled after sysupgrade
robimarko has quit [Remote host closed the connection]
robimarko has joined #openwrt-devel
<Ansuel> rmilecki main problem of that is some may disable core service and brick the system on sysupgrade
<Ansuel> saving them should not be hard tho... either a list of the services status or just bring the directory with the link in the restore package
<rmilecki> Ansuel: if someone disables core service and reboots it's the same problem
<KanjiMonster> sounds unlikely to have a working systems with disabled core systems that fails on sysupgrade if the same services are still disabled
<Ansuel> well yes... implementing that might not be hard, should be enough to add some script in preinit after things are mounted and some logic to create a status file of the service when sysupgrade is called
<rmilecki> i'll take a look at that
<jow> I wouldn't backup the symlink tree
<jow> might interfere when init script priorities etc. are changed
<Ansuel> yep that is why i was thinking of saving the single service name instead of saving the links and putting them in the tar
<Ansuel> a preinit script would then read the file (if found) and disable the related service on a just restored system
Borromini has quit [Ping timeout: 480 seconds]
<owrt-images-builds> Build [#59](https://buildbot.openwrt.org/images/#/builders/93/builds/59) of `master_ramips/mt7620` completed successfully.
<KanjiMonster> my first idea would be to iterate over the services on sysupgrade backup creation and store the is-enabled results, then reapply them on config restore
<Ansuel> it's easier to handle the opposite case with the is-disabled
<Ansuel> but yes that is my idea too
<KanjiMonster> Ansuel: there is a "/etc/init.d/<service> enabled", that's what I meant
<Ansuel> oh ok yes that would be the way to use (that under the hood just checks the link)
<KanjiMonster> is-enabled is the systemd systemctl equivalent, obviously that won't work here ;)
<KanjiMonster> this will obviously fail for services that were installed later and aren't in the base image, but those usually support an enabled uci option so it's fine
<dhewg> I'd use such a feature. I have multiple devices of the same hw, where I build just one image, but require some services only on one
Borromini has joined #openwrt-devel
Borromini has quit [Quit: Lost terminal]
rua has joined #openwrt-devel
bluew has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
<jow> in order to avoid introducing a new mechanism (and having to come up with a sensible file location for it), the simplest solution is probably creating a uci-defaults file on-the fly which contains various /etc/init.d/x enable lines.
<jow> or disable ones
<jow> if you introduce a new config file path within backup archives holding this information it becomes a public api and people might make assumptions about its format
<jow> if it's in a persistent location, it clutters the rootfs
<jow> if it's in an ephemeral location (such as /tmp or /var), it is somewhat "sneaky" and overlapping with uci-defaults functionality
<jow> plus it might clobber the tmpfs mount point permissions on extraction if not handled with extra care
<jow> in general, introducing a non-uci config file for defining service enablement state would not be ideal
jeff___m has quit [Ping timeout: 480 seconds]
<jow> upside of the uci-defaults approach would also be the backwards compatibility to slightly older systems
<jow> it would properly restore on systems not having any kind of new specialized "re-disable services on backup restore" logic
Borromini has joined #openwrt-devel
romany has joined #openwrt-devel
jeff___m has joined #openwrt-devel
<rmilecki> /sbin/sysupgrade is crying for some refactoring & cleanup
jeff___m has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
dangole has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
<Piraty> rmilecki: looks not too confusing on first glance
<Piraty> start with shfmt / shellcheck , then go to logic level
<rmilecki> i see that /sbin/sysupgrade mounts tmpfs dir to /etc/backup/ so that /etc/backup/installed_packages.txt gets created in tmpfs only
<rmilecki> i'm wondering how to handle creating /etc/uci-defaults/10-disable-services (or whatever name we pick)
<linusw> I'd like to iterate a new BMIPS target on top of it, as it's a first kmod DSA switch I thought maybe people wanna take a look.
<rmilecki> 1. I don't want to create /etc/uci-defaults/10-disable-services on real fs
<rmilecki> 2. It would be rather terrible idea to mount tmpfs dir to /etc/uci-defaults/
enyc has quit [Ping timeout: 480 seconds]
<rmilecki> jow: do you have any solution in mind by chance?
jeff___m has joined #openwrt-devel
minimal has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
goliath has quit [Quit: SIGSEGV]
<owrt-images-builds> Build [#60](https://buildbot.openwrt.org/images/#/builders/45/builds/60) of `master_sunxi/cortexa7` failed.
<owrt-images-builds> Build [#59](https://buildbot.openwrt.org/images/#/builders/155/builds/59) of `master_sunxi/cortexa8` failed.
<jow> rmilecki: not right now
mentalow has quit [Ping timeout: 480 seconds]
goliath has joined #openwrt-devel
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
Borromini has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
<Ansuel> i see many target switching to 6.1
<Ansuel> still feel a bit hesitant if it's worth to redo all of the conversion for 6.6
<Slimey> :P
jeff___m has quit [Ping timeout: 480 seconds]
jeff___m has joined #openwrt-devel
<robimarko> I would say they are finally moving to 6.1
<dhewg> memory is still fresh on what's required to do, if 6.6 than rather soon ;)
Borromini has joined #openwrt-devel
Borromini has quit [Ping timeout: 480 seconds]
robimarko has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Borromini has joined #openwrt-devel
Misanthropos has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
dangole has quit [Remote host closed the connection]
dangole has joined #openwrt-devel
jeff___m has quit [Remote host closed the connection]
jeff___m has joined #openwrt-devel
jeff___m has quit [Remote host closed the connection]
jeff___m has joined #openwrt-devel
dermoth has quit [Ping timeout: 480 seconds]
jeff___m has quit [Remote host closed the connection]
mentalow has joined #openwrt-devel
Borromini has quit [Quit: Lost terminal]
jeff___m has joined #openwrt-devel
dangole has quit [Remote host closed the connection]
dangole has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
jeff___m has quit [Remote host closed the connection]
jeff___m has joined #openwrt-devel
jeff___m has quit [Remote host closed the connection]
jeff___m has joined #openwrt-devel
Mangix has joined #openwrt-devel