summaryrefslogtreecommitdiffstats
path: root/config/build.cfg
blob: 5e8c9540459275117dbca056f2a741fec9be635c (plain)
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
82
83
84
sub build_label {
    my ($build) = @_;

    join('-', 'Mageia', $build->{settings}{release}, $build->{settings}{arch});
}

sub build_title {
    my ($build) = @_;

    join(' ', 'Mageia', $build->{settings}{release});
}

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 $config = {
    urpmi_media => {
        enabled_sections    => [ qw(core nonfree) ],
        enabled_subsections => [ 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',
    ],
    package_exclude_lists => [
        'config/pkg-exclude.lst',
        'config/pkg-exclude-to-review.lst',
    ],
    biarch_packages => [
        if_($arch eq 'x86_64', 'grub2-efi')
    ],
    media => {
        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_messages => 'bootloader/messages',
        bootloader_default  => 0,
        bootloader_timeout  => 10,
        bootloader_entries  => [ 'Install Mageia'  => { append => 'automatic=method:cdrom audit=0 noiswmd vga=791 splash quiet' },
                                 'Rescue System'   => { append => 'automatic=method:cdrom audit=0 noiswmd vga=791 rescue' },
                                 'Memory Test'     => { command => 'linux32', image  => '/boot/pcmemtest', initrd => 'none' },
                               ],
        mbr_boot_img        => 'bootloader/images/boot_hybrid.img',
        eltorito_img        => 'bootloader/images/eltorito.img',
        if_($arch eq 'i586',
            iso_part_start  => 1,
            iso_part_type   => '0x17',
            efi_type        => '32bit',
            boot32_efi      => 'bootloader/images/bootia32.efi'
        ),
        if_($arch eq 'x86_64',
            efi_type        => 'all',
            boot32_efi      => 'bootloader/images/bootia32.efi',
            boot64_efi      => 'bootloader/images/bootx64.efi'
        ),
        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/pcmemtest",
            '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",
        ],
        checksums           => [ qw(md5 sha2 sha3) ],
    },
};