On Thu, Aug 16, 2018 at 10:42 PM Eric Huiban <gro...@grompf.net> wrote:
> With "6.3 release" version, i'm unable to set swap priority with fstab > using the following : > > 2e04cb867188f137.b none swap sw,priority=0 > e7f9094bf357d407.b none swap sw,priority=1 > > I get the following result : > > $ swapctl > Device 512-blocks Used Avail Capacity Priority > /dev/sd0b 21941640 0 21941640 0% 0 > /dev/sd1b 62524916 0 62524916 0% 0 > Total 84466556 0 84466556 0% > > Using "swapctl -a -p 1 e7f9094bf357d407.b" present the very same result. > Same for "swapctl -a -p 1 /dev/sd0b". > Also tried an hypothetic reboot... > You don't actually say it, but if read closely the commands you give suggest that the swap partition whose priority you want to change is the one on the *boot disk*. If that's correct, then there's no supported way to change it: the addition of the swap partition from the boot disk is done by the kernel before starting init, in swapmount(), which hardcodes a priority of zero. Philip Guenther