mirror of
https://github.com/fscotto/infra.git
synced 2026-11-26 13:49:52 +00:00
Fix ai-media automount
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Recover the ai-media bind automount after an unavailable Backup volume
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=/usr/bin/sleep 3
|
||||
ExecStart=/usr/bin/bash -c '/usr/bin/systemctl restart "$(/usr/bin/systemd-escape -p --suffix=automount {{ desktop_ai_media_root }})"'
|
||||
@@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=On-demand ai-media bind mount from the Backup LUKS volume
|
||||
ConditionPathIsDirectory={{ desktop_ai_media_root }}
|
||||
OnFailure=ai-media-bind-restarter.service
|
||||
|
||||
[Automount]
|
||||
Where={{ desktop_ai_media_root }}
|
||||
|
||||
Reference in New Issue
Block a user