summaryrefslogtreecommitdiffstats
path: root/examples/minimal/config/build.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'examples/minimal/config/build.cfg')
-rwxr-xr-x[-rw-r--r--]examples/minimal/config/build.cfg69
1 files changed, 32 insertions, 37 deletions
diff --git a/examples/minimal/config/build.cfg b/examples/minimal/config/build.cfg
index 79e2fe8..03b12b1 100644..100755
--- 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(),
};