Comment 4 for bug 66637

Revision history for this message
tonfa (bboissin) wrote : Re: swap not being mounted on boot

@jens: I think the by-uuid symlink is only updated after a reboot, you can try vol_id

I had to do the following to solve it:
- correct fstab with the UUID outputted by mkswap (vol_id might work, but /dev/disk/by-uuid definitely don't)
- put "RESUME=UUID=<uuid>" in /etc/initramfs-tools/conf.d resume.

The second step should definitely be done in postinst or upgrade for initramfs-tools since without this the swapspace get corrupted after a suspend2disk (currently the resume file is created only on install).

Now swsusp works and the laptop don't have any problem of swap disappearing.
I think the reason conf.d/resume wasn't created in the first place is because it was a "custom" dapper install (the swap already existed from a previous linux installation, so somehow when initramfs-tools was installed there wasn't any swap space available.