Comment 49 for bug 1817321

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

verification done for disco/partman-iscsi.

Use of partman-iscsi/iscsi_auto correctly writes /etc/iscsi/iscsi.initramfs
with either ISCSI_AUTO=true or iSCSI LUN details with the right MAC address.

 ~ # grep 'retrieving partman-iscsi' /var/log/syslog
 Jun 6 14:04:03 anna[1582]: DEBUG: retrieving partman-iscsi 40ubuntu3.19.04.1

With 'partman-iscsi/iscsi_auto=true':

 ~ # debconf-get partman-iscsi/iscsi_auto
 true

 ~ # cat /target/etc/iscsi/iscsi.initramfs
 ISCSI_AUTO=true

With 'partman-iscsi/iscsi_auto=false':

 ~ # debconf-get partman-iscsi/iscsi_auto
 false

 ~ # cat /target/etc/iscsi/iscsi.initramfs
 HWADDR="52:54:00:00:00:02"
 ISCSI_TARGET_NAME="iqn.2019-06.com.example:target1"
 ISCSI_TARGET_IP="10.0.0.1"
 ISCSI_TARGET_PORT="3260"
 ISCSI_TARGET_GROUP="1"

 ~ # ip addr list
 ...
 2: ens3: ...
     link/ether 52:54:00:00:00:01 brd ff:ff:ff:ff:ff:ff
     inet 192.168.122.27/24 brd 192.168.122.255 scope global ens3
 ...
 3: ens4: ...
     link/ether 52:54:00:00:00:02 brd ff:ff:ff:ff:ff:ff
     inet 10.0.0.2/24 brd 10.0.0.255 scope global ens4
 ...