[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installers, fstab and swap.



The issue is not that you cannot use swap, it is that it isn't automatically activated at boot because fstab points to an invalid UUID. Before working up the code I installed Squeeze and then installed Squeeze again, both used the same swap and the second install made the fstab entry in the first for swap useless. I have no idea when this became an issue, it was just reported to me on my forums a few days ago. I am pretty sure I am going to ask the user if the swap partition is shared with another distribution and if they answer yes, run the code I submitted here.

Until one of my users pointed this out to me, I was completely oblivious to the fact that I didn't have swap active except on the last installed OS. The last installed OS works fine, because the fstab entry isn't created until after the formatting occurs.

It has occurred to me that it is probably best to test that the system is in fact a Linux based system, instead of checking if /etc/fstab exists before trying to modify the /etc/fstab file. This was probably short sighted of me, HURD, Haiku, BSD, Minix and Unix variants exist even if they aren't very popular.

I have not tested if this behavior is present in Ubuntu. I only tested with my images and Debian 6.0.1 images, LMDE was reported to do this as well in my forum.


Reply to: