[RESOLVED] `opkg update` resets when rebooting?
Hi, I might be derping hard here. I have to run
opkg updateevery time I reboot the Onion Omega. If not,
opkg listwill only show a small amount of packages. So I run
opkg listand everything is fine. Lots of packages. I
opkg listand it's the same as before I did
opkg update. It shows only a few packages.
Basically, everytime I reboot the Onion Omega I have to run
opkg update. Is this intentionally?
How do you switch of your Omega? Are you doing always a
haltbefore switching it off?
If not, try this once before switch it off and tell us if you still have to redo the steps.
Makes no difference. Same behaviour as without
halt. I have to
opkg updateto get the full list.
Hi, I'm using the Onion Omega with USB as hdd.
What do you use?:
pivot-overlaymoves writable part of filesystem only to a USB-storage.
pivot-rootcopies the whole root filesystem to the USB-storage
I'm sure there is missing something in the tutorial, to cover this kind of changes we do on the Omega. So if you boot again you not have present what you made before.
You understand what i mean? The Omega copies read only data to a read/write filesystem on the USB but not write it back to the read only data.
If you boot again it takes the old read only data where not has the info from
That's why I got almost crazy and removed to use USB as Memory.
Everything else seem to be persistent. So I'm not sure what's up with
opkg update. Maybe it puts the files somewhere it doesn't get saved. Hmhm.. it's quite obvious that's what might be happening here..
I do have a hidden file i used with the Omega (.fs_state). I guess there it should be stored a info like this ?!
But never mind .. this is a case for the @administrators
When I execute
opkg updatethe files are downloaded and put in /var/opkg-lists/. Now, /var points to /tmp/ .. and I'm pretty sure /tmp/ doesn't get saved when you reboot.
I find it strange we have a symbolic link
var -> /tmp
Edit: Thinking of it, this might be intentionally. Saves space on the storageunit.
Igor Moura last edited by
That's actually a feature from OpenWRT (not strictly to the Omega itself) to save space on embedded devices, since most of them won't have the luxury to spend precious space with a list of packages that's not-so-often used
Hehe yes, makes sense. Thank you! I'll just set this as [resolved].
Lazar Demin administrators last edited by
Just wanted to officially confirm @Igor-Moura is correct: opkg stores it's data in the
/tmpdirectory that gets cleared after every boot.
The benefits are that it saves space and it increases the likelihood that you have the most recent set of package listings. The downside is that you have to run
opkg updateafter every boot lol.