diff --git a/recipes-core/images/includes/image-preprocessing.inc b/recipes-core/images/includes/image-preprocessing.inc index 7e88345..86477b5 100644 --- a/recipes-core/images/includes/image-preprocessing.inc +++ b/recipes-core/images/includes/image-preprocessing.inc @@ -1,4 +1,4 @@ -IMAGE_PREPROCESS_COMMAND_sota += " moveRPMDatabase;" +IMAGE_PREPROCESS_COMMAND_sota += " moveRPMDatabase; dnsmasqlease;" # Change the location of /var/lib/rpm to /usr/lib/rpm. @@ -9,3 +9,10 @@ moveRPMDatabase() { rm -r var/lib/rpm echo "L /var/lib/rpm - - - - /usr/lib/rpm" > etc/tmpfiles.d/ostree-rpm.conf } + +dnsmasqlease() { + cd ${WORKDIR}/rootfs + mkdir -p var/lib/misc + echo "d /var/lib/misc 0755 - - -" > etc/tmpfiles.d/dnsmasq-leasesdir.conf + cd - +}