[LEDE-DEV] Suggested resolution to problem: OpenWRT box gets overfilled with a package, no space left on device
Ludwig Jaffe
ludwig.jaffe at gmail.com
Sun Apr 22 22:33:08 PDT 2018
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
>
>
More information about the Lede-dev
mailing list