Closed wuxxin closed 1 year ago
Hmm so you are trying to layer in mkosi
on top of Fedora CoreOS (which version specifically are you using?) and then trying to machinectl import-fs
the created image?
I'm guessing the right place to file an issue would be an SELinux Bugzilla.
for development, i use x86_64 qemu qcow2.xz. with libvirt
after a learning project,using pulumi (a terraform clone), and Fedora-CoreOS (https://github.com/wuxxin/infra-shared) i thought it would be nice to support some legacy virtual machines so i thought nspawn would be a good fit for virtual machines on coreos because
after making a file tree of an os filesystem (with mkosi), instead of import-fs, as a workaround, i simply copy the tree to /var/lib/machines and start the machine using systemd-nspawn
, or machinectl start
.
this works fine, but when i try to use machinectl import-fs
instead for copying the directory tree, because coreos uses selinux in enforcing mode,
it breaks import-fs in a non obvious way (it stalls at the copy operation, without any explanation or obvious error), and is probably wrong, and probably overlooked by selinux policy writers, that machinectl calls systemd-import-fs
which then spawns systemd-importd
.
opened an issue upstream: https://bugzilla.redhat.com/show_bug.cgi?id=2219398 thanks for pointing out the fitting place,closing this.
Platform
Reproduction
If this is not the right repo for this issue, feel free to close/ignore this issue, and point me to a more fitting one.
Related binaries:
Relevant Log Output (formatted for better readability)