From bbd2e7b4ca7b31ad3c4ae82f32eafd91465fd011 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 21 Jun 2018 14:18:48 -0700 Subject: [PATCH] Install 'hostname' in runtime-install (for iSCSI) As explained in detail in the bug, 'hostname' must be installed for the dracut 95iscsi module to work (and thus for key iscsi modules to be included in the initramfs generated by lorax). Up till recently, we got it as a dependency of initscripts, but when network-scripts split from initscripts, the dependency went with it. Now nothing else pulls it in as a dep, so let's just pull it in explicitly here. Resolves: rhbz#1599183 Signed-off-by: Adam Williamson (cherry picked from commit 7f805287ca410ec51288d63f1fa7a0b2d18c3f23) --- share/templates.d/99-generic/runtime-install.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/templates.d/99-generic/runtime-install.tmpl b/share/templates.d/99-generic/runtime-install.tmpl index 41f13a59..8de5c193 100644 --- a/share/templates.d/99-generic/runtime-install.tmpl +++ b/share/templates.d/99-generic/runtime-install.tmpl @@ -95,7 +95,8 @@ installpkg device-mapper-persistent-data installpkg xfsdump ## extra storage packages -installpkg udisks2 udisks2-iscsi +# hostname is needed for iscsi to work, see RHBZ#1593917 +installpkg udisks2 udisks2-iscsi hostname ## extra libblockdev plugins installpkg libblockdev-lvm-dbus