summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-ximages/make_boot_img11
1 files changed, 11 insertions, 0 deletions
diff --git a/images/make_boot_img b/images/make_boot_img
index 10e653407..c381667ae 100755
--- a/images/make_boot_img
+++ b/images/make_boot_img
@@ -174,6 +174,17 @@ sub initrd {
_ "cp -f $modz/modules.dep $modz/modules.alias modules.description $tmp_initrd/modules/$ext";
symlink "$ext/$_", "$tmp_initrd/modules/$_" foreach qw(modules.dep modules.description);
}
+ # ka deploy need some files in all.rdz
+ {
+ map { mkdir_p("$tmp_initrd/$_") } qw(sbin dev ka proc sbin tmp/stage2 var/tmp);
+ symlink("/sbin", "$tmp_initrd/bin");
+ cp_af("/usr/bin/ka-d-client", "$tmp_initrd/ka/ka-d-client");
+ cp_af("/usr/bin/mke2fs_diet", "$tmp_initrd/sbin/mke2fs");
+ cp_af("/usr/bin/busybox", "$tmp_initrd/sbin/busybox");
+ my @funct = map { /functions:/ .. /^$/ ? do { s/\s//g; split /,/ } : () } `busybox`;
+ shift @funct;
+ symlink('busybox', $tmp_initrd . "/sbin/$_") foreach @funct;
+ }
if ($ENV{DEBUGSTAGE1}) {
_ "cp -f /usr/bin/busybox $tmp_initrd/sbin";