Re: Support for separate /usr, was: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-09 Thread Bill Nottingham
Nils Philippsen (n...@redhat.com) said: > IMO, the more dire problem is that /sbin/sulogin links against > libfreebl3.so which is on /usr. That's just recently prevented me from > interactively running fsck on my root partition which had errors without > a rescue image. Somebody wants a bug for th

Support for separate /usr, was: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-09 Thread Nils Philippsen
Coming a bit late here, but anyway... On Mon, 2010-02-01 at 11:16 -0600, Chris Adams wrote: > Once upon a time, Ralf Corsepius said: > > IMO, you are facing a hen-and-egg problem: You've never seen such a > > complaint, because using a separate /usr partition has never worked on > > RH-based di

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-01 Thread Chris Adams
Once upon a time, Ralf Corsepius said: > On 02/01/2010 10:23 PM, Paul W. Frields wrote: > > On Mon, Feb 01, 2010 at 11:16:54AM -0600, Chris Adams wrote: > >> Once upon a time, Ralf Corsepius said: > >>> IMO, you are facing a hen-and-egg problem: You've never seen such a > >>> complaint, because u

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-01 Thread David Eisner
On Mon, Feb 1, 2010 at 8:33 PM, Ralf Corsepius wrote: > The "emergency scenario" (/usr not being available) does not work with > Fedora and probably all RH-based distros, because there are packages in > /bin/* /sbin/*, which are dynamically linked against libraries in /usr/lib*. When you said "us

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-01 Thread Ralf Corsepius
On 02/01/2010 10:23 PM, Paul W. Frields wrote: > On Mon, Feb 01, 2010 at 11:16:54AM -0600, Chris Adams wrote: >> Once upon a time, Ralf Corsepius said: >>> IMO, you are facing a hen-and-egg problem: You've never seen such a >>> complaint, because using a separate /usr partition has never worked on

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-01 Thread Paul W. Frields
On Mon, Feb 01, 2010 at 11:16:54AM -0600, Chris Adams wrote: > Once upon a time, Ralf Corsepius said: > > IMO, you are facing a hen-and-egg problem: You've never seen such a > > complaint, because using a separate /usr partition has never worked on > > RH-based distros. > > Please stop repeatin

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-01 Thread Chris Adams
Once upon a time, Ralf Corsepius said: > IMO, you are facing a hen-and-egg problem: You've never seen such a > complaint, because using a separate /usr partition has never worked on > RH-based distros. Please stop repeating this untrue statement. As I told you already, I have used separate /us

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-01 Thread Ralf Corsepius
On 02/01/2010 05:01 PM, Michal Hlavinka wrote: > On Friday 29 January 2010 06:35:21 Ralf Corsepius wrote: >> Should setpci be used somewhere in bootup scripts, you likely won't be >> able to boot up your system at all. > > and because libpci is in /usr for a long time and there was not any complai

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-01 Thread Sergey Rudchenko
On 2/1/2010 6:01 PM, Michal Hlavinka wrote: > right, the point is lspci wont work without /usr, but can you give me > any real > world scenario where not having working pciutils on system with not mounted > /usr can make any trouble that you won't be able to mount /usr without it? > > For ins

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-02-01 Thread Michal Hlavinka
On Friday 29 January 2010 06:35:21 Ralf Corsepius wrote: > On 01/28/2010 04:06 PM, Chris Adams wrote: > > Once upon a time, Ralf Corsepius said: > >> On 01/27/2010 02:17 PM, Michal Hlavinka wrote: > >>> Do you think moving this is a bad idea? > >> > >> Yes. > >> > >> The pciutils are valuable to

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-29 Thread Adam Williamson
On Fri, 2010-01-29 at 14:57 +0200, Sergey Rudchenko wrote: > On 1/29/2010 2:38 PM, Hans Ulrich Niedermann wrote: > > On Fri, 29 Jan 2010 09:32:15 +0100 > > Ralf Corsepius wrote: > > > > > >> Presuming /sbin/lspci is supposed to work without having /usr/ > >> mounted, then libpci.so.X needs to

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-29 Thread Jonathan Underwood
On 29 January 2010 14:16, Maxim Burgerhout wrote: >> What if we link the lspci and lsusb as static binaries? That would allow >> us not to break the filesystem architecture and have usable tools. > > You'd still miss pci.ids without /usr, so that would have to move too. > Only place remotely suita

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-29 Thread Maxim Burgerhout
> What if we link the lspci and lsusb as static binaries? That would allow > us not to break the filesystem architecture and have usable tools. You'd still miss pci.ids without /usr, so that would have to move too. Only place remotely suitable for that - not being beneath /usr or /var - would be /

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-29 Thread Sergey Rudchenko
On 1/29/2010 2:38 PM, Hans Ulrich Niedermann wrote: > On Fri, 29 Jan 2010 09:32:15 +0100 > Ralf Corsepius wrote: > > >> Presuming /sbin/lspci is supposed to work without having /usr/ >> mounted, then libpci.so.X needs to reside in /lib|/lib64. >> >> Or differently: Everything in /bin and /sbin

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-29 Thread Hans Ulrich Niedermann
On Fri, 29 Jan 2010 09:32:15 +0100 Ralf Corsepius wrote: > Presuming /sbin/lspci is supposed to work without having /usr/ > mounted, then libpci.so.X needs to reside in /lib|/lib64. > > Or differently: Everything in /bin and /sbin, must only be > dynamically linked against libraries in /lib|/lib6

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-29 Thread Ralf Corsepius
On 01/29/2010 07:19 AM, Garrett Holmstrom wrote: > On Thu, Jan 28, 2010 at 11:35 PM, Ralf Corsepius wrote: >> Consider taking out /usr from your fstab and to check how far you can get. >> With /sbin/lspci you will be able to check your pci setup, with >> /usr/sbin/lspci, you wouldn't. > > False.

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-28 Thread Garrett Holmstrom
On Thu, Jan 28, 2010 at 11:35 PM, Ralf Corsepius wrote: > Consider taking out /usr from your fstab and to check how far you can get. > With /sbin/lspci you will be able to check your pci setup, with > /usr/sbin/lspci, you wouldn't. False. /sbin/lspci doesn't work without libpci.so, which is in /

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-28 Thread Ralf Corsepius
On 01/28/2010 04:06 PM, Chris Adams wrote: > Once upon a time, Ralf Corsepius said: >> On 01/27/2010 02:17 PM, Michal Hlavinka wrote: >>> Do you think moving this is a bad idea? >> Yes. >> >> The pciutils are valuable tools when trying to recover from situations >> when "things go utterly wrong".

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-28 Thread Chris Adams
Once upon a time, Ralf Corsepius said: > On 01/27/2010 02:17 PM, Michal Hlavinka wrote: > > Do you think moving this is a bad idea? > Yes. > > The pciutils are valuable tools when trying to recover from situations > when "things go utterly wrong". So what difference does it make where they are

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-27 Thread Ralf Corsepius
On 01/27/2010 02:17 PM, Michal Hlavinka wrote: > Hi all, > > in Fedora we have pciutils binaries (lspci and setpci) in /sbin, both of them > use pciutils-libs (/usr/lib/...) and afaik this is how it works for "ages". > I'd like to move them from /sbin to /usr/sbin to have them with the same > pref

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-27 Thread Matthew Miller
On Wed, Jan 27, 2010 at 02:51:15PM +0100, Maxim Burgerhout wrote: > - I noticed Debian puts lspci in /usr/bin. I'm curious about the > reason lspci is to remain in a sbin directory if it's being moved > anyway. +1, please. -- Matthew Miller mat...@mattdm.org

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-27 Thread Bill Nottingham
Michal Hlavinka (mhlav...@redhat.com) said: > Do you think moving this is a bad idea? I think it should not break anything, > only problem can be with separate /usr partition but because of library in > /usr it would be already broken and I've not seen any complain about it ever. Furthermore, m

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-27 Thread Michal Hlavinka
On Wednesday 27 January 2010 14:51:15 Maxim Burgerhout wrote: > Hi Michal, > > A few thoughts on this: > > - on RHEL boxes, the dependency on libpci does not exist and lspci is > in /sbin. Therefore, on RHEL boxes, lspci will still work with a > broken /usr partition. I haven't heard of anyone ab

Re: Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-27 Thread Maxim Burgerhout
Hi Michal, A few thoughts on this: - on RHEL boxes, the dependency on libpci does not exist and lspci is in /sbin. Therefore, on RHEL boxes, lspci will still work with a broken /usr partition. I haven't heard of anyone absolutely needing lspci on a system with a broken /usr partition, but it *is*

Moving lspci and setpci from /sbin to /usr/sbin?

2010-01-27 Thread Michal Hlavinka
Hi all, in Fedora we have pciutils binaries (lspci and setpci) in /sbin, both of them use pciutils-libs (/usr/lib/...) and afaik this is how it works for "ages". I'd like to move them from /sbin to /usr/sbin to have them with the same prefix as library has. Do you think it can break anything?