[Unit]
Description=Log apt-ostree Booted Deployment Status To Journal
Documentation=man:apt-ostree(1)
ConditionPathExists=/run/ostree-booted

[Service]
Type=oneshot
ExecStart=/usr/bin/apt-ostree status -b
StandardOutput=journal
StandardError=journal
RemainAfterExit=yes

# Security settings
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ReadWritePaths=/var/lib/apt-ostree
ReadWritePaths=/run/apt-ostree

[Install]
WantedBy=multi-user.target 