dnsmasq lease: add image tasks for creating tmpfiles.d configuration
Since user move directories in /var/lib aren't deployed in sota images. So create them by systemd's tmpfiles.d. /var/lib/misc is required for dnsmasq lease file. BugzID: 56729 Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
parent
b485212300
commit
3f9a68e40f
|
|
@ -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.
|
# Change the location of /var/lib/rpm to /usr/lib/rpm.
|
||||||
|
|
@ -9,3 +9,10 @@ moveRPMDatabase() {
|
||||||
rm -r var/lib/rpm
|
rm -r var/lib/rpm
|
||||||
echo "L /var/lib/rpm - - - - /usr/lib/rpm" > etc/tmpfiles.d/ostree-rpm.conf
|
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 -
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue