Hello. This is my first post here. And even partly a rant as I am pretty annoyed at an update procedure that I do not fully understand how it works and that does not seem to be documented. Or at least I didn´t find any documentation.
Call me old-fashioned, but as with all my Debian servers I want to be the one who decides when I upgrade my system. I also want to remove packages at will and have the updater only upgrade packages I have installed. I do not want the upgrade to insist of having a specific set of packages installed and always re-installing for example czech translations for luci modules and so on. I do not want to be bothered to tell the updater that it should not install a package I just removed with opkg before – actually I removed it and yes I am pretty damn sure about it. In short I want: apt update ; apt upgrade or well opkg update ; opkg upgrade – which by the way does not ask anything – or something similar to that. I also do not want to be bothered with any terms of service and things like that.
So far I did this:
- opkg update
- schnapps create -p pre “before upgrade”
- opkg upgrade
- And if I remembered schnapps create -p post “after upgrade”
and it worked just nice, I was just wondering about whether I will get any notifications in foris web gui about what is new or what else this way.
Now I get this:
root@[…]~# opkg upgrade
The opkg upgrade is *DANGEROUS* on TurrisOS releases.
It *WILL* break your system.
Do you really want to continue? Write upper-case yes if do.
^C
Okay, now you scared me.
So I tried pkgupdate
This ran. But it hung on restarting lighttpd which I had to restart manually for the web interface to appear before. After some time I hit Ctrl-C cause I had the impression nothing is happening on my system anymore. Now I get this:
[…]
INFO:Queue install of fswebcam/turris/20140113-1
INFO:Queue install of motion/turris/3.4.0-20141018-9479d910f2149b5558788bb86f97f26522794212-3
INFO:Queue install of ffmpeg/turris/2.7.6-1
INFO:Queue removal of ddns-scripts_nsupdate
INFO:Queue removal of luci-i18n-ntpc-en
INFO:Queue removal of lxc-autostart
INFO:Queue removal of ddns-scripts_cloudflare
INFO:Queue removal of ddns-scripts_no-ip_com
INFO:Queue removal of kmod-crypto-rng-jitterentropy
Press return to continue, CTRL+C to abort
INFO:Executing preupdate hooks...
INFO:Subprogram output: /etc/updater/hook_preupdate/05_schnapps.sh:
Snapshot number 14 created
INFO:End of subprogram output
line not found
line not found
line not found
line not found
DIE:
[string "transaction"]:344: Unfinished journal exists
Aborted
So pkgupdate has some unfinished transaction, yet… and a bug it seems as “line not found” indicates – also the error message is not partically helpful, as it doesn´t tell the file in which the error occured on line 344. Also neither “updater-unstuck.sh” nor does pkgupdater seem to offer an option to deal with that situation. updater.sh also does not work, as I didn´t agree to the terms of service.
Seriously: Is there any sane way to update Omnia Turris manually at exactly the time I want it to and actually looking at what the updater will do before I confirm the changes it is about to make? Preferably with a apticron or cron-apt like thing which sends me a mail once package upgrades are available.
Thing is: I want to be root on my router. I would accept not using opkg, but something else like pkgupdate, if you really insist, but really: Can I have a manual way to manually trigger upgrading my router exactly when I wish and by default also have it only upgrade packages I have installed and not insisting on installed a specific set of packages?
Pretty please.
Or do I have to replace Omnia Turris OS with something else in order to regain that freedom? I bought the router in order to have updates and freedom.
Also please why do to reinvent the wheel? Why is opkg not sufficient for you?