summaryrefslogtreecommitdiffstats
path: root/images/make_boot_img
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2007-10-25 13:21:17 +0000
committerAntoine Ginies <aginies@mandriva.com>2007-10-25 13:21:17 +0000
commitf956948229e36f917dcf371f52d4b71ad8cd1dd1 (patch)
tree9c86d93b402b62f86cb8829d058fe805aefe94a6 /images/make_boot_img
parentd526d82d1e0c6a8c9539f781027276b3943f64a5 (diff)
downloaddrakx-f956948229e36f917dcf371f52d4b71ad8cd1dd1.tar
drakx-f956948229e36f917dcf371f52d4b71ad8cd1dd1.tar.gz
drakx-f956948229e36f917dcf371f52d4b71ad8cd1dd1.tar.bz2
drakx-f956948229e36f917dcf371f52d4b71ad8cd1dd1.tar.xz
drakx-f956948229e36f917dcf371f52d4b71ad8cd1dd1.zip
add some tools needed to get stage2 trough KA method
Diffstat (limited to 'images/make_boot_img')
-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";