[Unit] Description=Optimizing pacman hooks [Service] Type=oneshot ExecStart=bash -c "grep -qE 'subvol=@\/.snapshots\/[0-9]+\/snapshot' /proc/cmdline || mount --bind /dev/null /usr/share/libalpm/hooks/01-snapshot-reject.hook" [Install] WantedBy=multi-user.target