]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Do not remount build root as ro in build chroot
authorCornelius Hoffmann <coding@hoffmn.de>
Fri, 13 Oct 2023 07:10:12 +0000 (09:10 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 13 Oct 2023 07:24:00 +0000 (09:24 +0200)
The PR #1970 added an additional volatile overlay to the buildroot, which
currently can only be used from the host, i.e. without mkosi-chroot.
Once mkosi-chroot is run, the build overlay is readonly again.
Fixes https://github.com/systemd/mkosi/issues/1974.

mkosi/__init__.py

index 73df7ec7043592bbda140681c309c52bd961b0b8..0a95671a5896c6e92537b2c04a24f888d3fbf8e8 100644 (file)
@@ -424,7 +424,6 @@ def run_build_scripts(state: MkosiState) -> None:
                     "--setenv", "OUTPUTDIR", "/work/out",
                     "--setenv", "BUILDROOT", "/",
                     *(["--setenv", "BUILDDIR", "/work/build"] if state.config.build_dir else []),
-                    "--remount-ro", "/",
                 ],
             )