[Buildroot] swapoff, but no swapon in initab

Peter Korsgaard peter at korsgaard.com
Wed Jun 20 20:38:40 UTC 2018


>>>>> "Arnout" == Arnout Vandecappelle <arnout at mind.be> writes:

Hi,

 >> Yes, so the only minor issue is that we need to have swapon/swapoff
 >> enabled in busybox-minimal.config even though it isn't useful just to
 >> not get an error message during bootup/shutdown.

 >  Well, it currently _is_ enabled in busybox-minimal.config... Admittedly, this
 > adds almost 1KB to the busybox size so perhaps it should be removed from
 > -minimal. But the we probably should also remove swapoff from inittab. Hell,
 > perhaps we should do that anyway, since doing swapoff for reboot is utterly
 > useless IMO.

Yes, I'm not sure what good swapoff would do just before rebooting,
except if you are using a swapfile and keeping it mounted would cause
umounting that filesystem to fail - But I've never used swap in a
Buildroot based project.

Notice that we will still get the error message from the swapon call
during startup if we drop the swapon applet.

Maybe we should just leave it as is.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list