[Unit] | |
Description=RAUC Good-marking Service | |
ConditionKernelCommandLine=|rauc.slot | |
Requires=multi-user.target | |
After=multi-user.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStartPre=/bin/sh -c '[ "$(/bin/systemctl list-units --failed --all --no-legend --no-pager)" == "" ]' | |
ExecStart=/usr/bin/rauc status mark-good | |
[Install] | |
WantedBy=multi-user.target |