1 2 3 4 5
if [ $1 -eq 1 ] && sd_booted; then # Initial installation /lib/systemd/systemd-update-helper install-system-units ostree-remount.service || : fi
if [ $1 -eq 0 ] && sd_booted; then # Package removal, not upgrade /lib/systemd/systemd-update-helper remove-system-units ostree-remount.service || : fi