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 ...
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 "52:54: 00:00:00: 02" TARGET_ NAME="iqn. 2019-06. com.example: target1" TARGET_ IP="10. 0.0.1" TARGET_ PORT="3260" TARGET_ GROUP=" 1"
HWADDR=
ISCSI_
ISCSI_
ISCSI_
ISCSI_
~ # 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
...