summaryrefslogtreecommitdiffstats
path: root/config/live.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'config/live.cfg')
-rw-r--r--config/live.cfg62
1 files changed, 28 insertions, 34 deletions
diff --git a/config/live.cfg b/config/live.cfg
index b621369..5847636 100644
--- a/config/live.cfg
+++ b/config/live.cfg
@@ -64,19 +64,17 @@ my $_l = {
[ 'files/50-disable-suspend.pkla', '/etc/polkit-1/localauthority/50-local.d/50-disable-suspend.pkla', { mode => 0644, no_install => 1 } ],
#- make cups the default spooler
[ 'files/defaultspooler', '/etc/foomatic/defaultspooler', { mode => 0644 } ],
- if_(member($live->{settings}{media}, 'CD', 'DVD'),
- #- eject eject cd medium before halt/reboot
- [ 'files/halt-local.service', '/etc/systemd/system/halt-local.service', { mode => 0644, no_install => 1 } ],
- [ 'files/halt.local.CD', '/sbin/halt.local', { mode => 0755, no_install => 1 } ],
- #- do not load usblp and trigger autosetupprintqueues in live since cups is not available
- [ 'files/live.modprobe.CD', '/etc/modprobe.d/live.conf', { mode => 0644, no_install => 1 } ],
- # live media specific initrd
- [ 'files/live-dracut.conf', '/etc/dracut.conf.d/60-live.conf', { mode => 0644, no_install => 1 } ],
- ),
+ #- eject eject medium before halt/reboot
+ [ 'files/halt-local.service', '/etc/systemd/system/halt-local.service', { mode => 0644, no_install => 1 } ],
+ [ 'files/halt.local', '/sbin/halt.local', { mode => 0755, no_install => 1 } ],
+ #- do not load usblp and trigger autosetupprintqueues in live since cups is not available
+ [ 'files/live.modprobe', '/etc/modprobe.d/live.conf', { mode => 0644, no_install => 1 } ],
+ # live media specific initrd
+ [ 'files/live-dracut.conf', '/etc/dracut.conf.d/60-live.conf', { mode => 0644, no_install => 1 } ],
#- disable first boot wizard at live boot
[ 'files/firstboot', '/etc/sysconfig/firstboot', { mode => 0644 } ],
#- enable drakx-finish-install at live boot
- [ "files/finish-install.$live->{settings}{media}", '/etc/sysconfig/finish-install', { mode => 0644 } ],
+ [ "files/finish-install", '/etc/sysconfig/finish-install', { mode => 0644 } ],
# fix for sometimes wrong permissions
[ 'files/draklive-install.d/run.d/home-live-permissions.sh', '/etc/draklive-install.d/run.d/home-live-permissions.sh', { mode => 755 } ],
# fix for /var/lib/gdm sometimes ending up as root:root
@@ -238,29 +236,25 @@ my $_l = {
packs => {
int => [ map { "i18n-$_" } qw(en) ],
},
- if_(member($live->{settings}{media}, 'CD', 'DVD'),
- media => {
- storage => 'cdrom',
- bootloader_timeout => 10,
- boot_entries => [ "live" => " xdriver=free",
- "live-nf" => " nokmsboot",
- "linux" => " install xdriver=free",
- "linux-nf" => " install nokmsboot",
- ],
- if_($live->{settings}{product} =~ /LiveCD|LiveDVD/i,
- source => build_one_label($live),
- pre => [ 'for i in seq 1 5; do showlabels --removable | grep ' . build_one_label($live) . '; if [ $? -eq 0 ]; then break; fi; sleep 1; done' ],
- extra_modules => [ qw(vfat sd_mod usb_storage ehci_hcd ehci_pci ehci_platform ohci_hcd ohci_pci ohci_platform uhci_hcd xhci_hcd xhci_pci xhci_plat_hcd) ],
- files => [
- if_($live->{settings}{arch} eq 'x86_64',
- [ 'files/UEFI/EFI', '' ],
- ),
- # FIXME: add doc and autorun
- #[ 'extra/livecd/autorun/*', ''],
- #map { [ 'extra/livecd/' . $_, $_ ] } qw(LISEZMOI.pdf README.pdf)
- ],
+ media => {
+ storage => 'iso',
+ bootloader_timeout => 10,
+ boot_entries => [ "live" => " xdriver=free",
+ "live-nf" => " nokmsboot",
+ "linux" => " install xdriver=free",
+ "linux-nf" => " install nokmsboot",
+ ],
+ source => build_one_label($live),
+ pre => [ 'for i in seq 1 5; do showlabels --removable | grep ' . build_one_label($live) . '; if [ $? -eq 0 ]; then break; fi; sleep 1; done' ],
+ extra_modules => [ qw(vfat sd_mod usb_storage ehci_hcd ehci_pci ehci_platform ohci_hcd ohci_pci ohci_platform uhci_hcd xhci_hcd xhci_pci xhci_plat_hcd) ],
+ files => [
+ if_($live->{settings}{arch} eq 'x86_64',
+ [ 'files/UEFI/EFI', '' ],
),
- },
- mount => MDV::Draklive::Mounts::volatile_squash_union($use_modules),
- ),
+ # FIXME: add doc and autorun
+ #[ 'extra/livecd/autorun/*', ''],
+ #map { [ 'extra/livecd/' . $_, $_ ] } qw(LISEZMOI.pdf README.pdf)
+ ],
+ },
+ mount => MDV::Draklive::Mounts::volatile_squash_union($use_modules),
};