On Fri, Oct 10, 2003 at 10:05:40AM -0400, Gary Molenkamp wrote:
> 
> I'm trying to get rid of the hacks in systemconfigurator, but I've hit 
> this problem.
> 
> When you are calling get_mountinfo to find the boot device, you are doing 
> a pattern match search for the path as compared to entries in /etc/fstab: 
> 
>        while(<FSTAB>) {
>             s/#.*//;   ## strip comments
>             if (m,^\s*(/dev/\S+\d+)\s+$file\s,) {
> 
> However, if the fstab file relies on labels (as is the default install 
> for redhat/not sure about debian), it will look something like 
> the following:
> 
> LABEL=/               /       ext3    defaults        1       1
> LABEL=/boot   /boot   ext3    defaults        1       2
> 
> The systemconfig will then fail to get the boot device.
> 
> This info can be gleaned from mount in this case.

on a normal running system, yes.  however, mount just reads /etc/mtab,
which is not accurate at the time sc runs.

we can assume proc is mounted though, and this information is in
/proc/mounts.  i wonder if there's an issue with using it instead.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Sisuite-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to