You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently azure-init assumes that /dev/sr0 location is where the provisioning iso will surface. While this is true many of the times, it's not always the case. For example, in FreeBSD it will be at /dev/cd0. In some special environment, it might show up as /dev/vda1
The right mechanism to find the device is to enumerate block devices and process all devices that have fstype of iso9660 and udf. Because /dev/sr0 will be the correct choice for > 99% of cases, we might default to /dev/sr0 and fall back to enumeration if /dev/sr0 isn't the right choice. See cloud-init handling of this issue for reference
Impact
azure-init won't be able to mount the provisioning iso if the iso isn't showing up at /dev/sr0
Expected behavior
azure-init should be able to find the provisioning iso in all Azure environments
The text was updated successfully, but these errors were encountered:
I am working on this issue.
To avoid running command line tools like blkid, I am trying to write a function that makes use of native Rust crates for getting devices list, like libparted.
Get mounted device name of CDROM at runtime, instead of hard-coding `/dev/sr0`.
Fixes#66
.github: Install libudev-dev package in the default Ubuntu runner, as it is needed by block-utils Rust crate.
.github: Fix syntax error in clippy-linting.yml, like "every step must define a `uses` or `run` key".
Description
Currently azure-init assumes that /dev/sr0 location is where the provisioning iso will surface. While this is true many of the times, it's not always the case. For example, in FreeBSD it will be at /dev/cd0. In some special environment, it might show up as /dev/vda1
The right mechanism to find the device is to enumerate block devices and process all devices that have fstype of iso9660 and udf. Because /dev/sr0 will be the correct choice for > 99% of cases, we might default to /dev/sr0 and fall back to enumeration if /dev/sr0 isn't the right choice. See cloud-init handling of this issue for reference
Impact
azure-init won't be able to mount the provisioning iso if the iso isn't showing up at /dev/sr0
Expected behavior
azure-init should be able to find the provisioning iso in all Azure environments
The text was updated successfully, but these errors were encountered: