On 2007-09-24 12:22 -0400, Ian McDonnell wrote: > On Monday 24 September 2007 11:55, Wookey wrote: > > On 2007-09-24 10:14 -0400, Ian McDonnell wrote: > > > Yaffs has some crazy defaults for 'mode' on root and > > > lost+found dirs on a new filesystem. AFAIK once you set > > > them (chmod) they are persistant. > > > > They don't seem to be. Not reliably on our boards anyway. We > > have to have a chmod 755 in the init scripts otherwise all > > sorts of mysterious breakage occurs from programs that can't > > read /etc/passwd or /var/foo (more accurately I think they > > can't enumerate directories). > > We don't use Yaffs for root, but for two other filesystems. > These are set to 0755 when we install them, then we don't > touch them again (on mount), so perhaps root is different > somehow. > > What about your yaffs' lost+found dir mode? balloon:~# ls -l / drw-rw-rw- 1 root root 2048 Jan 1 00:00 lost+found balloon:~# chmod 0755 /lost+found/ balloon:~# ls -l / drwxr-xr-x 1 root root 2048 Jan 1 00:00 lost+found reboot (& login) - standard debian rootfs balloon:~# ls -l / drw-rw-rw- 1 root root 2048 Jan 1 00:00 lost+found So, yes that's a less annoying place than the root mount itself to analyse the problem. > Try this patch. Cheers. Will have a go shortly. Wookey -- Principal hats: Balloonz - Toby Churchill - Aleph One - Debian http://wookware.org/