Skip to contentSkip to conversation

grub-pc: installation failure under linux + udev

DISCUSSION Robert Millan 2 participants 4 messages Jan 4, 2008 – Jan 7, 2008 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · Pascal A. Dupuis

Hello,

this is a copy of debian bug 450709
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450709) at debian maintainer's (Robert Millan <rmh at aybabtu dot com>) request:

Thanks Pascal.

Quoted 4 lines

But ... util/biosdisk.c has another issue with detecting udev. The routine has_devfs searchs for /dev/.devfsd, which cames from deprecated devfs. Enclosed is a synthetic patch, I compiled and ran it fine on my machine. Could you check ?

The off-by-5 bug is already fixed in CVS. As for the devfs part, I think I figured out what you're doing. You setup udev to emulate devfs-style devices, right?

I think the right fix for this is not to check for /dev/.udev, but rather just probe for devfs-style devices unconditionally.

As it happens there are other ways in which one could have this layout, including other /dev implementations such as userdevfs.

What does everyone else think?

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
#2 lore raw
Quoted 18 lines · Robert Millan
Quoted 5 lines · Pascal A. Dupuis

Hello,

this is a copy of debian bug 450709
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450709) at debian maintainer's (Robert Millan <rmh at aybabtu dot com>) request:

Thanks Pascal.

Quoted 4 lines

But ... util/biosdisk.c has another issue with detecting udev. The routine has_devfs searchs for /dev/.devfsd, which cames from deprecated devfs. Enclosed is a synthetic patch, I compiled and ran it fine on my machine. Could you check ?

The off-by-5 bug is already fixed in CVS. As for the devfs part, I think I figured out what you're doing. You setup udev to emulate devfs-style devices, right?

Quoted 7 lines

I think the right fix for this is not to check for /dev/.udev, but rather just probe for devfs-style devices unconditionally.

As it happens there are other ways in which one could have this layout, including other /dev implementations such as userdevfs.

What does everyone else think?

As long as it works fine, no problem. :)

Okuji

#3 lore raw
Quoted 22 lines · Yoshinori K. Okuji
Quoted 21 lines · Robert Millan
Quoted 5 lines · Pascal A. Dupuis

Hello,

this is a copy of debian bug 450709
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450709) at debian maintainer's (Robert Millan <rmh at aybabtu dot com>) request:

Thanks Pascal.

Quoted 4 lines

But ... util/biosdisk.c has another issue with detecting udev. The routine has_devfs searchs for /dev/.devfsd, which cames from deprecated devfs. Enclosed is a synthetic patch, I compiled and ran it fine on my machine. Could you check ?

The off-by-5 bug is already fixed in CVS. As for the devfs part, I think I figured out what you're doing. You setup udev to emulate devfs-style devices, right?

I think the right fix for this is not to check for /dev/.udev, but rather just probe for devfs-style devices unconditionally.

Quoted 6 lines
Quoted 4 lines

As it happens there are other ways in which one could have this layout, including other /dev implementations such as userdevfs.

What does everyone else think?

As long as it works fine, no problem. :)

Ok, fixed.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 9 lines · Pascal A. Dupuis
Quoted 7 lines · Robert Millan
Quoted 4 lines
Quoted 2 lines

What does everyone else think?

As long as it works fine, no problem. :)

Ok, fixed.

Quoted 7 lines

I guess was I sent was the simplest test. Otherwise you should have to start other processes, like:
ps ax| grep udev
udevinfo --query=all --name="dev of the root drive"

OTOH, you could also apply the Open Source Motto, 'release early, release often', so that others may further optimise my patch, if required.

Actually, what I did was not checking for devfs at all, and probe for devfs-style devices unconditionally.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)