This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] sln: Install as a hard link to ldconfig


On Mon, 1 Aug 2016, Mike Frysinger wrote:

> >  E.g. booting Linux with `rw init=/bin/bash.static' has always worked for 
> > me, with the root filesystem mounted r/w and ready for any recovery 
> > actions, such as fixing up DSO symlinks.  And I see no reason for it to 
> > stop working even where an initial RAM disk is used, as an image of such a 
> > RAM disk is always self-contained and not used beyond early (pre-init) 
> > initialisation needed to pull the root and maybe console device drivers.
> 
> bash.static is just as much of a distro-specific convention.  i haven't
> heard of this before, and Debian/Ubuntu/Gentoo don't have it.

 I find it a bit surprising for a general-purpose distribution not to 
provide a static shell by default, but this is as you say a policy set by 
individual distributions.  I would feel a bit nervous if I were a system 
administrator and didn't have a static shell around on a system I was 
taking care of.

 FWIW, the specific example I have given is based on what RedHat used to 
have, dating back to mid 1990s, and what I have been carrying forward.  
Maybe they've dropped the shell since or switched to a smaller one; I 
haven't been watching this area closely and assumed good old practices 
were retained.

  Maciej


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]