Tell me why this idea is cracked out – boot Linux real fast using uswsusp?
Alright, I came up with this idea and there must be a reason why people aren’t doing it but for the life of me I don’t see it. If it worked, it could reduce boot times by half, at least.
Alright, here’s the idea:
- Make a modified version of s2disk that doesn’t actually shut the machine down, just writes out the hibernation file to a “quickstart” swap partition.
- When we successfully get to the GDM login screen, use said program in #1
- On boot, unless something has changed, use the quickstart. Since very little is in RAM at the time the snapshot was taken, the resume will fly.
Wait, damnit. Massive filesystem corruption would result, unless you did some serious hackery to avoid it; the filesystem would be changed. Maybe if you had a special “Hey vfs forget everything you know” syscall – but now we’re decending into madness. Wie schade.
