lorenz / torcx-zfs

A torcx module for ZFS on CoreOS
MIT License
16 stars 5 forks source link

Make the build work in CoreOS with systemd-nspawn #5

Closed larstobi closed 5 years ago

larstobi commented 5 years ago

sudo systemd-nspawn --bind=/lib/modules --image=coreos_developer_container.bin https://coreos.com/os/docs/latest/kernel-modules.html#prepare-a-coreos-container-linux-development-container

lorenz commented 5 years ago

Thanks! I'll verify this on my CI to see if there are any regressions. Could you also add the new build method to the README?

larstobi commented 5 years ago

I tried to boot the resulting module, and it has the kernel version in the path, and then insmod can't find the ko, so I have removed the path in the script. WIll update the patch soon.

larstobi commented 5 years ago

I have switched to the flatcar-linux variant of coreos to get more bleeding-edge versions of the software using their edge group. I've made changes to the way I do this, so I'll close this PR and make a new one later.