1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
#!/usr/bin/perl -cw
use MDK::Common;
sub build_label {
my ($build) = @_;
join('-', 'Mageia', $build->{settings}{version}, $build->{settings}{product}, $build->{settings}{arch});
}
sub build_title {
my ($build) = @_;
join(' ', 'Mageia', $build->{settings}{version}, $build->{settings}{product});
}
my $arch = $build->{settings}{arch};
# This is only needed for finding the boot images in the isolinux directory.
my $arch2 = $arch eq 'i586' ? 'i386' : $arch;
my $_c = {
repo => {
classes => [ qw(core nonfree) ],
types => [ qw(release updates) ],
},
media_cfg => {
askmedia => 1,
suppl => 1,
},
group_include_lists => [
'config/group-include.lst',
],
package_include_lists => [
'config/pkg-include-core.lst',
'config/pkg-include-nonfree.lst',
'config/pkg-include-to-review.lst',
],
package_exclude_lists => [
'config/pkg-exclude.lst',
'config/pkg-exclude-to-review.lst',
],
copy_from_repo => [
'autorun.inf' => 'files/autorun.inf',
'dosutils' => 'files/dosutils',
"isolinux/$arch2/all.rdz" => "boot/all.rdz",
"isolinux/$arch2/vmlinuz" => "boot/vmlinuz",
'isolinux/memtest' => "boot/memtest",
'doc' => "files/$arch/doc",
'install/extra' => "files/$arch/install/extra",
'install/stage2/mdkinst.sqfs' => "files/$arch/install/stage2/mdkinst.sqfs",
'install/stage2/rescue.sqfs' => "files/$arch/install/stage2/rescue.sqfs",
'install/stage2/VERSION' => "files/$arch/install/stage2/VERSION",
'misc' => "files/$arch/misc",
'release-notes.txt' => "files/$arch/release-notes.txt",
'release-notes.html' => "files/$arch/release-notes.html",
],
system => {
vga_mode => '791',
},
media => {
storage => 'iso',
label => build_label($build),
bootloader_title => build_title($build),
bootloader_theme => 'bootloader/maggy',
bootloader_font => 'bootloader/unicode.pf2',
bootloader_langs => 'bootloader/lang-names.txt',
bootloader_kbds => 'bootloader/kbd-names.txt',
bootloader_messages => 'bootloader/messages',
bootloader_default => 0,
bootloader_timeout => 10,
bootloader_entries => [ 'Install Mageia' => { append => 'automatic=method:cdrom audit=0 noiswmd splash quiet' },
'Rescue System' => { append => 'automatic=method:cdrom audit=0 noiswmd rescue' },
'Memory Test' => { command => 'linux16', image => '/boot/memtest', initrd => '' },
],
mbr_boot_img => 'bootloader/images/boot_hybrid.img',
eltorito_img => 'bootloader/images/eltorito.img',
bootx64_efi => 'bootloader/images/bootx64.efi',
},
mount => MGA::DrakISO::Mounts::volatile_squash_union(0),
};
|