mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
mycroft: Run the files from /var
To avoid errors when running on a read only /lib/ file system copy the files to /var and run mycroft from there. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
74aa0be637
commit
d8e71b65a8
@@ -5,7 +5,8 @@ After=systemd-user-sessions.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=@LIBDIR@/mycroft/dev_setup.sh --allow-root
|
ExecStart=cp -rf @LIBDIR@/mycroft /var/
|
||||||
|
ExecStart=/var/mycroft/dev_setup.sh --allow-root
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ After=mycroft-setup.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
WorkingDirectory=@LIBDIR@/mycroft
|
WorkingDirectory=/var/mycroft
|
||||||
ExecStartPre=mkdir -p /var/log/mycroft
|
ExecStartPre=mkdir -p /var/log/mycroft
|
||||||
ExecStart=@LIBDIR@/mycroft/start-mycroft.sh all
|
ExecStart=/var/mycroft/start-mycroft.sh all
|
||||||
ExecStop=@LIBDIR@/mycroft/stop-mycroft.sh all
|
ExecStop=/var/mycroft/stop-mycroft.sh all
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ inherit systemd
|
|||||||
|
|
||||||
# Mycroft installs itself on the host
|
# Mycroft installs itself on the host
|
||||||
# Just copy the setup files to the rootfs
|
# Just copy the setup files to the rootfs
|
||||||
|
# The mycroft-setup service will copy the files to /var/ where we run them from
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${libdir}/
|
install -d ${D}${libdir}/
|
||||||
cp -r ${B} ${D}${libdir}/mycroft
|
cp -r ${B} ${D}${libdir}/mycroft
|
||||||
|
|||||||
Reference in New Issue
Block a user