Added a path watching unit
This commit is contained in:
parent
47f2bd106e
commit
1bc1c0e5f7
@ -4,7 +4,13 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384
|
|||||||
SECTION = ""
|
SECTION = ""
|
||||||
DEPENDS = ""
|
DEPENDS = ""
|
||||||
|
|
||||||
SRC_URI = "file://initrd-release file://crypttab file://11-dm.rules file://citadel-rootfs-mount.service"
|
SRC_URI = "\
|
||||||
|
file://initrd-release \
|
||||||
|
file://crypttab \
|
||||||
|
file://11-dm.rules \
|
||||||
|
file://citadel-rootfs-mount.path \
|
||||||
|
file://citadel-rootfs-mount.service \
|
||||||
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
@ -17,6 +23,7 @@ do_install() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
install -d ${D}${systemd_system_unitdir}
|
install -d ${D}${systemd_system_unitdir}
|
||||||
|
#install -m 644 ${WORKDIR}/citadel-rootfs-mount.path ${D}${systemd_system_unitdir}
|
||||||
install -m 644 ${WORKDIR}/citadel-rootfs-mount.service ${D}${systemd_system_unitdir}
|
install -m 644 ${WORKDIR}/citadel-rootfs-mount.service ${D}${systemd_system_unitdir}
|
||||||
install -d ${D}${sysconfdir}
|
install -d ${D}${sysconfdir}
|
||||||
install -m 644 ${WORKDIR}/initrd-release ${D}${sysconfdir}
|
install -m 644 ${WORKDIR}/initrd-release ${D}${sysconfdir}
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Watch for new entries in /dev/mapper
|
||||||
|
|
||||||
|
[Path]
|
||||||
|
PathChanged=/dev/mapper
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=initrd-root-fs.target
|
@ -3,6 +3,5 @@ Description=Mount citadel rootfs
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=no
|
||||||
|
|
||||||
ExecStart=/bin/sh -c 'echo "hello world"'
|
ExecStart=/bin/sh -c 'echo "hello world"'
|
||||||
|
Loading…
Reference in New Issue
Block a user