diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-03 09:16:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-03 09:16:15 +0000 |
commit | 3f154a9300d403ced12d42a8a9f1827b5ded64a0 (patch) | |
tree | 7f07cb9077fce4e8ef4c65fcf4cf23a7d01da1c3 /images | |
parent | b14e4864b5233af9e9e1d50e54336e87973adfde (diff) | |
download | drakx-3f154a9300d403ced12d42a8a9f1827b5ded64a0.tar drakx-3f154a9300d403ced12d42a8a9f1827b5ded64a0.tar.gz drakx-3f154a9300d403ced12d42a8a9f1827b5ded64a0.tar.bz2 drakx-3f154a9300d403ced12d42a8a9f1827b5ded64a0.tar.xz drakx-3f154a9300d403ced12d42a8a9f1827b5ded64a0.zip |
allow testing gfxboot via boot.iso
Diffstat (limited to 'images')
-rwxr-xr-x | images/make_boot_img | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/images/make_boot_img b/images/make_boot_img index 21467fadd..1dab04546 100755 --- a/images/make_boot_img +++ b/images/make_boot_img @@ -204,7 +204,7 @@ sub entries_append { } sub syslinux_cfg_all { - my ($type) = @_; + my ($type, $b_gfxboot) = @_; syslinux_cfg([ (map { @@ -215,7 +215,7 @@ sub syslinux_cfg_all { append => join(' ', grep {$_} $default_append, $default_acpi, $default_vga) }; } @kernels), { label => 'memtest', kernel => 'memtest' }, - ], $type =~ /cdrom/ && 'gfxboot'); + ], $b_gfxboot); } sub remove_ending_zero { my ($img) = @_; @@ -688,7 +688,7 @@ sub isolinux { syslinux_all_files('isolinux', $kernels); _ "cp $isolinux_bin isolinux/isolinux.bin"; - output("isolinux/isolinux.cfg", syslinux_cfg_all('cdrom')); + output("isolinux/isolinux.cfg", syslinux_cfg_all('cdrom', 1)); xbox_stage1() if arch() =~ /i.86/; } @@ -720,7 +720,11 @@ sub boot_iso { # for the boot iso, use standard isolinux _ "cp /usr/lib/syslinux/isolinux.bin .boot_iso/isolinux/isolinux.bin"; - output('.boot_iso/isolinux/isolinux.cfg', syslinux_cfg_all('')); + + my $with_gfxboot = 0; + _ "cp /usr/share/gfxboot/themes/Mandriva/install/* .boot_iso/isolinux" if $with_gfxboot; + + output('.boot_iso/isolinux/isolinux.cfg', syslinux_cfg_all('', $with_gfxboot)); _ "genisoimage -r -f -J -cache-inodes -V 'Mdk Boot ISO' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o $iso .boot_iso"; rm_rf('.boot_iso'); |