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