coreos / coreos-installer

Installer for CoreOS disk images
https://coreos.github.io/coreos-installer/
Apache License 2.0
221 stars 92 forks source link

Switch from `lsblk --pairs` to `lsblk --json` #516

Open jlebon opened 3 years ago

jlebon commented 3 years ago

lsblk supports --json, which would be much nicer to work with using serde than to parse the --pairs output using regex.

lucab commented 3 years ago

I think we already had this but we reverted in https://github.com/coreos/coreos-installer/pull/95 because CentOS 7 didn't support that. Did something change in the meanwhile and we are reinstating this?

jlebon commented 3 years ago

I think we already had this but we reverted in #95 because CentOS 7 didn't support that. Did something change in the meanwhile and we are reinstating this?

Thanks for bringing this up! I wasn't aware of this.

We discussed this during open discussion and since we haven't had CentOS/RHEL7 at all on our radar, it's possible that compatibility for it broke a long time ago already. The proposed path forward is:

At least EPEL it seems has been receiving the latest Rust updates together with Fedora, so it shouldn't be limited by the toolchain.

nikita-dubrovskii commented 3 years ago

So, bad news:

Update 13.10.2021:

jlebon commented 3 years ago

Ahh thanks for testing @nikita-dubrovskii. In that case, let's hold this off as discussed. We should open a separate ticket for adding it to CI.