From 918cf2c29d0ad0f555980d168abbddaf122a6ed3 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 8 Feb 2022 18:32:07 -0800 Subject: [PATCH] runtime-cleanup: drop mtools and glibc-gconv-extra AFAICS, this dep chain (syslinux->mtools->glibc-gconv-extra) is the only reason glibc-gconv-extra is in the installer env. It's quite large (8M). syslinux's dep on mtools seems to be due to (one of) its installer(s) using mtools, but I don't think we ever run that from the installer env; we only pull syslinux into it to set up bootloader stuff for the installer image itself, which happens in x86.tmpl and doesn't involve actually running a syslinux installer, just copying files around. Signed-off-by: Adam Williamson --- share/templates.d/99-generic/runtime-cleanup.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl index 9156e109..c75dd4b6 100644 --- a/share/templates.d/99-generic/runtime-cleanup.tmpl +++ b/share/templates.d/99-generic/runtime-cleanup.tmpl @@ -45,6 +45,11 @@ removefrom isomd5sum --allbut /usr/bin/checkisomd5 ## and there's no need for a bunch of zsh files without zsh removefrom systemd /usr/share/zsh/site-functions/* +## we only need syslinux to make the installer image bootable, we don't +## run anything from it that uses mtools, and that's the only thing +## that pulls in glibc-gconv-extra +removepkg mtools glibc-gconv-extra + ## various other things we remove to save space removepkg diffutils file removepkg libasyncns