From f956948229e36f917dcf371f52d4b71ad8cd1dd1 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Thu, 25 Oct 2007 13:21:17 +0000 Subject: add some tools needed to get stage2 trough KA method --- images/make_boot_img | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'images') 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"; -- cgit v1.2.1