forked from brl/citadel
Improvements to appimg container launching
This commit is contained in:
parent
a2b59334d5
commit
6151468d69
@ -0,0 +1,5 @@
|
||||
[Unit]
|
||||
Description=Wait for creation of /run/user/1000/pulse/native
|
||||
|
||||
[Path]
|
||||
PathExists=/run/user/1000/pulse/native
|
@ -9,6 +9,3 @@ KillMode=mixed
|
||||
Type=notify
|
||||
RestartForceExitStatus=133
|
||||
SuccessExitStatus=133
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,6 +1,20 @@
|
||||
[Exec]
|
||||
Boot=true
|
||||
|
||||
[Files]
|
||||
BindReadOnly=/usr/share/themes/Adapta
|
||||
BindReadOnly=/usr/share/themes/Adapta-Eta
|
||||
BindReadOnly=/usr/share/themes/Adapta-Nokto
|
||||
BindReadOnly=/usr/share/themes/Adapta-Nokto-Eta
|
||||
BindReadOnly=/usr/share/icons/Paper
|
||||
|
||||
Bind=/storage/user-data/primary-home:/home/user
|
||||
BindReadOnly=/storage/citadel-state/resolv.conf:/etc/resolv.conf
|
||||
|
||||
Bind=/dev/snd
|
||||
Bind=/dev/shm
|
||||
Bind=/run/user/1000/pulse:/run/user/host/pulse
|
||||
|
||||
#Bind=/run/user/1000/wayland-0:/run/user/host/wayland-0
|
||||
#Bind=/dev/kvm
|
||||
|
||||
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Watch Just watching Run User
|
||||
After=run-user-1000.mount
|
||||
Requires=run-user-1000.mount
|
||||
|
||||
[Path]
|
||||
PathExists=/run/user/1000
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Watch run-user service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/systemctl --no-block start primary-user-appimg.path
|
@ -7,16 +7,25 @@ DEPENDS = ""
|
||||
|
||||
inherit systemd
|
||||
|
||||
SRC_URI = "file://primary-user-appimg.service file://primary.nspawn file://run-in-image"
|
||||
SRC_URI = "file://primary-user-appimg.path file://primary-user-appimg.service file://primary.nspawn file://watch-run-user.path file://watch-run-user.service file://run-in-image"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
SYSTEMD_SERVICE_${PN} = "primary-user-appimg.service"
|
||||
SYSTEMD_SERVICE_${PN} = "watch-run-user.path"
|
||||
RDEPENDS_${PN} = "bash"
|
||||
|
||||
FILES_${PN} += "\
|
||||
${systemd_system_unitdir}/watch-run-user.service \
|
||||
${systemd_system_unitdir}/primary-user-appimg.path \
|
||||
${systemd_system_unitdir}/primary-user-appimg.service \
|
||||
"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 644 ${WORKDIR}/primary-user-appimg.path ${D}${systemd_system_unitdir}
|
||||
install -m 644 ${WORKDIR}/primary-user-appimg.service ${D}${systemd_system_unitdir}
|
||||
install -m 644 ${WORKDIR}/watch-run-user.path ${D}${systemd_system_unitdir}
|
||||
install -m 644 ${WORKDIR}/watch-run-user.service ${D}${systemd_system_unitdir}
|
||||
install -d ${D}${sysconfdir}/systemd/nspawn
|
||||
install -m 644 ${WORKDIR}/primary.nspawn ${D}${sysconfdir}/systemd/nspawn
|
||||
install -d ${D}${libexecdir}
|
||||
|
Loading…
Reference in New Issue
Block a user