summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2016-12-18 09:14:18 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2016-12-18 11:36:54 +0000
commit7fbfd70bd4fdd12e06e336c814d0720682e198ff (patch)
treef754b775ee0e567a8ab511b1ac532844ef39236e
parent1e3611bee44cae58bc5278061e9cabebfbecec71 (diff)
downloaddraklive-config-7fbfd70bd4fdd12e06e336c814d0720682e198ff.tar
draklive-config-7fbfd70bd4fdd12e06e336c814d0720682e198ff.tar.gz
draklive-config-7fbfd70bd4fdd12e06e336c814d0720682e198ff.tar.bz2
draklive-config-7fbfd70bd4fdd12e06e336c814d0720682e198ff.tar.xz
draklive-config-7fbfd70bd4fdd12e06e336c814d0720682e198ff.zip
live.cfg: reduce memory footprint to allow dkms drivers to build (mga#19943).
- don't add online media, that significantly increases urpmi memory use - disable dnf-makecache service, the cache is big
-rw-r--r--config/live.cfg12
1 files changed, 4 insertions, 8 deletions
diff --git a/config/live.cfg b/config/live.cfg
index cc121b0..497acf8 100644
--- a/config/live.cfg
+++ b/config/live.cfg
@@ -220,14 +220,10 @@ my $_l = {
"urpmi.addmedia 'Live Core' /var/local/mga_rpms/core with media_info/hdlist.cz",
"urpmi.addmedia 'Live Nonfree' /var/local/mga_rpms/nonfree with media_info/hdlist.cz",
- # add some online medias to avoid slowdown on initial boot
- # will be replaced with mirrorbrain urls soon-ish
- if_($live->{settings}{arch} eq 'i586',
- "urpmi.addmedia --distrib http://mirrors.kernel.org/mageia/distrib/6/i586/",
- ),
- if_($live->{settings}{arch} eq 'x86_64',
- "urpmi.addmedia --distrib http://mirrors.kernel.org/mageia/distrib/6/x86_64/",
- ),
+ # disable dnf-makecache - it uses too much memory in a Live system
+ # TBD: fix draklive so we can use the disable_services section for this
+ "systemctl disable dnf-makecache.service",
+ "systemctl disable dnf-makecache.timer",
# remove pre-installed grub2, we need to be able to select grub2 vs grub2-efi at install time
"rpm -e --nodeps grub2",