View Single Post
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#44
Originally Posted by geohsia View Post
So I figured out how to do the swapfile but when I change fstab it just writes over it when I reboot. Is there another file I can use so that it mounts on startup? I'd like to avoid init scripts if possible. Thanks.
Yeah, it's annoying. The /etc/fstab gets recreated during bootup; see:

/etc/event.d/rcS-late

On line 15, it calls sfdisk to dump the partition data, and passes it through:

/usr/lib/genfstab.awk

I modified /usr/lib/genfstab.awk to make my changes permanent, but this is an ugly hack.