[OpenWrt-Devel] opkg upgrade all
Daniel Dickinson
openwrt at daniel.thecshore.com
Wed Mar 30 03:18:51 EDT 2016
On 16-03-30 02:48 AM, Michal Hrusecky wrote:
>
> Yep, I understand all those. My question was whether upgrade all is disabled
> just because of this ideological stuff and in hope that users wouldn't find and
> try one of the posts I linked or whether there is anything really broken.
It's *not* ideological, it's about preventing broken routers. On most
routers OpenWrt support, if you do upgrade all you *will* break your
router because you will end up with a fatal out of space issue that
results the requirement to reset to factory defaults.
This is because squashfs is *far* more compressed than jffs2 AND because
with the limited flash on the vast majority of devices it is not at all
possible upgrade all packages into the overlay jffs2 without causing the
jffs2 to end up with 0 erase blocks free, which results in a situation
where you can't even erase files to get back to a working state (try it
if you don't believe me - dd if=/dev/zero of=/fill.bin and then try to
get back to a working state).
Regards,
Daniel
>
>> Em qua, 30 de mar de 2016 02:30, Michal Hrusecky <Michal.Hrusecky at nic.cz>
>> escreveu:
>>
>>> Luiz Angelo Daros de Luca - 1:41 30.03.16 wrote:
>>>> Michal,
>>>>
>>>> Google is your friend ;-)
>>>
>>> He pretends he is, but didn't provided the answer I was looking for, just
>>> plenty of workarounds I mentioned ;-)
>>>
>>>> But I'll easy your search
>>>> https://wiki.openwrt.org/doc/techref/opkg
>>>>
>>>> Check the upgrade description.
>>>
>>> Reread and the only thing that is mentioned there is general discourage to
>>> do
>>> upgrades and be careful what you are doing and that there are generally no
>>> updates available apart from trunk and that opkg will not upgrade kernel.
>>> No
>>> technical problem and no specific issue with upgrade all.
>>>
>>>> Regards
>>>>
>>>> Em ter, 29 de mar de 2016 às 04:45, Michal Hrusecky <
>>> Michal.Hrusecky at nic.cz>
>>>> escreveu:
>>>>
>>>>> Hi,
>>>>>
>>>>> there is a patch in OpenWRT that disables option to upgrade all
>>> packages
>>>>> and
>>>>> allows upgrading only specified packages which leads to plenty of
>>> answers
>>>>> online how to do that[1][2][3][...] Does anybody remembers the reason
>>> for
>>>>> disabling it? The only thing I can think of is discouraging people from
>>>>> doing
>>>>> upgrades and encourage them to reflash new squashfs image as they
>>> might not
>>>>> have enough free space. But as you can see, people will try and do it
>>>>> anyway so
>>>>> it might be a good idea to let the command there as it will be probably
>>>>> safer
>>>>> with integrated command than with random scripts on internet. Or is
>>> there
>>>>> some
>>>>> other reason and some real problem?
>>>>>
>>>>> [1] https://sandalov.org/blog/1777/
>>>>> [2]
>>>>>
>>> https://www.codeden.net/2015/05/upgrade-all-openwrt-packages-with-a-single-line-command/
>>>>> [3] http://blog.vanutsteen.nl/2014/01/12/openwrt-upgrade-all-packages/
>>>>> _______________________________________________
>>>>> openwrt-devel mailing list
>>>>> openwrt-devel at lists.openwrt.org
>>>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>>>>
>>>> --
>>>>
>>>> Luiz Angelo Daros de Luca
>>>> luizluca at gmail.com
>>>
>> --
>>
>> Luiz Angelo Daros de Luca
>> luizluca at gmail.com
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
_______________________________________________
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