* [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
@ 2006-02-17 11:51 Stefano Melchior
2006-02-17 12:07 ` Blaisorblade
0 siblings, 1 reply; 15+ messages in thread
From: Stefano Melchior @ 2006-02-17 11:51 UTC (permalink / raw)
To: user-mode-linux-user, user-mode-linux-devel
[-- Attachment #1: Type: text/plain, Size: 907 bytes --]
Hi all,
I am trying to integrate 2.6.x support to debian and I encountered a
blocking issue on networking configuration.
If you use the 2.4.x uml kernel the UML image work fine with network, but
if you use an available 2.6.x uml image or a 2.6.x image of mine the uml
bootstrap phase hangs with the following error message:
Setting up networking...done.
* /etc/network/options is deprecated.
Setting up IP spoofing protection...done (rp_filter).
Configuring network interfaces...execvp of 'uml_net' failed - errno = 2
From previous messages I read that this concerns uml_net and its
permissions.
Do you have an idea how to work around this issue?
I also need it to apply to the future debian uml support.
Thank you in advance
Cheers
SteX
--
Stefano Melchior, GPG key = D52DF829 - <stefano.melchior@openlabs.it>
http://etinarcadiaego.dyndns.org -- http://www.stex.name
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-17 11:51 [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg Stefano Melchior
@ 2006-02-17 12:07 ` Blaisorblade
2006-02-17 13:47 ` Stefano Melchior
0 siblings, 1 reply; 15+ messages in thread
From: Blaisorblade @ 2006-02-17 12:07 UTC (permalink / raw)
To: user-mode-linux-devel, stefano.melchior; +Cc: user-mode-linux-user
On Friday 17 February 2006 12:51, Stefano Melchior wrote:
> Hi all,
> I am trying to integrate 2.6.x support to debian and I encountered a
> blocking issue on networking configuration.
> If you use the 2.4.x uml kernel the UML image work fine with network, but
> if you use an available 2.6.x uml image or a 2.6.x image of mine the uml
> bootstrap phase hangs with the following error message:
Indeed on the same machine and with same config? It's strange, I never saw
this incompatibility, and I can't find bugs in the code able to produce this
(with a quick look). Could you check on your part?
> Setting up networking...done.
> * /etc/network/options is deprecated.
> Setting up IP spoofing protection...done (rp_filter).
> Configuring network interfaces...execvp of 'uml_net' failed - errno = 2
> From previous messages I read that this concerns uml_net and its
> permissions.
Which are them? It should be setuid root and executable...
However, since:
# perror 2
OS error code 2: No such file or directory
Uml is saying it didn't find uml_net, or some of its libraries, not that
there's a permission problem.
Possibly it's lying and printing the wrong code, dunno. But from current code:
arch/um/os-Linux/helper.c:helper_child
execvp(argv[0], argv);
errval = errno;
printk("execvp of '%s' failed - errno = %d\n", argv[0], errno);
it seems not (that source file was somewhere else, guess in arch/um/kernel,
until 2.6.14, but I think the content was the same).
> Do you have an idea how to work around this issue?
> I also need it to apply to the future debian uml support.
> Thank you in advance
> Cheers
> SteX
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-17 12:07 ` Blaisorblade
@ 2006-02-17 13:47 ` Stefano Melchior
2006-02-17 14:05 ` Blaisorblade
0 siblings, 1 reply; 15+ messages in thread
From: Stefano Melchior @ 2006-02-17 13:47 UTC (permalink / raw)
To: user-mode-linux-devel, user-mode-linux-user
[-- Attachment #1: Type: text/plain, Size: 2465 bytes --]
On Fri, Feb 17, 2006 at 01:07:50PM +0100, Blaisorblade wrote:
Hi Paolo,
> > If you use the 2.4.x uml kernel the UML image work fine with network, but
> > if you use an available 2.6.x uml image or a 2.6.x image of mine the uml
> > bootstrap phase hangs with the following error message:
>
> Indeed on the same machine and with same config? It's strange, I never saw
yes, first I tried my own configuration, then I downloaded a prebuild uml
kernel from http://uml.nagafix.co.uk/ and I tried with this one. Same
error again.
Then I extracted the configuration from that image and I rebuild with that
config, same error for the same problem.
> this incompatibility, and I can't find bugs in the code able to produce this
> (with a quick look). Could you check on your part?
>
> > Setting up networking...done.
> > * /etc/network/options is deprecated.
> > Setting up IP spoofing protection...done (rp_filter).
> > Configuring network interfaces...execvp of 'uml_net' failed - errno = 2
>
> > From previous messages I read that this concerns uml_net and its
> > permissions.
>
> Which are them? It should be setuid root and executable...
ste@etinarcadiaego{~}$ ll /usr/lib/uml/uml_net
-rwsr-x--- 1 root uml-net 19836 2004-04-15 03:03 /usr/lib/uml/uml_net
my user, ste, is in the uml-net group.
>
> However, since:
>
> # perror 2
> OS error code 2: No such file or directory
it sounds strange, isn't it?
>
> Uml is saying it didn't find uml_net, or some of its libraries, not that
> there's a permission problem.
>
> Possibly it's lying and printing the wrong code, dunno. But from current code:
>
> arch/um/os-Linux/helper.c:helper_child
> execvp(argv[0], argv);
> errval = errno;
> printk("execvp of '%s' failed - errno = %d\n", argv[0], errno);
>
> it seems not (that source file was somewhere else, guess in arch/um/kernel,
> until 2.6.14, but I think the content was the same).
>
It was displayed in case of my test on 2.6.15, but it occurred even with
other kernels, such as 2.6.12 and 2.6.14.
Indeed with all 2.6.x kernels, it is the strangest thing. With 2.4.x it
works perfectly.
Another info: I used either the kernel.org sources and the debian's
linux-source(s).
I am going to investigate futher more
SteX
--
Stefano Melchior, GPG key = D52DF829 - <stefano.melchior@openlabs.it>
http://etinarcadiaego.dyndns.org -- http://www.stex.name
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-17 13:47 ` Stefano Melchior
@ 2006-02-17 14:05 ` Blaisorblade
2006-02-17 14:29 ` Stefano Melchior
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Blaisorblade @ 2006-02-17 14:05 UTC (permalink / raw)
To: user-mode-linux-devel, stefano.melchior; +Cc: user-mode-linux-user
On Friday 17 February 2006 14:47, Stefano Melchior wrote:
> On Fri, Feb 17, 2006 at 01:07:50PM +0100, Blaisorblade wrote:
> Hi Paolo,
>
> > > If you use the 2.4.x uml kernel the UML image work fine with network,
> > > but if you use an available 2.6.x uml image or a 2.6.x image of mine
> > > the uml bootstrap phase hangs with the following error message:
> >
> > Indeed on the same machine and with same config? It's strange, I never
> > saw
> yes, first I tried my own configuration, then I downloaded a prebuild uml
> kernel from http://uml.nagafix.co.uk/ and I tried with this one. Same
> error again.
> Then I extracted the configuration from that image and I rebuild with that
> config, same error for the same problem.
> ste@etinarcadiaego{~}$ ll /usr/lib/uml/uml_net
> -rwsr-x--- 1 root uml-net 19836 2004-04-15 03:03 /usr/lib/uml/uml_net
Ok, thanks for this informative info. This is the solution.
In short, echo $PATH | grep /usr/lib/uml, and if needed man 3 execvp, could
enlighten you... or even the fact that I do:
# ls -l /usr/bin/uml_net
-rws--x--x 1 root root 22856 16 feb 18:49 /usr/bin/uml_net
if you want the full story, instead, IOW:
Debian has his own very non-standard packaging for uml_utilities, and patches
UML to cope with it. For instance, uml_switch has different defaults on UML
(the socket goes into /var/run instead of /tmp, in UML).
And (but this is the first time I hear this) you have uml_net in /usr/lib/uml
rather than /usr/bin. Which would be a better choice, btw... but isn't
implemented in mainline (we maybe should).
> Another info: I used either the kernel.org sources and the debian's
> linux-source(s).
But you're using a vanilla UML without the forward ports of all 2.4 patches
(you're using linux-source(s), not a possible uml-linux-source(s)).
For the future packaging: I do believe that Debian's defaults have been
actually planned while uml_utilities haven't, so I like the idea of switching
to Debian paths as defaults, and possibly using the current ones as
fallbacks.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive
http://it.messenger.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-17 14:05 ` Blaisorblade
@ 2006-02-17 14:29 ` Stefano Melchior
2006-02-17 18:58 ` Blaisorblade
2006-02-17 15:44 ` [uml-user] " Jeff Dike
[not found] ` <20060221110240.GA8285@SteX>
2 siblings, 1 reply; 15+ messages in thread
From: Stefano Melchior @ 2006-02-17 14:29 UTC (permalink / raw)
To: user-mode-linux-devel, user-mode-linux-user
[-- Attachment #1: Type: text/plain, Size: 1735 bytes --]
On Fri, Feb 17, 2006 at 03:05:28PM +0100, Blaisorblade wrote:
Ciao Paolo,
> > yes, first I tried my own configuration, then I downloaded a prebuild uml
> > kernel from http://uml.nagafix.co.uk/ and I tried with this one. Same
> > error again.
> > Then I extracted the configuration from that image and I rebuild with that
> > config, same error for the same problem.
>
> > ste@etinarcadiaego{~}$ ll /usr/lib/uml/uml_net
> > -rwsr-x--- 1 root uml-net 19836 2004-04-15 03:03 /usr/lib/uml/uml_net
>
> Ok, thanks for this informative info. This is the solution.
>
> In short, echo $PATH | grep /usr/lib/uml, and if needed man 3 execvp, could
> enlighten you... or even the fact that I do:
>
> # ls -l /usr/bin/uml_net
> -rws--x--x 1 root root 22856 16 feb 18:49 /usr/bin/uml_net
damn, it drived me crazy!!! now it works, and I am going to provide the
solution in debian.
What it sounds strange is that:
stex@landini{~}$ ll /usr/bin/uml*
-rwxr-xr-x 1 root root 10296 2006-02-17 03:39 /usr/bin/uml_mconsole
-rwxr-xr-x 1 root root 9784 2006-02-17 03:39 /usr/bin/uml_mkcow
-rwxr-xr-x 1 root root 12356 2006-02-17 03:39 /usr/bin/uml_moo
lrwxrwxrwx 1 root root 20 2006-02-17 12:13 /usr/bin/uml_net ->
/usr/lib/uml/uml_net
-rwxr-xr-x 1 root root 15624 2006-02-17 03:39 /usr/bin/uml_switch
-rwxr-xr-x 1 root root 4168 2006-02-17 03:39 /usr/bin/uml_watchdog
(I temporarily linked uml_net from the current position)
all the other uml_* files resides on /usr/bin.
I am going to fix this.
Thanks Paolo for your usual good suggestions :))
Cheers
SteX
--
Stefano Melchior, GPG key = D52DF829 - <stefano.melchior@openlabs.it>
http://etinarcadiaego.dyndns.org -- http://www.stex.name
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-user] Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-17 14:05 ` Blaisorblade
2006-02-17 14:29 ` Stefano Melchior
@ 2006-02-17 15:44 ` Jeff Dike
2006-02-17 18:48 ` Blaisorblade
[not found] ` <20060221110240.GA8285@SteX>
2 siblings, 1 reply; 15+ messages in thread
From: Jeff Dike @ 2006-02-17 15:44 UTC (permalink / raw)
To: Blaisorblade
Cc: user-mode-linux-devel, stefano.melchior, user-mode-linux-user
On Fri, Feb 17, 2006 at 03:05:28PM +0100, Blaisorblade wrote:
> For the future packaging: I do believe that Debian's defaults have been
> actually planned while uml_utilities haven't, so I like the idea of switching
> to Debian paths as defaults, and possibly using the current ones as
> fallbacks.
Yup, as long as they are not too Debian-specific.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-user] Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-17 15:44 ` [uml-user] " Jeff Dike
@ 2006-02-17 18:48 ` Blaisorblade
2006-02-19 22:04 ` Rob Landley
0 siblings, 1 reply; 15+ messages in thread
From: Blaisorblade @ 2006-02-17 18:48 UTC (permalink / raw)
To: Jeff Dike; +Cc: user-mode-linux-devel, stefano.melchior, user-mode-linux-user
On Friday 17 February 2006 16:44, Jeff Dike wrote:
> On Fri, Feb 17, 2006 at 03:05:28PM +0100, Blaisorblade wrote:
> > For the future packaging: I do believe that Debian's defaults have been
> > actually planned while uml_utilities haven't, so I like the idea of
> > switching to Debian paths as defaults, and possibly using the current
> > ones as fallbacks.
>
> Yup, as long as they are not too Debian-specific.
They tend to make more sense and adhere better to the
FHS. /var/run/uml-utilities requires support from the distro, but having
uml_net in /usr/lib is a correct idea, for instance.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive
http://it.messenger.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-17 14:29 ` Stefano Melchior
@ 2006-02-17 18:58 ` Blaisorblade
0 siblings, 0 replies; 15+ messages in thread
From: Blaisorblade @ 2006-02-17 18:58 UTC (permalink / raw)
To: user-mode-linux-devel, stefano.melchior; +Cc: user-mode-linux-user
On Friday 17 February 2006 15:29, Stefano Melchior wrote:
> On Fri, Feb 17, 2006 at 03:05:28PM +0100, Blaisorblade wrote:
> Ciao Paolo,
>
> > # ls -l /usr/bin/uml_net
> > -rws--x--x 1 root root 22856 16 feb 18:49 /usr/bin/uml_net
>
> damn, it drived me crazy!!!
Yep, we found the thing by accident - I would never have asked "where is
uml_net?"
> now it works, and I am going to provide the
> solution in debian.
> What it sounds strange is that:
Indeed it's correct as long as you support actively UML - the user never runs
uml_net so it should be under /usr/lib.
However, if the uml_utilities package provides both locations it's better for
people rolling their own kernels (i.e. everyone on Debian, for now).
Btw, I've just released a new uml_utilities version - see my homepage.
> stex@landini{~}$ ll /usr/bin/uml*
> -rwxr-xr-x 1 root root 10296 2006-02-17 03:39 /usr/bin/uml_mconsole
> -rwxr-xr-x 1 root root 9784 2006-02-17 03:39 /usr/bin/uml_mkcow
> -rwxr-xr-x 1 root root 12356 2006-02-17 03:39 /usr/bin/uml_moo
> lrwxrwxrwx 1 root root 20 2006-02-17 12:13 /usr/bin/uml_net ->
> /usr/lib/uml/uml_net
> -rwxr-xr-x 1 root root 15624 2006-02-17 03:39 /usr/bin/uml_switch
> -rwxr-xr-x 1 root root 4168 2006-02-17 03:39 /usr/bin/uml_watchdog
>
> (I temporarily linked uml_net from the current position)
> all the other uml_* files resides on /usr/bin.
> I am going to fix this.
>
> Thanks Paolo for your usual good suggestions :))
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive
http://it.messenger.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-user] Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-17 18:48 ` Blaisorblade
@ 2006-02-19 22:04 ` Rob Landley
2006-02-20 3:47 ` Jason Lunz
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Rob Landley @ 2006-02-19 22:04 UTC (permalink / raw)
To: user-mode-linux-devel
Cc: Blaisorblade, Jeff Dike, stefano.melchior, user-mode-linux-user
On Friday 17 February 2006 1:48 pm, Blaisorblade wrote:
> On Friday 17 February 2006 16:44, Jeff Dike wrote:
> > On Fri, Feb 17, 2006 at 03:05:28PM +0100, Blaisorblade wrote:
> > > For the future packaging: I do believe that Debian's defaults have been
> > > actually planned while uml_utilities haven't, so I like the idea of
> > > switching to Debian paths as defaults, and possibly using the current
> > > ones as fallbacks.
> >
> > Yup, as long as they are not too Debian-specific.
>
> They tend to make more sense and adhere better to the
> FHS. /var/run/uml-utilities requires support from the distro, but having
> uml_net in /usr/lib is a correct idea, for instance.
I'm confused, why would you have executables in a shared library directory
instead of /usr/bin or some such? (These are runnable elf binaries, not
shared libraries, correct?)
Rob
--
Never bet against the cheap plastic solution.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-user] Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-19 22:04 ` Rob Landley
@ 2006-02-20 3:47 ` Jason Lunz
2006-02-20 5:34 ` Stefano Melchior
2006-02-20 19:00 ` Blaisorblade
2 siblings, 0 replies; 15+ messages in thread
From: Jason Lunz @ 2006-02-20 3:47 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: user-mode-linux-user
rob@landley.net said:
> I'm confused, why would you have executables in a shared library directory
> instead of /usr/bin or some such? (These are runnable elf binaries, not
> shared libraries, correct?)
The FHS says "/usr/lib includes object files, libraries, and internal
binaries that are not intended to be executed directly by users or shell
scripts".
http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA
Jason
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-user] Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-19 22:04 ` Rob Landley
2006-02-20 3:47 ` Jason Lunz
@ 2006-02-20 5:34 ` Stefano Melchior
2006-02-20 19:00 ` Blaisorblade
2 siblings, 0 replies; 15+ messages in thread
From: Stefano Melchior @ 2006-02-20 5:34 UTC (permalink / raw)
To: Rob Landley; +Cc: user-mode-linux-devel, user-mode-linux-user
[-- Attachment #1: Type: text/plain, Size: 1912 bytes --]
On Sun, Feb 19, 2006 at 05:04:03PM -0500, Rob Landley wrote:
Hi Rob,
> On Friday 17 February 2006 1:48 pm, Blaisorblade wrote:
> > On Friday 17 February 2006 16:44, Jeff Dike wrote:
> > > On Fri, Feb 17, 2006 at 03:05:28PM +0100, Blaisorblade wrote:
> > > > For the future packaging: I do believe that Debian's defaults have been
> > > > actually planned while uml_utilities haven't, so I like the idea of
> > > > switching to Debian paths as defaults, and possibly using the current
> > > > ones as fallbacks.
> > >
> > > Yup, as long as they are not too Debian-specific.
> >
> > They tend to make more sense and adhere better to the
> > FHS. /var/run/uml-utilities requires support from the distro, but having
> > uml_net in /usr/lib is a correct idea, for instance.
>
> I'm confused, why would you have executables in a shared library directory
> instead of /usr/bin or some such? (These are runnable elf binaries, not
> shared libraries, correct?)
Citing from Debian policy (FHS):
"/usr/lib includes object files, libraries, and internal binaries that are
not intended to be executed directly by users or shell scripts."
and
"Some executable commands such as makewhatis and sendmail have also been
traditionally placed in /usr/lib. makewhatis is an internal binary and
should be placed in a binary directory; users access only catman. Newer
sendmail binaries are now placed by default in /usr/sbin; a symbolic link
should remain from /usr/lib. Additionally, systems using a
sendmail-compatible mail transport agent should provide /usr/sbin/sendmail
as a symbolic link to the appropriate executable."
So it would be nice if you can provide a symbolic link from the binary
executable to the library file.
Cheers
SteX
--
Stefano Melchior, GPG key = D52DF829 - <stefano.melchior@openlabs.it>
http://etinarcadiaego.dyndns.org -- http://www.stex.name
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-user] Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-19 22:04 ` Rob Landley
2006-02-20 3:47 ` Jason Lunz
2006-02-20 5:34 ` Stefano Melchior
@ 2006-02-20 19:00 ` Blaisorblade
2 siblings, 0 replies; 15+ messages in thread
From: Blaisorblade @ 2006-02-20 19:00 UTC (permalink / raw)
To: Rob Landley
Cc: user-mode-linux-devel, Jeff Dike, stefano.melchior,
user-mode-linux-user
On Sunday 19 February 2006 23:04, Rob Landley wrote:
> On Friday 17 February 2006 1:48 pm, Blaisorblade wrote:
> > On Friday 17 February 2006 16:44, Jeff Dike wrote:
> > > On Fri, Feb 17, 2006 at 03:05:28PM +0100, Blaisorblade wrote:
> > > > For the future packaging: I do believe that Debian's defaults have
> > > > been actually planned while uml_utilities haven't, so I like the idea
> > > > of switching to Debian paths as defaults, and possibly using the
> > > > current ones as fallbacks.
> > > Yup, as long as they are not too Debian-specific.
> > They tend to make more sense and adhere better to the
> > FHS. /var/run/uml-utilities requires support from the distro, but having
> > uml_net in /usr/lib is a correct idea, for instance.
> I'm confused, why would you have executables in a shared library directory
> instead of /usr/bin or some such?
> (These are runnable elf binaries, not
> shared libraries, correct?)
Correct. We already have /usr/lib/uml/port-helper, Debian also
has /usr/lib/uml/uml_net.
Arguably (I dunno well FHS) the correct path should be /usr/libexec/uml, I
guess... But I don't care as long as you take a meaningful decision. And as
long as you start providing compatibility symlinks - if somebody says "let's
be cleaner even if we screw some setups" that's wrong.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive
http://it.messenger.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
[not found] ` <20060221161450.GZ28322@alcor.net>
@ 2006-02-21 16:51 ` Stefano Melchior
2006-02-21 17:01 ` Matt Zimmerman
2006-02-22 16:33 ` Blaisorblade
0 siblings, 2 replies; 15+ messages in thread
From: Stefano Melchior @ 2006-02-21 16:51 UTC (permalink / raw)
To: Matt Zimmerman; +Cc: Andreas Schuldei, pkg-uml-devel, user-mode-linux-devel
[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]
On Tue, Feb 21, 2006 at 08:14:50AM -0800, Matt Zimmerman wrote:
Hi Matt,
> On Tue, Feb 21, 2006 at 12:02:40PM +0100, Stefano Melchior wrote:
> > Once discovered the issue and find the workaround [1], I am wondering why,
> > if you moved uml_net from /usr/bin to /usr/lib/uml/, you left the other
> > uml_* executable on the first dir.
>
> This was to comply with the FHS:
>
> http://www.pathname.com/fhs/pub/fhs-2.3.html
>
> uml_net is not intended to be executed by a user, only invoked as an
> auxiliary program by UML itself.
>
> I discussed this with Jeff at the time, and he agreed that it should move,
> but never moved it upstream apparently.
>
> I patched the Debian UML sources to match.
>
> > Is it worthy to move all of them to /usr/lib/uml/?
>
> No, see above.
Ok, I understood, thank you.
On the Makefile of uml_net source, and I read:
BIN_DIR ?= /usr/bin
If Jeff, Paolo and the UML devel team all agree, we can patch it and
transform the line in:
BIN_DIR ?= /usr/lib/uml
The same with uml_switch, isn't it?
Do you agree?
Cheers
SteX
--
Stefano Melchior, GPG key = D52DF829 - <stefano.melchior@openlabs.it>
http://etinarcadiaego.dyndns.org -- http://www.stex.name
Skype ID "stefanomelchior"
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-21 16:51 ` Stefano Melchior
@ 2006-02-21 17:01 ` Matt Zimmerman
2006-02-22 16:33 ` Blaisorblade
1 sibling, 0 replies; 15+ messages in thread
From: Matt Zimmerman @ 2006-02-21 17:01 UTC (permalink / raw)
To: Stefano Melchior; +Cc: Andreas Schuldei, pkg-uml-devel, user-mode-linux-devel
On Tue, Feb 21, 2006 at 05:51:08PM +0100, Stefano Melchior wrote:
> The same with uml_switch, isn't it?
uml_switch is more of a daemon, and those generally live in a bin directory.
Again, see FHS for details.
--
- mdz
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg
2006-02-21 16:51 ` Stefano Melchior
2006-02-21 17:01 ` Matt Zimmerman
@ 2006-02-22 16:33 ` Blaisorblade
1 sibling, 0 replies; 15+ messages in thread
From: Blaisorblade @ 2006-02-22 16:33 UTC (permalink / raw)
To: user-mode-linux-devel, stefano.melchior
Cc: Matt Zimmerman, Andreas Schuldei, pkg-uml-devel
On Tuesday 21 February 2006 17:51, Stefano Melchior wrote:
> On Tue, Feb 21, 2006 at 08:14:50AM -0800, Matt Zimmerman wrote:
> Hi Matt,
> > On Tue, Feb 21, 2006 at 12:02:40PM +0100, Stefano Melchior wrote:
> > > Once discovered the issue and find the workaround [1], I am wondering
> > > why, if you moved uml_net from /usr/bin to /usr/lib/uml/, you left the
> > > other uml_* executable on the first dir.
> > This was to comply with the FHS:
> > http://www.pathname.com/fhs/pub/fhs-2.3.html
> > uml_net is not intended to be executed by a user, only invoked as an
> > auxiliary program by UML itself.
> > I discussed this with Jeff at the time, and he agreed that it should
> > move, but never moved it upstream apparently.
> > I patched the Debian UML sources to match.
> > > Is it worthy to move all of them to /usr/lib/uml/?
> > No, see above.
> Ok, I understood, thank you.
> On the Makefile of uml_net source, and I read:
> BIN_DIR ?= /usr/bin
> If Jeff, Paolo and the UML devel team all agree, we can patch it and
> transform the line in:
> BIN_DIR ?= /usr/lib/uml
Yep, but we need also the symlink in /usr/bin. I think it's not the case to
break compatibility. Send me the patch so I integrate it in next uml-utilities
release.
> The same with uml_switch, isn't it?
No - uml_switch *must* be run by the user and is *never* run by UML.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive
http://it.messenger.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2006-02-23 19:14 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-17 11:51 [uml-devel] "Configuring network interfaces...execvp of 'uml_net' failed - errno = 2" error msg Stefano Melchior
2006-02-17 12:07 ` Blaisorblade
2006-02-17 13:47 ` Stefano Melchior
2006-02-17 14:05 ` Blaisorblade
2006-02-17 14:29 ` Stefano Melchior
2006-02-17 18:58 ` Blaisorblade
2006-02-17 15:44 ` [uml-user] " Jeff Dike
2006-02-17 18:48 ` Blaisorblade
2006-02-19 22:04 ` Rob Landley
2006-02-20 3:47 ` Jason Lunz
2006-02-20 5:34 ` Stefano Melchior
2006-02-20 19:00 ` Blaisorblade
[not found] ` <20060221110240.GA8285@SteX>
[not found] ` <20060221161450.GZ28322@alcor.net>
2006-02-21 16:51 ` Stefano Melchior
2006-02-21 17:01 ` Matt Zimmerman
2006-02-22 16:33 ` Blaisorblade
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.