Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732 - We are missing a static bash
Summary: We are missing a static bash
Status: RESOLVED DUPLICATE of bug 993
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-17 11:03 UTC by Karl Trygve Kalleberg (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-02-17 11:03:09 UTC
There does not exist a static bash executable that is installed by default. This
is asking for trouble when users blow up their system, as init=/bin/bash is then
worthless.

Perhaps we should add a static bash to the boot parition, although I would
prefer to have it in /bin.
Comment 1 Bruce A. Locke (RETIRED) gentoo-dev 2002-02-19 02:44:38 UTC
If /bin/bash isn't working then chances are ls, etc won't work either... unless
I'm missing something :)  

sash makes a nice choice as an emergency shell.  Everything built in and
statically linked...
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-02-21 14:00:12 UTC
I wouldn't bet money on that assumption, as I ran into a case where bash didn't
want to load (complained about a missing libdl.so.2) while cp,mv,ls,cat, etc
worked nicely (presumably since they don't need dynamic linking).

However, either using Busybox or sash is the preferred solution.
Comment 3 Bruce A. Locke (RETIRED) gentoo-dev 2002-02-27 17:33:52 UTC
blocke@kodiak blocke $ ldd /bin/mv 
 libc.so.6 => /lib/libc.so.6 (0x40026000)
 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

blocke@kodiak blocke $ file /bin/mv
/bin/mv: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
linked (uses shared libs), stripped

*shrugs*

But back on topic, I forgot about busybox...  Thats probably an even better
choice then sash because it has a built in editor, etc.  Maybe busybox should be
installed as part of the 'system' profile and it be mentioned somewhere in the docs?
Comment 4 Bruce A. Locke (RETIRED) gentoo-dev 2002-03-07 03:16:08 UTC
'sash' will be added to profile for use as our emergency static shell


*** This bug has been marked as a duplicate of 993 ***