diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-07-12 16:42:00 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-07-15 16:17:33 +0200 |
commit | 54ab97e59dfa048dd563e2918b594db267efd698 (patch) | |
tree | 0b122f76b89f13b6ff0863d80d2f3d8a82edba8c /mkosi.images/build/mkosi.conf.d | |
parent | test: do not attempt to set xattr on tmpfs (diff) | |
download | systemd-54ab97e59dfa048dd563e2918b594db267efd698.tar.xz systemd-54ab97e59dfa048dd563e2918b594db267efd698.zip |
mkosi: Extend arch build script comment about symlinks
Diffstat (limited to 'mkosi.images/build/mkosi.conf.d')
-rwxr-xr-x | mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot b/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot index 7798e78dda..444f069b6f 100755 --- a/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot +++ b/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot @@ -11,10 +11,13 @@ if [[ ! -f "pkg/$ID/PKGBUILD" ]]; then fi # We can't configure the source or build directory so we use symlinks instead to make sure they are in the -# expected locations. +# expected locations. Because we run with --noextract we are responsible for making sure the source files +# appear in src/. This means not only the systemd source directory, but also the patches and configuration +# files that are shipped in the packaging repository. To achieve this, instead of symlinking the systemd +# sources and build directory directly into "pkg/$ID/src", we symlink them into "pkg/$ID" and then symlink +# "pkg/$ID" to "pkg/$ID/src". ln --symbolic "$SRCDIR" "pkg/$ID/systemd" ln --symbolic "$BUILDDIR" "pkg/$ID/build" -# Because we run with --noextract we are responsible for making sure the source files appear in src/. ln --symbolic . "pkg/$ID/src" MKOSI_CFLAGS="-O0 -Wp,-U_FORTIFY_SOURCE" |