opendevreview | Jay Faulkner proposed openstack/diskimage-builder master: [doc] Document expected environment for dib https://review.opendev.org/c/openstack/diskimage-builder/+/942466 | 15:49 |
---|---|---|
clarkb | JayF: re ^ I suspect the biggest issue running things on say OSX or even FreeBSD et al is the filesystem and loopback manipulation. Wondering if that notice could even be a bit stronger as a result | 15:51 |
clarkb | I think the warning is a good one to have though | 15:51 |
JayF | I tried out a couple of different wordings | 15:52 |
JayF | it's hard to express without writing a book | 15:52 |
JayF | clarkb: can you generally expect to be able to chroot and run linux-compiled code on a mac? I think not? | 15:52 |
JayF | clarkb: at least FreeBSD has a linux emulation layer, so it has a chance | 15:52 |
JayF | and the cross-compiliation, you can do it, you just have to BYO-emulation (ala https://wiki.gentoo.org/wiki/Embedded_Handbook/General/Compiling_with_QEMU_user_chroot ) | 15:53 |
clarkb | I think osx also has a binary compatibility tool like freebsd but ya its not a thing that would work out of the box on either platform I do't think | 15:53 |
JayF | we could probably write a whole doc on environmental tricks and requirements tbh | 15:53 |
clarkb | but even if you solved that then you've got the ext4 and xfs and loopback mounting stuff to contend with | 15:53 |
JayF | because that qemu user chroot stuff is supported on almost every OS | 15:53 |
JayF | and is a reasonable way to cross-compile | 15:53 |
JayF | or you could use containers | 15:53 |
JayF | there are lots of options if you're on something !linux | 15:54 |
JayF | I'd ask we merge that and I can file a bug saying "document the myriad of environments DIB could be expected to run in or not run in" | 15:54 |
clarkb | I was thinking of going the other direction fwiw | 15:54 |
JayF | IDK what you mean? | 15:54 |
clarkb | I was trying to say we should be stronger and just say "Diskimage builder and its elements require a linux runtime" | 15:54 |
JayF | I think that's saying something weaker than I am | 15:55 |
JayF | bceause that doesn't mention CPU arch | 15:55 |
clarkb | oh I would keep that | 15:55 |
clarkb | I'm just talking about the first bit which implies you can run it elsewhere or if you use the correct elements you can | 15:55 |
JayF | "DIB requires the ability to execute linux code intended for the target architecture of your image" | 15:55 |
JayF | ? | 15:55 |
JayF | I can revise if that sounds better to you? | 15:55 |
JayF | I think "runtime" is going to trip some people up tbh | 15:56 |
clarkb | well ist not even linux code it requires a linux kernel for mounting. I'm startying to see how this is tricky to state in one sentence and be accurate | 15:56 |
JayF | yeah | 15:56 |
JayF | that's why I'd ask we consider what I have (or some version of it) better than existing docs and land it | 15:56 |
JayF | and let me take a swing at a dedicated page when I have time | 15:56 |
clarkb | I think the part I don't like is "Most dib elements..." as it implies you can run it with a special selection of elements | 15:56 |
clarkb | and ya I think what you have is an improvement | 15:56 |
JayF | take that for a spin | 15:58 |
opendevreview | Jay Faulkner proposed openstack/diskimage-builder master: [doc] Document expected environment for dib https://review.opendev.org/c/openstack/diskimage-builder/+/942466 | 15:58 |
clarkb | ++ | 15:58 |
JayF | and I can see an easy late addition of an entire page around environments to run dib in that we could link from there | 15:58 |
clarkb | that should leave enough of a door for the truly adventurous to set up qemu or whatever compat layer they want while pointing people at the base requirements | 15:59 |
JayF | with a table of environments and how likely they are to work (green/yellow/red) | 15:59 |
JayF | for people who are advanced users and willing to do spicy things like use a container (not spicy) or setup binfmt_misc+qemu (muy caliente) | 15:59 |
opendevreview | Merged openstack/diskimage-builder master: [doc] Document expected environment for dib https://review.opendev.org/c/openstack/diskimage-builder/+/942466 | 18:00 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!