Re: [LEDE-DEV] Suggested resolution to problem: OpenWRT box gets overfilled with a package, no space left on device

2018-04-22 Thread Ludwig Jaffe
I forgot:

first say

rm -rf /tmp/staging


and at the end clean up to be sure:

rm -rf /tmp/staging



On 04/23/2018 01:30 AM, Ludwig Jaffe wrote:
> Problem: OpenWRT box gets overfilled with a package, no space left on device
> and no good clean up.
>
> Suggestion:
> opkg installes to /tmp/staging which is ramdisk
> then it says du -c /tmp/staging
> and df /overlay
> then compare if the last line of df has a bigger number
> then du -c /tmp/staging.
> If yes, then mv /tmp/staging/* /
> in no, write "staging failed, package to big. Free $df - $du-c bytes and
> try again"
>
> Do you like the algorithm above?
> Should it be implemented as a wrapper script?
>
>
> Cheers,
>
> Ludwig
>
>



___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] Suggested resolution to problem: OpenWRT box gets overfilled with a package, no space left on device

2018-04-22 Thread Ludwig Jaffe
Problem: OpenWRT box gets overfilled with a package, no space left on device
and no good clean up.

Suggestion:
opkg installes to /tmp/staging which is ramdisk
then it says du -c /tmp/staging
and df /overlay
then compare if the last line of df has a bigger number
then du -c /tmp/staging.
If yes, then mv /tmp/staging/* /
in no, write "staging failed, package to big. Free $df - $du-c bytes and
try again"

Do you like the algorithm above?
Should it be implemented as a wrapper script?


Cheers,

Ludwig




0xF8804DAF.asc
Description: application/pgp-keys
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev