Disabling auto-dsck systemd service
I have my /boot partition on a removable USB device. When the device is removed, which I tend to do as I have a dearth of USB ports, and the auto-scheduled systemd fsck service runs, it fails spectacularly by shutting down X and dropping me to a virtual console. From here I have to reboot to recover.
I've tried disabling the systemd-fsck@dev-disk-by\x2duuid-[SNIP].service
but this doesn't work.
As it stands now, I must leave in the usb stick else be interrupted by a complete system shutdown every so often.
How can I effectively disable this service or, even better, make it fail silently if it can't locate my /boot device?
If I understand correctly, systemd-fsck is only run at boot, not periodically while the system is running.
I suggest you check the system log/journal when that occurs to figure out what's happening exactly.
(Having /boot on a removable USB device which you remove while the system is running is bound to cause problems; one scenario off of the top of my head is if you update the system and there's a new kernel it'll fail since it can't generate the inistramfs).
I'm aware of the implications of updates when running with /boot on a separate USB device, that's not an issue. Anyways, I'll reproduce this issue and see if I can salvage the journal when it happens and post it here.