Muehlenhoff has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/352105 )

Change subject: Strip nfs-common/rpcbind during jessie base installation
......................................................................

Strip nfs-common/rpcbind during jessie base installation

The initial base installation always install those, but we only want to
explicitly pull them in as needed.

This is fixed in stretch, which has trimmed the size of the base installation
to no longer include NFS.

Trusty isn't covered, it installs a slightly different set of packages
(rpcbind, but not nfs-common) and since we don't reimage that many machines
with trusty, that's not really worth the extra testing.

Bug: T106477
Change-Id: I77b866f2c9dd2f042d12be5fbb7cd2c0ed798c6a
---
M modules/install_server/files/autoinstall/scripts/late_command.sh
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/05/352105/1

diff --git a/modules/install_server/files/autoinstall/scripts/late_command.sh 
b/modules/install_server/files/autoinstall/scripts/late_command.sh
index aa4f8ca..50249ba 100644
--- a/modules/install_server/files/autoinstall/scripts/late_command.sh
+++ b/modules/install_server/files/autoinstall/scripts/late_command.sh
@@ -33,12 +33,16 @@
                ;; \
 esac
 
-# Use a more recent kernel on jessie
+# Use a more recent kernel on jessie and deinstall nfs-common/rpcbind
+# (we don't want these to be installed in general, only pull them in
+# where actually needed. stretch doesn't install nfs-common/rpcbind
+# any longer
 # (the upgrade is to grab our updated firmware packages first for initramfs)
 apt-install lsb-release
 if [ "$(chroot /target /usr/bin/lsb_release --codename --short)" = "jessie" ]; 
then
        in-target apt-get -y upgrade
        apt-install linux-meta-4.9
+       in-target dpkg --purge rpcbind nfs-common
 fi
 
 # Temporarily pre-provision swift user at a fixed UID on new installs.

-- 
To view, visit https://gerrit.wikimedia.org/r/352105
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I77b866f2c9dd2f042d12be5fbb7cd2c0ed798c6a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <mmuhlenh...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to