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

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



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/...

-- 
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>


Reply to: