diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-09 13:47:43 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-13 09:17:15 +0200 |
commit | 724683c27fd35e4828e35320ccfc62f885ca20bc (patch) | |
tree | f16339499f0123bae8daee5994321db44e58dad6 /mkosi.presets/20-final/mkosi.finalize | |
parent | mkosi: Do not enable ACL usage by default (diff) | |
download | systemd-724683c27fd35e4828e35320ccfc62f885ca20bc.tar.xz systemd-724683c27fd35e4828e35320ccfc62f885ca20bc.zip |
mkosi: Store /etc under /usr/share/factory/mkosi
If we're making a /usr only image, we still want to populate /etc
fully on first boot. To make that possible, let's copy /etc to
/usr/share/factory/mkosi in a finalize script, which runs after
all changes to the image have been made. Let's also add a tmpfiles
snippet that merges /usr/share/factory/mkosi with /etc on boot to
populate /etc.
Diffstat (limited to 'mkosi.presets/20-final/mkosi.finalize')
-rwxr-xr-x | mkosi.presets/20-final/mkosi.finalize | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mkosi.presets/20-final/mkosi.finalize b/mkosi.presets/20-final/mkosi.finalize new file mode 100755 index 0000000000..74b810c152 --- /dev/null +++ b/mkosi.presets/20-final/mkosi.finalize @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later + +cp --archive --recursive --no-target-directory --reflink=auto "$BUILDROOT"/etc "$BUILDROOT"/usr/share/factory/mkosi |