[OpenWrt-Devel] How to keep disabled services disabled after sysupgrade

Etienne Champetier champetier.etienne at gmail.com
Thu Jun 18 11:51:21 EDT 2015


Hi guys,

Le 18 juin 2015 17:18, "Stefan Tomanek" <
stefan.tomanek+openwrt at wertarbyte.de> a écrit :
>
> Dies schrieb Bastian Bittorf (bittorf at bluebottle.com):
>
> > > Can anyone supply any different ideas or provide some feedback?
> >
> > maybe: disabled services are stored during sysupgrade in
> > e.g. /lib/upgrade/keep.d/services_disabled
> >
> > and this file will be read line by line during firstboot/uci-defaults
> > (and services diabled again) and the file is then deleted.
>
> Yes, I was thinking in that direction as well - however,
/lib/upgrade/keep.d/
> seems to contain file locations that should be kept during an upgrade; is
there
> a safe place where temporary data can be stashed during a sysupgrade? I'd
like
> to save the list of installed packages as well, since remembering what
packages
> were installed is often a kind of PITA.
> At the moment, I am using these commands, but I'd like to see something
like that
> integrated into sysupgrade as well:
>
>   opkg list_installed > /etc/installed_packages
>   sysupgrade -c ......
>
>   opkg update
>   opkg install $(awk '{print $1}' /etc/installed_packages}

While you're at it, please also handle backup (not only sysupgrade)

Thanks in advance
Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150618/c9226400/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list