[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fstab (was Re: busybox 'umount -a' segfaults)



On Sat Nov 27, 1999 at 01:34:47PM -0500, Adam Di Carlo wrote:
> Erik Andersen <andersen@xmission.com> writes:
> 
> > Ok, I see the problem.  Inside umount, I call getfsfile("/")
> > to try and get the name of the root device.  Libc then internally
> > opens /etc/fstab to try and get the real device name of the 
> > root device, fails (since for whatever reason /etc/fstab exists
> > but is empty (why?)), and returns NULL.  I tried to dereference
> > the NULL struct mntent* -> boom.  I'll fix it right up.
> 
> Regarding root.bin /etc/fstab -- should that be set as so:
> 
>  /dev/root              /       ext2    defaults        0       1
> 
> ?  I could populate this from scripts/rootdisk/prototype/...
> 

Wouldn't hut, but it doesn't matter much now that I have the bug
fixed. Hmm. Why even have /etc/fstab at all? It itn't providing any
useful information for the boot floppies I can see (unless I'm missing
something).

 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--


Reply to: