Multipart MIME user-data format not supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Some may call this a feature request, but I call it a bug, at least in the docs, since they claim Subiquity supports cloud-init user-data, implying it supports ALL of cloud-init user-data, including all standard formats. Here I request that subiquity add support for standard Multipart MIME user-data format, or to more clearly document precisely what kind of user-data it _does_ support and why, or to correct my logic and assumptions and show me how to properly specify and configure and use subiquity to apply a home-grown Multipart MIME formatted user-data to a server install. Thanks in advance for your time, insights, and good work on this useful project!
I've been researching, experimenting and reverse engineering subiquity for the last 2 days trying to understand how to provide my own multipart MIME user-data to subiquity and have fallen short writing the user-data archive (along with its empty meta-data brother) to various folders in my custom iso, custom squashfs, custom initrd. These informed my most recent attempt which was to assume that subiquity doesn't support Multipart MIME _at all_ as a format, and try to embed the archive, as created by the following command:
`cloud-init devel make-mime -a "cloud-
under the `user-data:` clause of my `autoinstall.yaml` file, a la:
```
user-data: |
Content-Type: multipart/mixed; boundary=
MIME-Version: 1.0
--=
Content-Type: text/cloud-config; charset="utf-8"
MIME-Version: 1.0
Content-
Content-
I2Nsb3VkLWN
bwpncm91cHM
ICBwcmltYXJ
aWJ2aXJ0CiA
.
.
.
ZXQpIl0KCiM
d2VyX3N0YXR
bmcgbWFjaGl
--=
Content-Type: text/x-
MIME-Version: 1.0
Content-
Content-
IyEvYmluL2J
bXUrbGlidml
ZXIgb3IgYWJ
.
.
.
fSIgIiR7Vk1
cmV0dXJuZWQ
--=
```
I'm now placing this `autoinstall.yaml` at the root of /cdrom in a (slightly-modified) liveCD iso. The result of this is a crash, indicating this format isn't understood by subiquity as valid `user-data`:
```
2023-09-14 05:10:58,547 DEBUG subiquity.
2023-09-14 05:10:58,556 DEBUG root:37 start: subiquity/
2023-09-14 05:10:58,556 DEBUG root:37 finish: subiquity/
2023-09-14 05:10:58,557 DEBUG root:37 start: subiquity/
2023-09-14 05:10:58,557 DEBUG root:37 finish: subiquity/
2023-09-14 05:10:58,557 DEBUG root:37 start: subiquity/
2023-09-14 05:10:58,557 DEBUG root:37 finish: subiquity/
2023-09-14 05:10:58,557 DEBUG root:37 start: subiquity/
2023-09-14 05:10:58,558 ERROR root:37 finish: subiquity/
.
.
.
```
tags: | added: 22.04.3 |
tags: | added: autoinstall cloud-init user-data |