Cubic appends characters to /etc/os-release and /etc/lsb-release breaking the new automated installation method for Ubuntu
Bug #1910408 reported by
Dan John Cook
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cubic |
Fix Released
|
Low
|
Cubic PPA | ||
cloud-init |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
During the automated installation of an iso, if cloud-init uses the DataSourceNoCloud, then it will check for block devices and read the /etc/os-release and /etc/lsb-release files, parsing them for distribution specific information. However, Cubic appends its own information onto the PRETTY_NAME and DISTRIB_DESCRIPTION lines for those two files, causing cloud-init to break, and any automated provisioning to fail. This can be fixed in cloud-init by using proper os.path.join, or os.sep, etc., but this is unlikely to happen soon. Cubic should provided better documentation about any cute characters it writes into the distribution.
To post a comment you must log in.
I had similar issues with a recent update that modified PRETTY_NAME in os-release. The format of the file is a list of environment-like shell-compatible variable assignments. The value of PRETTY_NAME after being modified was not double-quoted but included spaces which is not compatible with that format. This prevented certain packages from being configured properly during installation and temporarily broke an image I was working with:
PRETTY_ NAME=TEST_ 20210106 customized using Cubic on {date}
until I fixed the value:
PRETTY_ NAME="TEST_ 20210106 customized using Cubic on {date}"
The package was able to successfully install with a properly-formatted value.