[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

boot-floppies, busybox size reduction status



I just completed an install with a reduced busybox.  We are now using
route and ifconfig from busybox (no bb ash, see below).  Comparing new
and old, mounted via loop.

/home/dwhedon/new         3415      2501       914  74% /new
/home/dwhedon/old         3414      2634       780  78% /old

That's uncompressed savings, BTW.

I couldn't get bb ash to work properly, segfault (Bug #114260).

I have another version of busybox sitting at
http://people.debian.org/~dwhedon :

busybox (1:0.60.1-5) unstable; urgency=low

  * turn on id and printf for boot-floppies
  * turn off ash for boot-floppies, it segfauls in debootstrap

-- David Kimdon <dwhedon@debian.org>  Tue,  2 Oct 2001 16:15:42 -0700

id is used for modconf, printf is used by debootstrap.

busybox route is in a different place from net-tools route, so I added
a symlink, see patch below.

I haven't committed the tiny changes we need, they are small and are
included in this message.  Once we have an official busybox similar to
-5 above, or maybe once someone fixes the ash bug I'll commit.

-David


Patch to boot-floppies to use bb route and ifconfig

Index: rootdisk.sh
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/rootdisk.sh,v
retrieving revision 1.257
diff -u -r1.257 rootdisk.sh
--- rootdisk.sh	2001/09/22 20:06:46	1.257
+++ rootdisk.sh	2001/10/03 01:27:07
@@ -594,6 +594,7 @@
 fi
 
 # some friendly symlinks
+ln -sf /usr/bin/route $R/sbin/route
 ln -sf ash $R/bin/sh
 ln -sf nano-tiny $R/bin/edit
 
Index: scripts/rootdisk/EXTRACT_LIST_all
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/scripts/rootdisk/EXTRACT_LIST_all,v
retrieving revision 1.35
diff -u -r1.35 EXTRACT_LIST_all
--- scripts/rootdisk/EXTRACT_LIST_all	2001/07/05 13:15:24	1.35
+++ scripts/rootdisk/EXTRACT_LIST_all	2001/10/03 01:27:11
@@ -11,6 +11,5 @@
 modutils
 nano-tiny
 netbase
-net-tools
 slang1
 whiptail
Index: scripts/rootdisk/SMALL_BASE_LIST_all
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/scripts/rootdisk/SMALL_BASE_LIST_all,v
retrieving revision 1.32
diff -u -r1.32 SMALL_BASE_LIST_all
--- scripts/rootdisk/SMALL_BASE_LIST_all	2001/06/29 12:52:34	1.32
+++ scripts/rootdisk/SMALL_BASE_LIST_all	2001/10/03 01:27:11
@@ -8,7 +8,6 @@
 sbin/depmod
 sbin/dhclient-2.2.x
 sbin/e2fsck
-sbin/ifconfig
 sbin/insmod
 sbin/ksyms
 sbin/ldconfig
@@ -16,7 +15,6 @@
 sbin/mkfs.ext2
 sbin/modprobe
 sbin/rmmod
-sbin/route
 sbin/update-modules
 usr/bin/whiptail
 usr/sbin/debootstrap



Reply to: