-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Erich Titl wrote:

| Hi
|
| There is a possible bug in linuxrc (at least with the busybox of Bering)
| when trying to create and mount the /tmp filesystem.
|
| Here is the output from /linuxrc.err
|
| mount -t tmpfs tmpfs /tmp -o size=20M
| mount: Mounting tmpfs on /tmp failed: Invalid argument
| mount -t tmpfs tmpfs /tmp -o size=20M
|
| I extended linuxrc a little to get the debug info. It appears as if the
| tmpfs mount does not like the parameter substitution used for tmp_size
|
| here is the relevant code
|
| [ "$VERBOSE" ] && Lecho "Generating /tmp & /var/log partitions ..."
| echo mount -t tmpfs tmpfs /tmp ${tmp_size:+-o size=$tmp_size} >>
| /linuxrc.err
| qt mount -t tmpfs tmpfs /tmp ${tmp_size:+-o size=$tmp_size}
| echo  mount -t tmpfs tmpfs /tmp -o size=$tmp_size >> /linuxrc.err
| qt mount -t tmpfs tmpfs /tmp -o size=$tmp_size
|
| as you can see, the second mount appears to work, this is with tmp_size
| set to 20M in leaf.cfg

I suspect the entire "-o size=20M" is being passed to mount as a single
argument, causing the problem.  Options include splitting the substitution
or using eval, ie:

qt mount -t tmpfs tmpfs /tmp ${tmp_size:+-o} ${tmp_size:+size=$tmp_size}

- -or-

eval qt mount -t tmpfs tmpfs /tmp ${tmp_size:+-o size=$tmp_size}

- -or-

eval qt mount -t tmpfs tmpfs /tmp ${tmp_size:+-o size=$tmp_size}

- --
Charles Steinkuehler
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCOChsLywbqEHdNFwRAviPAJ9hnQ8SJw5BMRoZLavt/MuRJe/CHwCfcIC0
2z4Q70QGJ5hk+EAYwt5f39E=
=iZQ0
-----END PGP SIGNATURE-----


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to