Yeah, the whole pre-boot environment is intentionally limited and
simplistic, from what I understand.  So I would guess that reading from
/etc/ during boot isn't really an option.

I think the right approach would be to determine why your swap keeps
getting modified and resolve that issue.  Have you looked for any
related bug reports for that issue?

That said, one possible workaround might be to just keep recreating your
swap partition with the same UUID each time.  You could just stick it in
a script and re-run it whenever your swap partition gets corrupted; or
even have it run at system shutdown time:

    mkswap -U UUID /dev/swapdev

(Side note:  It appears that the "-U" option is new to mkswap.  I had a
similar issue with my swap partition in 7.10, but ended up using a
somewhat complicated script to update a whole bunch of config files
because I had to keep using new UUIDs.)

Hope that helps,

- Lowell Alleman

-- 
Slow boot process on "waiting for resume device"
https://bugs.launchpad.net/bugs/206358
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to