Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
muscaOffline
Post subject: include sash for major problems with libs  PostPosted: 11.10.2010, 13:51



Joined: 2010-10-11
Posts: 3

Status: Offline
hello devs,
some weeks ago there have been small problems with libc6-i686 in sid and I have been thinking about this matter.

What about integrating sash - the stand alone shell?
It's a statically linked binary which includes basic rescue tools. In the rare case of missing libraries a preinstalled sash enables the user to extract .deb and recover needed files.

It's quite handy to open a sash on another virtual terminal before doing the dist-upgrade.

greetings
musca

_________________
Es irrt der Mensch solang er strebt.


Last edited by musca on 11.10.2010, 23:00; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: include sash for major problems with libs  PostPosted: 11.10.2010, 16:19



Joined: 2010-08-25
Posts: 736

Status: Offline
There are no according plans, up to about 5 years ago we needed a custom, static, busybox for initrd operations, but those times are long over.

Yes, it's true that on traditional (almost historic) Unices® a static shell (at least as login shell for root) was common, but it only helps if this shell is already running before problems arise, which in reality is rather unlikely (unless you really change root's login shell to this kind of shell), likewise you need to notice the problem quickly enough, before closing/ restarting said shell. In addition to this, the whole userland of contemporary linux distributions uses dynamic library loading (for very good reasons) these days, so even if you have a static shell, its actual use is rather limited (dpkg and even /sbin/init are dynamic).

If you want a reliable rescue system, I'd suggest keeping the current aptosid live ISO handy, combined with chroot and bind mounts for dev and virtual filesystems it's a very convenient (grub2-fll-fromiso, USB or CD-ROM) method for real rescue purposes that may even go beyond ls (remember, even really basic commands like cp, rm or mv are dynamically linked) at the cost of a good 500 MB (for kde-lite).
 
 View user's profile Send private message  
Reply with quote Back to top
muscaOffline
Post subject:   PostPosted: 11.10.2010, 21:25



Joined: 2010-10-11
Posts: 3

Status: Offline
Thanks slh for the explanations.
So I will take a close look at the mysterious art of chrooting.

greetings
musca
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio