From d7e2067fdbaaddbeb545dd981344437d9051921c Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 2 Apr 2018 22:32:46 +0100 Subject: Update and improve the examples. --- examples/minimal/config/build.cfg | 69 +++++++++++++++++------------------- examples/minimal/config/settings.cfg | 2 +- 2 files changed, 33 insertions(+), 38 deletions(-) mode change 100644 => 100755 examples/minimal/config/build.cfg (limited to 'examples/minimal') diff --git a/examples/minimal/config/build.cfg b/examples/minimal/config/build.cfg old mode 100644 new mode 100755 index 79e2fe8..03b12b1 --- a/examples/minimal/config/build.cfg +++ b/examples/minimal/config/build.cfg @@ -3,7 +3,7 @@ my $distro = $build->{settings}{distro}; my $version = $build->{settings}{version}; my $product = $build->{settings}{product}; -my $desktop = $build->{settings}{desktop}; +my $type = $build->{settings}{type}; my $arch = $build->{settings}{arch}; my $default_user = $build->{settings}{default_user}; @@ -12,18 +12,19 @@ my @user_config_dirs = ('/etc/skel', '/home/' . $default_user); sub build_label { my ($build) = @_; - join('-', $distro, $version, $product, $desktop, $arch); + join('-', $distro, $version, $product, $type, $arch); } sub build_title { my ($build) = @_; - join(' ', $distro, $version, $product, $desktop); + join(' ', $distro, $version, $product, $type); } my $default_append = 'root=mgalive:LABEL=' . build_label($build) . ' noiswmd audit=0 rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0'; -my $_l = { +my $config = { + name_fields => [ qw(distro version product type arch) ], system => { enabled_media => [ 'Core Release', @@ -34,20 +35,18 @@ my $_l = { rpmsrate_flags => [ 'LIVE', - (map { "CAT_$_" } ( - # internet - qw(NETWORKING_FILE_TRANSFER NETWORKING_DNS), - # network - qw(NETWORKING_REMOTE_ACCESS NETWORKING_FILE), - # config - qw(CONFIG), - # console - qw(EDITORS TERMINALS TEXT_TOOLS SHELLS FILE_TOOLS), - # system - qw(SYSTEM MINIMAL_DOCS), - )) + # internet + qw(CAT_NETWORKING_FILE_TRANSFER CAT_NETWORKING_DNS), + # network + qw(CAT_NETWORKING_REMOTE_ACCESS CAT_NETWORKING_FILE), + # config + qw(CAT_CONFIG), + # console + qw(CAT_EDITORS CAT_TERMINALS CAT_TEXT_TOOLS CAT_SHELLS CAT_FILE_TOOLS), + # system + qw(CAT_SYSTEM CAT_MINIMAL_DOCS), ], - compssListLevel => 5, + rpmsrate_level => 5, include_packages => [ # Satisfy the basesystem bootloader requirement. @@ -84,8 +83,8 @@ my $_l = { # Not wanted 'hunspell-dictionary', ], - preferred_packages => [ - ], +# preferred_packages => [ +# ], local_repo_packages => [ # core 'broadcom-bcma-config', @@ -102,8 +101,8 @@ my $_l = { # Slows down basic usage and install, reenabled after install. qw(crond msec), ], - disable_timers => [ - ], +# disable_timers => [ +# ], files => [ # Clean configuration files. [ 'files/empty.conf', '/etc/dracut.conf.d/51-mageia-resume.conf', { mode => 0644 } ], @@ -132,8 +131,8 @@ my $_l = { "/var/lib/dbus/machine-id", "/etc/ssh/ssh_host_*", ], - patches => [ - ], +# patches => [ +# ], final_fixes => join(';', # Enable the set-lang-kbd service. "systemctl enable set-lang-kbd.service", @@ -146,19 +145,13 @@ my $_l = { vga_mode => 788, }, loopbacks => { - exclude => { - type => 'squashfs', - files => [ - { path => '/root/drakx' }, - ], - }, - }, - regions => { - # the "all" region has a magical behavior and selects all langs + exclude => [ + { path => '/root/drakx' }, + ], }, - copy_from_repo => [ - 'isolinux/memtest' => "boot/memtest", - ], +# regions => { +# # the "all" region has a magical behavior and selects all langs +# }, media => { storage => 'iso', label => build_label($build), @@ -175,7 +168,7 @@ my $_l = { ' + use non-free video drivers (slower to boot)' => { append => $default_append . ' nokmsboot' }, 'Install Mageia Live' => { append => $default_append . ' xdriver=free install' }, ' + use non-free video drivers (slower to boot)' => { append => $default_append . ' nokmsboot install' }, - 'Memory Test' => { command => 'linux16', image => '/boot/memtest', initrd => '' }, + 'Memory Test' => { command => 'linux16', image => '/boot/memtest', initrd => 'none' }, ], mbr_boot_img => '/usr/share/drakiso-bootloader/images/boot_hybrid.img', eltorito_img => '/usr/share/drakiso-bootloader/images/eltorito.img', @@ -187,6 +180,8 @@ my $_l = { efi_type => '64bit', boot64_efi => '/usr/share/drakiso-bootloader/images/bootx64.efi' ), + copy_from_repo => [ + 'isolinux/memtest' => 'boot/memtest', + ], }, - mount => MGA::DrakISO::Mounts::volatile_squash_union(), }; diff --git a/examples/minimal/config/settings.cfg b/examples/minimal/config/settings.cfg index a843ac7..8a531c9 100644 --- a/examples/minimal/config/settings.cfg +++ b/examples/minimal/config/settings.cfg @@ -1,7 +1,7 @@ vendor=Custom distro=Mageia product=Live -desktop=Minimal +type=Minimal version=6 arch=x86_64 region=all -- cgit v1.2.1