summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-19 22:58:36 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-19 22:58:36 +0000
commit53b15e8078aad71fa30c1f4c1d0b10302ba97070 (patch)
tree0a1db7fc74bb13368459eddd563f925d518fdc43
parent5c6b1cd625fb4afb08e4fdae66d65a62d8c710f3 (diff)
downloaddrakx-backup-do-not-use-53b15e8078aad71fa30c1f4c1d0b10302ba97070.tar
drakx-backup-do-not-use-53b15e8078aad71fa30c1f4c1d0b10302ba97070.tar.gz
drakx-backup-do-not-use-53b15e8078aad71fa30c1f4c1d0b10302ba97070.tar.bz2
drakx-backup-do-not-use-53b15e8078aad71fa30c1f4c1d0b10302ba97070.tar.xz
drakx-backup-do-not-use-53b15e8078aad71fa30c1f4c1d0b10302ba97070.zip
reduce size of stage1 by removing busybox if not in debug mode
-rw-r--r--images/NEWS2
-rwxr-xr-ximages/make_boot_img2
2 files changed, 3 insertions, 1 deletions
diff --git a/images/NEWS b/images/NEWS
index 80af48297..10d33adfb 100644
--- a/images/NEWS
+++ b/images/NEWS
@@ -1,3 +1,5 @@
+- smaller stage1: remove busybox if not in debug mode
+
Version 1.60 - 5 January 2011 by Thierry Vignaud
- use upstream pppd & pppoe instead of a 10 years old snapshot
diff --git a/images/make_boot_img b/images/make_boot_img
index b07817994..36aa99389 100755
--- a/images/make_boot_img
+++ b/images/make_boot_img
@@ -205,7 +205,7 @@ fi
_ "cp -f $modz/modules.alias $modz/modules.description $tmp_initrd/modules/$ext";
}
# ka deploy need some files in all.rdz
- {
+ if ($ENV{DEBUGSTAGE1}) {
mkdir_p("$tmp_initrd/$_") foreach qw(dev ka proc var/tmp tmp/stage2);
symlink("/sbin", "$tmp_initrd/bin");
cp_af("/usr/bin/ka-d-client", "$tmp_initrd/ka/ka-d-client");