10verity/verity-generator: --restart-on-corruption

This commit is contained in:
Harald Hoyer 2020-03-13 09:02:18 +01:00
parent ea5b4e0da2
commit 90ff0f5a21

View file

@ -68,7 +68,7 @@ if [[ -n "${root}" && -n "${roothash}" ]]; then
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c '/sbin/veritysetup create root ${hashoffset:+--hash-offset="${hashoffset}"} "${root}" "${root}" "${roothash}"'
ExecStart=/bin/sh -c '/sbin/veritysetup --restart-on-corruption create root ${hashoffset:+--hash-offset="${hashoffset}"} "${root}" "${root}" "${roothash}"'
ExecStop=/sbin/veritysetup remove root
EOF