[Pkg-iscsi-maintainers] Bug#810702: Generate initiator name on install, not first boot

Christian Seiler christian at iwakd.de
Sun Jan 31 17:59:46 UTC 2016


Control: tags -1 + confirmed pending

I've looked at what d-i does when installing on iSCSI and generating an
initiator name in postinst is mostly harmless. d-i generates its own
initiator name (see iscsi stuff in partman) and the hooks in the
open-iscsi-udeb will copy all the configuration to the host system at
the end of the install.

The thing that changes with this is now that a second iname will be
generated by postinst while installing the package, which will then be
overwritten by the open-iscsi-udeb. But since the initramfs was
generated beforehand, the initiator name in there will be the one
generated by the package installation (that isn't present on the system
anymore) and not the one used by d-i that is now the one on the system.
As soon as the initramfs is regenerated for the first time, the name
will then match the one d-i generated.

This shouldn't be more than a cosmetic issue in my eyes, but maybe we
should change the udeb to update the initramfs as well, just in case.

Regardless, I've committed the patch to git. There was one issue with
it, in that it left an obsolete conffile lying around, because
initiatorname.iscsi is not shipped by open-iscsi anymore. I've created
an additional commit that fixes this, so that there are no obsolete
conffile lying around, because administrators might delete those.

Commits that take care of conffile handling:
https://anonscm.debian.org/cgit/pkg-iscsi/open-iscsi.git/commit/?id=b12b4b9d2fa68bc88c9edfb375299f2636254b53
https://anonscm.debian.org/cgit/pkg-iscsi/open-iscsi.git/commit/?id=690a66e6c89a23bd69c6ec56d1954b207e107241

Anyway, should be part of the next upload.

Regards,
Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-iscsi-maintainers/attachments/20160131/943c5ec7/attachment.sig>


More information about the Pkg-iscsi-maintainers mailing list