From e6db6a15e6b5557f20304fc4040572c39deffb9a Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 29 Oct 2025 22:47:01 -0400 Subject: [PATCH] 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. --- etc/fstab.metal | 2 +- etc/fstab.virtual | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/fstab.metal b/etc/fstab.metal index 5848453..fec4910 100644 --- a/etc/fstab.metal +++ b/etc/fstab.metal @@ -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 diff --git a/etc/fstab.virtual b/etc/fstab.virtual index 6aac9b3..bd10ef5 100644 --- a/etc/fstab.virtual +++ b/etc/fstab.virtual @@ -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