Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: bmarkus on November 03, 2012, 08:09:53 PM

Title: tce-update bug
Post by: bmarkus on November 03, 2012, 08:09:53 PM
I have three extensions to update, Xprogs, flwm_topside and htop. Their total size is 216k, however tce-update reports there is no enough free disk space for easy mode. In fact, free space is 44M in the disk where /tce is located and 183M free RAM.

Same in 4.6.3 and 4.7

When system is up to date, tce-update still prints a full screen claiming disk space, advicing boot with base norestore text and so on and at the end says my system is up to date :)

In X, 'Your system is up to date' message is missing, only 'Scan for updates completed' printed (4.7)
Title: Re: tce-update bug
Post by: roberts on November 04, 2012, 12:25:36 AM
Appears to be a busybox bug that also affects x86 Core.

The default for df is stated to be in k. See df --help

Yet using df /dev/sda1 the result is in human readable form, as if the -h flag was used.

Now using the same command as:
sudo df /dev/sda1 the result is in the default k
Title: Re: tce-update bug
Post by: tinypoodle on November 04, 2012, 01:19:43 AM
Appears to be a busybox bug that also affects x86 Core.

The default for df is stated to be in k. See df --help

Yet using df /dev/sda1 the result is in human readable form, as if the -h flag was used.

I suspect that might be a shell alias rather than a busybox bug.

Code: [Select]
'df'would tell

Note: Quotes are literally meant to be included in this very case (=unalias)!
Title: Re: tce-update bug
Post by: curaga on November 04, 2012, 05:39:50 AM
Yes, it's due to the default alias being "df -h".
Title: Re: tce-update bug
Post by: roberts on November 04, 2012, 08:11:50 AM
My bad. However the alias does not even come into play with the script's calculation.
Using tce-update on my pi, I forced an update to be required my editing md5s. It worked as expected. Calculation is fine.
But if you always see the "base norestore" message then that would suggest that there is no tce directive on the command line.
Use showbootcodes to check.
Title: Re: tce-update bug
Post by: bmarkus on November 04, 2012, 08:52:17 AM
There are no tce directeve used. tce dir is in the root of /dev/sda1, found and used correctly by the system. How tce direcive is influencing operation of tce-update?
Title: Re: tce-update bug
Post by: roberts on November 04, 2012, 09:27:28 AM
It is faster to use a boot code of tce= than to have the system search for one. I always use such a directive.
tce-update is not new nor has any changes been recently made. Using the tce boot code should suffice.
I will consider an update to support the slower method of system scanning all drive to find tce directory.