mkosi: Store /etc under /usr/share/factory/mkosi
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 May 2023 11:47:43 +0000 (13:47 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 13 May 2023 07:17:15 +0000 (09:17 +0200)
commit724683c27fd35e4828e35320ccfc62f885ca20bc
treef16339499f0123bae8daee5994321db44e58dad6
parent79255d86ba79bd848ef6bf44ba0452c5bf8e77c1
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.
mkosi.presets/20-final/mkosi.extra/usr/lib/tmpfiles.d/99-mkosi.conf [new file with mode: 0644]
mkosi.presets/20-final/mkosi.finalize [new file with mode: 0755]