#!/bin/bash # mkosi.finalize keeps the /etc that the packages and mkosi.extra/etc made in # /usr/share/factory/etc, because the image ships only /usr. At boot, # mkosi.extra/usr/lib/tmpfiles.d/factory-etc.conf links from it what /etc needs. set -euo pipefail cp -a --no-target-directory --update=none "$BUILDROOT/etc" \ "$BUILDROOT/usr/share/factory/etc"