1
0
Fork 0
mirror of synced 2024-11-05 01:39:00 -05:00
garuda-common-settings/usr/lib/systemd/system/garuda-pacman-snapshot-reject.service

10 lines
264 B
SYSTEMD
Raw Normal View History

[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