Swap Timed out waiting for device dev-disk-by\x2dlabel-swap.device on boot

Hello, I’m getting my system ready to upgrade from 42.3 to 15.0
My /boot partition was rather small at 127MB so I successfully resized it to 800MB ready for the upgrade.

To do this I had to delete and recreate my /swap partition a bit smaller.
The swap partition is now working correctly but I’m getting this error / 1min 30s timeout when booting

TIME ] Timed out waiting for device dev-disk-by\x2dlabel-swap.device.min 30s / 1min 30s)
[DEPEND] Dependency failed for Resume from hibernation using device /dev/disk/by-label/swap.

I found this help
https://www.linuxquestions.org/questions/suse-opensuse-60/opensuse-leap-15-timed-out-waiting-for-device-dev-disk-by\x2did-ata-4175632632/

which suggests it’s to do with resume settings in grub
/etc/default/grub - ref to a swap file in the line “GRUB_CMDLINE_LINUX…”

before the change my fstab was
conserv3tb:/etc # cat fstab.asb.old
UUID=2c77c8a3-fcfa-416e-b908-176961b44fd3 / ext4 noatime,acl,user_xattr 1 1
/dev/mapper/cr_enc5 /enc5 ext4 acl,user_xattr,nofail 0 2
UUID=d296033d-7ce8-464e-9164-7468c233ec43 /boot ext4 noatime,acl,user_xattr 1 2
UUID=1ddc0676-9f9f-493e-a164-8c771c02a82f swap swap defaults 0 0
/dev/md0 /home ext4 acl,user_xattr 1 2

fstab is now
UUID=2c77c8a3-fcfa-416e-b908-176961b44fd3 / ext4 noatime,acl,user_xattr 1 1
/dev/mapper/cr_enc5 /enc5 ext4 acl,user_xattr,nofail 0 2
UUID=d296033d-7ce8-464e-9164-7468c233ec43 /boot ext4 noatime,acl,user_xattr 1 2
/dev/md0 /home ext4 acl,user_xattr 1 2
UUID=cb043809-142b-43df-b904-0008ddb5adab swap swap defaults 0 0

[FONT=Arial]/etc/default/grub has the line
GRUB_CMDLINE_LINUX_DEFAULT=“showopts resume=/dev/sda2 acpi_osi=Linux splash=silent quiet resume=/dev/disk/by-label/swap splash=silent quiet showopts”

boot/grub2 has the lines
cat grub.cfg | grep swap
linux /vmlinuz-4.4.179-99-default root=UUID=2c77c8a3-fcfa-416e-b908-176961b44fd3 showopts resume=/dev/sda2 acpi_osi=Linux splash=silent quiet resume=/dev/disk/by-label/swap splash=silent quiet showopts
linux /vmlinuz-4.4.179-99-default root=UUID=2c77c8a3-fcfa-416e-b908-176961b44fd3 showopts resume=/dev/sda2 acpi_osi=Linux splash=silent quiet resume=/dev/disk/by-label/swap splash=silent quiet showopts
linux /vmlinuz-4.4.179-99-default root=UUID=2c77c8a3-fcfa-416e-b908-176961b44fd3 showopts resume=/dev/sda2 acpi_osi=Linux splash=silent quiet resume=/dev/disk/by-label/swap splash=silent quiet showopts
linux /vmlinuz-4.4.179-99-default root=UUID=2c77c8a3-fcfa-416e-b908-176961b44fd3 showopts resume=/dev/sda2 acpi_osi=Linux splash=silent quiet resume=/dev/disk/by-label/swap splash=silent quiet showopts

Can I edit these to get rid of the error.
I really don’t like messing with Grub so thanks for the help

Or possibly I should not worry and just run the CD upgrade - possibly it will get fixed by the upgrade - but equally I don’t want to upset the upgrade

Many thanks for the help
Andy

[/FONT]

You changed swap (delete & recreate it) so you also changed UUID of your swap partition.

I suggest this approach :
At boot time (when you have chosen the os to boot - I believe leap 42.3) press ‘e’ and remove the parameters resume=/dev/disk/by-label/swap and [FONT=Arial]resume=/dev/sda2 (It’s very strange you have 2 resumes … It’s really the first time I see it)
You should now have your boot without waiting for swap (obviously you can’t use it)
Open a konsole and as root type : blkid
You should see the new UUID of your swap partition (reading your post seem to be [/FONT]UUID=cb043809-142b-43df-b904-0008ddb5adab)
With Yast - Bootloader change the parameter resume (resume=cb043809-142b-43df-b904-0008ddb5adab). I believe you need only 1 resume. Yast should recreate your initrd correctly
Always in konsole modify etc/fstab reflecting your new your UUID for swap (or with Yast - Partitioner → remove swap mount point / apply, remount swap / apply)

Thanks very much, that fixed it.
Actually I put in the boot open noresume as I never use hibernate anyway so that’s simpler.
Cheers