]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: Copy packages to the build directory as well
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 3 Jul 2024 12:28:21 +0000 (14:28 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 3 Jul 2024 13:44:27 +0000 (15:44 +0200)
commit690a85b1d4e794af62bca6d1ea530ffc530ee58c
tree5f37f84ea44405ab7b41b9ec84aca4201c79a571
parent2fe6ad5a64bca187712708d41269091c91500a35
mkosi: Copy packages to the build directory as well

With the latest mkosi, mkosi -t none can be used to rerun the build
script without messing with a previously built image. This allows
one to run "mkosi -t disk -f qemu" in one terminal to build and boot
an image in qemu and then run "mkosi -t none" in another terminal to
rebuild the packages. If one then has "RuntimeBuildSources=yes" set
in their mkosi configuration, the build directory is mounted into the
virtual machine, which means that one can then run "dnf upgrade
/work/build/*.rpm" from within the VM to install the new packages.

This allows for quickly iterating on changes without having to rebuild
the image all the time.

We'll probably want to document this at some point, but let's start
with making it possible by copying the built packages to the build directory.
mkosi.images/system/mkosi.conf.d/10-arch/mkosi.build.chroot
mkosi.images/system/mkosi.conf.d/10-centos-fedora/mkosi.build.chroot
mkosi.images/system/mkosi.conf.d/10-debian-ubuntu/mkosi.build.chroot
mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.build.chroot