Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256494 - app-shells/zsh for single user mode
Summary: app-shells/zsh for single user mode
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement with 5 votes (vote)
Assignee: Piotr Karbowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-27 07:51 UTC by Florian Friesdorf
Modified: 2022-11-26 21:42 UTC (History)
4 users (show)

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 Florian Friesdorf 2009-01-27 07:51:04 UTC
I like to use zsh for user root and my zsh is compiled with gdbm and pcre use flags, which links it to libraries in /usr. In my single user mode, these are not available, i.e. root cannot login... Yes I could make /usr available in single user mode, but then I am still stuck in case my /usr filesystem cannot be mounted.

It would be great, if I could configure the shell for single user mode, or be asked to provide a command line to be executed as shell. That's the way BSD is doing it.

I would like to configure it to be: /bin/busybox sh

Reproducible: Always
Comment 1 Dirk Heinrichs 2009-09-03 17:02:17 UTC
I second that. I would also like to use zsh as login shell for root, but as long as it links to libs in /usr/lib (gdbm) this is not possible:

# ldd /bin/zsh
        linux-gate.so.1 =>  (0xb8094000)
        libgdbm.so.3 => /usr/lib/libgdbm.so.3 (0xb8087000)
        libpcre.so.0 => /lib/libpcre.so.0 (0xb805b000)
        libdl.so.2 => /lib/libdl.so.2 (0xb8057000)
        libncursesw.so.5 => /lib/libncursesw.so.5 (0xb800b000)
        libm.so.6 => /lib/libm.so.6 (0xb7fe5000)
        libc.so.6 => /lib/libc.so.6 (0xb7ead000)
        /lib/ld-linux.so.2 (0xb8095000)
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2009-11-11 10:50:51 UTC
So what can we do here?

- USE=-gdbm
- disable the gdbm plugin
- link with as-needed
- move libgdbm to /lib
- ...
(all untested)

What's the proper solution?
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-11-18 09:27:43 UTC
Although this might be the least welcome solution, I'm tempted to close this bug as CANTFIX. The reason is that most Gentoo developers consider separate /usr partition rather useless nowadays and supporting such a case becomes more and more complicated with many libs required by system tools being in /usr/lib* rather than /lib
Comment 4 Piotr Karbowski (RETIRED) gentoo-dev 2022-11-26 21:42:25 UTC
I agree with Polynomial-C's comment, there's nothing we can fix here, unless of course there are any idea that were not shared. To whom it might concern - feel free to commend even after this is resolved as CANTFIX.