run_qemu.sh: print warning that --ndctl-build never worked incrementally #76
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The update_existing_rootfs() function is part of a hidden shortcut that does not run mkosi. It had a tentative feature that wanted to invoke rsync to update
ndctl
sources in the existing image. That ndctl shortcut never actually did anything!$ndctl
is undefined or ill-defined because --ndctl-build is ON by default and$ndctl
is in practice used as the actual ndctl "switch".This feature apparently never worked and always left outdated sources silently. That's because the mount point requires root access, which made the
test [ -d qbuild/mnt/root/ndctl ]
always return false - without any message!Even if that
rsync
had worked (with the appropriate "sudose"), sources would still have not been compiled; there was no attempt to compile. This would have left binaries out of date with sources inside the image, been inconsistent with building from scratch and would have been very confusing and dangerous too.Compiling and installing requires the container/chroot which is currently available "for free" when building from scratch. But it is not straight-forward in the shortcut case.
Speaking of containers, support for mkosi v15 and above in the other, main ndctl deployment code path (from scratch or with
-r img
) requires container-related changes in mkosi.postinst. See v15 commit systemd/mkosi@9b626c647037bc8a). These unrelated and upcoming changes will hopefully make it easier to finally implement this feature.