|
2012-01-16
, 22:27
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#222
|
|
2012-01-16
, 23:25
|
Posts: 1,100 |
Thanked: 2,797 times |
Joined on Apr 2011
@ Netherlands
|
#223
|
iDont, could You check this:
http://talk.maemo.org/showthread.php?t=81613&page=4
...? It seems, that some things were changed in dd between stock busybox, and busybox-power. It wasn't tested by me, but people using busybox-power have problems with u-boot, where others are fine.
I'm sure Pali will incorporate some fix for that on u-boot side, but, maybe it's also something important for busybox to consider?
/Estel
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary Usage: dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N]
BusyBox v1.19.3 (Debian 1.19.3power4) multi-call binary. Usage: dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|noerror|sync|fsync] Copy a file with converting and formatting if=FILE Read from FILE instead of stdin of=FILE Write to FILE instead of stdout bs=N Read and write N bytes at a time ibs=N Read N bytes at a time obs=N Write N bytes at a time count=N Copy only N input blocks skip=N Skip N input blocks seek=N Skip N output blocks conv=notrunc Don't truncate output file conv=noerror Continue after read errors conv=sync Pad blocks with zeros conv=fsync Physically write data out before finishing Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024), MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)
|
2012-01-17
, 01:49
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#224
|
|
2012-01-17
, 19:27
|
Posts: 1,523 |
Thanked: 1,997 times |
Joined on Jul 2011
@ not your mom's FOSS basement
|
#226
|
df -h | awk '$1 == "rootfs" {print $4"B"}'
|
2012-01-17
, 21:25
|
Posts: 48 |
Thanked: 32 times |
Joined on Dec 2010
@ Russia, Moscow
|
#227
|
Hmm, it's still probably a valid concern for the Maemo community.
We're running an ancient version of e2fsprogs (1.41.3/2008 Oct 12) which is 12 stable versions behind the latest version (1.42/2011 Nov 29).
e2fsprogs-power tiem?
|
2012-01-17
, 21:36
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#228
|
iDont, could You check this:
http://talk.maemo.org/showthread.php?t=81613&page=4
...? It seems, that some things were changed in dd between stock busybox, and busybox-power. It wasn't tested by me, but people using busybox-power have problems with u-boot, where others are fine.
I'm sure Pali will incorporate some fix for that on u-boot side, but, maybe it's also something important for busybox to consider?
/Estel
Why is the command "Free Rootfs" of desktop command execution widgetnot working when upgrading from stock busybox?Code:df -h | awk '$1 == "rootfs" {print $4"B"}'
The Following 2 Users Say Thank You to iDont For This Useful Post: | ||
|
2012-01-18
, 07:53
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#229
|
Why is the command "Free Rootfs" of desktop command execution widgetnot working when upgrading from stock busybox?Code:df -h | awk '$1 == "rootfs" {print $4"B"}'
df -h | awk '$1 == "ubi0:rootfs" {print $4"B"}'
df -h | awk '$1 ~ "rootfs" {print $4"B"}'
The Following 3 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-01-18
, 12:29
|
Posts: 268 |
Thanked: 1,053 times |
Joined on May 2010
@ The Netherlands
|
#230
|
Don't know why coreutils/df might want to skip rootfs. Doesn't make any sense to me..
config FEATURE_SKIP_ROOTFS
bool "Skip rootfs in mount table"
default y
help
Ignore rootfs entry in mount table.
In Linux, kernel has a special filesystem, rootfs, which is initially
mounted on /. It contains initramfs data, if kernel is configured
to have one. Usually, another file system is mounted over / early
in boot process, and therefore most tools which manipulate
mount table, such as df, will skip rootfs entry.
However, some systems do not mount anything on /.
If you need to configure busybox for one of these systems,
you may find it useful to turn this option off to make df show
initramfs statistics.
Otherwise, choose Y.
The Following 3 Users Say Thank You to iDont For This Useful Post: | ||
There are no security implications with this behaviour AFAIK, as the environment variables are still not inherited and non-root users can't edit the key-value list of variables.
Also, having one single binary is easier to maintain and cleaner in my opinion, which are the main reasons for taking the current approach to me.
By the way, lma also had a good idea regarding this topic: split busybox into busybox and busybox_root, and make busybox exec busybox_root when it is invoked with e.g. ping. I'll certainly look into that, but it might take a while before I'll get around to that (patches are welcome of course).
--
Edit: forgot to mention: busybox-power 1.19.3power4 should hit extras-testing in an hour or so. Please submit it to some serious testing!
Last edited by iDont; 2012-01-16 at 18:45.