[Dev] Setting dash as default shell (or getting rid of bash)

Leandro Pereira leandro.pereira at intel.com
Fri Sep 27 15:09:17 GMT 2013


On Fri, 2013-09-27 at 07:39 +0200, Aleksander Zdyb wrote:
> And in this situation, saving 0.5 MiB on just one 
> package is quite a lot, isn't it?

If you're concerned about binary size, you could use a binary packer
such as UPX. A quick test here, compressing my own shell (on a x86-64
machine) yields pretty good compression. UPX decompresses really quickly
so it's very unlikely it'll become a bottleneck:


% cp /bin/bash .
% ls -l bash
-rwxr-xr-x 1 leandro leandro 737952 Sep 27 12:05 bash
% upx --ultra-brute bash
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
(...)
% ls -l bash
-rwxr-xr-x 1 leandro leandro 281008 Sep 27 12:05 bash


In addition to supporting x86 and x86-64, it also supports arm.


-- 
     Leandro



More information about the Dev mailing list