[arch-projects] [mkinitcpio][PATCH 07/11] init: use util-linux's /bin/mount
d at falconindy.com
Sat Nov 12 10:19:01 EST 2011
On Sat, Nov 12, 2011 at 02:32:09PM +0100, Thomas Bächler wrote:
> Am 12.11.2011 03:55, schrieb Dave Reisner:
> > Providing this means we no longer need blkid for FS detection, as mount
> > will do this for us. Adds a slight bloat to the image, in exchange for a
> > huge convenience. Messaging is changed to assume that /bin/mount will
> > provide useful feedback for us on failure.
> Once we start going down this road (cp, mount, ...), wouldn't it be
> better to simply drop busybox?
Hmm... we're probably close to that point. In terms of size for the
tradeoff, we'd need (at a minimum) the following binaries to replace
/bin/grep 134600 <-- id prefer to get rid of this
Someone will throw tomatoes at me for using Bash, but Dash sucks, and
it makes a truly awful interactive shell.
Additionally, a lot of users would end up bringing in:
cat, sed, rm, and cut are used in crypt/lvm/mdadm hooks. I can refactor
some of that out, but that seems to me like it's liable to break hooks
that I don't know about. I guess they can BYO via the BINARIES= declare
in the build function, but let's just consider having them as core for
shutdown features necessitate cp
To make the ramfs useful for troubleshooting, add in:
Ditching busybox and adding in all of this brings in an additional
1.6MB before library dependencies...
/lib/libpcre.so.0 371160 <- belongs to grep
...an additional 1.1MB. I point out that we should get rid of grep
because awk from FreeBSD is roughly the size of the grep binary, does
more, and has zero dependencies beyond libc. My pacman-dev hat wants
this in the repos anyways for easier testing of makepkg.
I don't have a problem with this -- in the end it'll make my life
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 490 bytes
Desc: not available
More information about the arch-projects