Muehlenhoff has submitted this change and it was merged. ( 
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(-)

Approvals:
  Muehlenhoff: Looks good to me, approved
  jenkins-bot: Verified
  Filippo Giunchedi: Looks good to me, but someone else must approve



diff --git a/modules/install_server/files/autoinstall/scripts/late_command.sh 
b/modules/install_server/files/autoinstall/scripts/late_command.sh
index aa4f8ca..5da5b14 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 (T106477)
 # (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: merged
Gerrit-Change-Id: I77b866f2c9dd2f042d12be5fbb7cd2c0ed798c6a
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <mmuhlenh...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Muehlenhoff <mmuhlenh...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to