summaryrefslogtreecommitdiffstats
path: root/config/build.cfg
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin.whitaker.me.uk>2017-12-23 20:19:25 +0000
committerMartin Whitaker <mageia@martin.whitaker.me.uk>2017-12-24 21:56:13 +0000
commitd008f6b961401933b15c95090b95460c22d530fb (patch)
treeeda1ed4d1106bbdc9862f9f6b12e01813d3115d1 /config/build.cfg
downloaddrakclassic-config-d008f6b961401933b15c95090b95460c22d530fb.tar
drakclassic-config-d008f6b961401933b15c95090b95460c22d530fb.tar.gz
drakclassic-config-d008f6b961401933b15c95090b95460c22d530fb.tar.bz2
drakclassic-config-d008f6b961401933b15c95090b95460c22d530fb.tar.xz
drakclassic-config-d008f6b961401933b15c95090b95460c22d530fb.zip
Initial config for building classic installer ISOs using drakclassic.
Diffstat (limited to 'config/build.cfg')
-rw-r--r--config/build.cfg85
1 files changed, 85 insertions, 0 deletions
diff --git a/config/build.cfg b/config/build.cfg
new file mode 100644
index 0000000..f299f04
--- /dev/null
+++ b/config/build.cfg
@@ -0,0 +1,85 @@
+#!/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/pkg-groups.lst',
+ ],
+ group_exclude_lists => [
+ 'config/rpmsrate-tofix.lst',
+ ],
+ package_include_lists => [
+ 'config/pkg-core.lst',
+ if_($arch ne 'x86_64', 'config/pkg-core-32.lst'),
+ if_($arch eq 'x86_64', 'config/pkg-core-64.lst'),
+ 'config/pkg-nonfree.lst',
+ ],
+ package_exclude_lists => [
+ 'config/pkg-exclude.lst',
+ 'config/pkg-exclude-tofix.lst',
+ ],
+ known_conflicts =>
+ 'config/known_conflicts.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' => "files/$arch/install/stage2",
+ '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),
+};