From 13e9dc0089587a7db482729b4cf8e920d72806d4 Mon Sep 17 00:00:00 2001 From: Victor Tapia Date: Tue, 19 Sep 2017 11:03:29 +0200 Subject: [PATCH] live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot: generate iSCSI Initiator Name at first iscsid run for cloud images to ensure it is unique (LP: #1444992). --- debian/changelog | 9 +++++++++ live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100755 live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot diff --git a/debian/changelog b/debian/changelog index 576982cd..3080d6f1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +livecd-rootfs (2.408.19) xenial; urgency=medium + + [ Nishanth Aravamudan ] + * live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot: generate iSCSI + Initiator Name at first iscsid run for cloud images to ensure it is + unique (LP: #1444992). + + -- Victor Tapia Tue, 19 Sep 2017 10:55:11 +0200 + livecd-rootfs (2.408.18) xenial; urgency=medium [ Robert C Jennings ] diff --git a/live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot b/live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot new file mode 100755 index 00000000..ba9b51e6 --- /dev/null +++ b/live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot @@ -0,0 +1,9 @@ +#!/bin/bash +# +# Set InitiatorName to be runtime generated when iscsid first starts, so +# that each cloud image gets a unique value +# + +if [ -f /etc/iscsi/initiatorname.iscsi ]; then + echo "GenerateName=yes" > /etc/iscsi/initiatorname.iscsi +fi