diff options
author | Stew Benedict <stewb@mandriva.org> | 2005-06-23 05:07:39 +0000 |
---|---|---|
committer | Stew Benedict <stewb@mandriva.org> | 2005-06-23 05:07:39 +0000 |
commit | 8e78685eed20c4bc34e6a22ac8e6548c9305411a (patch) | |
tree | 9bfd28133212cd890f023e6ab8096ebcb480ff89 /make_boot_img | |
parent | 81a1726cce6cadfd65131c8a27a545cfc7e2a31b (diff) | |
download | drakx-8e78685eed20c4bc34e6a22ac8e6548c9305411a.tar drakx-8e78685eed20c4bc34e6a22ac8e6548c9305411a.tar.gz drakx-8e78685eed20c4bc34e6a22ac8e6548c9305411a.tar.bz2 drakx-8e78685eed20c4bc34e6a22ac8e6548c9305411a.tar.xz drakx-8e78685eed20c4bc34e6a22ac8e6548c9305411a.zip |
Setup needed files for Xbox boot in /export
Diffstat (limited to 'make_boot_img')
-rwxr-xr-x | make_boot_img | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/make_boot_img b/make_boot_img index a1e46bbf7..470b9dd60 100755 --- a/make_boot_img +++ b/make_boot_img @@ -744,6 +744,32 @@ sub isolinux { _ "cp /usr/lib/syslinux/isolinux.bin isolinux/isolinux.bin"; output("isolinux/isolinux.cfg", syslinux_cfg_all('cdrom')); + + xbox_stage1() if arch() =~ /i.86/; +} + +sub xbox_stage1() { + my $dir = 'isolinux/xbox'; + + eval { rm_rf($dir) }; mkdir_p($dir); + + my $xbox_kernel = find { /xbox/ } all('kernel/all.kernels') or return; + + _ "cp kernel/all.kernels/$xbox_kernel/vmlinuz $dir"; + initrd($tmp_mnt_initrd, 'all', '', "images/all.rdz-$xbox_kernel"); + rename("images/all.rdz-$xbox_kernel", "$dir/initrd"); + + _ "cp /usr/share/cromwell/xromwell-installer.xbe $dir/default.xbe"; + output("$dir/linuxboot.cfg", <<EOF); +kernel $dir/vmlinuz +initrd $dir/initrd +append root=/dev/ram3 ramdisk_size=36000 automatic=method:cdrom +EOF +} + +sub xromwell { + _ "cp /usr/share/cromwell/xromwell_installer.xbe default.xbe"; + _ "cp /usr/share/cromwell/linuxboot.cfg ."; } sub boot_iso { |