add swap device timeout as a fallback

The previous commit works around a long term systemd bug which recently
began impacting us again. If the workaround stops working, the behavior
should not be stalling boot forever. Swap isn't needed for our servers
to function so it shouldn't break them if it can't be set up.
This commit is contained in:
Daniel Micay 2025-10-29 22:47:01 -04:00
parent 8340cf2813
commit e6db6a15e6
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
/dev/md/root / xfs defaults 0 0
/dev/md/boot /boot vfat rw,nosuid,nodev,noexec,fmask=0177,dmask=0077 0 2
/dev/mapper/swap none swap defaults 0 0
/dev/mapper/swap none swap x-systemd.device-timeout=30 0 0
tmpfs /etc/session-ticket-keys tmpfs size=1M,mode=750,gid=tls,noswap,x-systemd.before=create-session-ticket-keys.service,x-systemd.required-by=create-session-ticket-keys.service 0 0

View file

@ -1,2 +1,2 @@
/dev/mapper/swap none swap defaults 0 0
/dev/mapper/swap none swap x-systemd.device-timeout=30 0 0
tmpfs /etc/session-ticket-keys tmpfs size=1M,mode=750,gid=tls,noswap,x-systemd.before=create-session-ticket-keys.service,x-systemd.required-by=create-session-ticket-keys.service 0 0