Filippo Giunchedi has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/198227

Change subject: install-server: upgrade kernel on swift HP machines
......................................................................

install-server: upgrade kernel on swift HP machines

the raid controller needs a newer kernel which trusty doesn't ship by default
(the installer we use however does, so installation works)

Bug: T90922
Change-Id: Ica0aa7238b22a1883c49a30476343c77e0c7b0a1
---
M modules/install-server/files/autoinstall/scripts/late_command
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/27/198227/1

diff --git a/modules/install-server/files/autoinstall/scripts/late_command 
b/modules/install-server/files/autoinstall/scripts/late_command
index af3e609..07b46a1 100644
--- a/modules/install-server/files/autoinstall/scripts/late_command
+++ b/modules/install-server/files/autoinstall/scripts/late_command
@@ -38,5 +38,14 @@
                apt-install linux-image-3.19
                mke2fs -F -F -t ext4 -T huge -m 0 -L sda3-varnish /dev/sda3
                mke2fs -F -F -t ext4 -T huge -m 0 -L sdb3-varnish /dev/sdb3
-               ;; \
+               ;;
+       # upgrade kernel on HP swift machines, raid controller is not 
recognized by
+       # trusty' stock kernel
+       ms-be101[678])
+               mount -t sysfs none /target/sys
+               mount -t proc none /target/proc
+               chroot /target apt-get -y install linux-image-generic
+               umount /target/sys
+               umount /target/proc
+               ;;
 esac

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica0aa7238b22a1883c49a30476343c77e0c7b0a1
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>

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

Reply via email to