[CentOS] ipset-service save fails when module compiled into kernel

Sat Sep 15 19:04:58 UTC 2018
Kenneth Porter <shiva at sewingwitch.com>

On 9/15/2018 11:30 AM, Mark Milhollan wrote:
> Likely the check is there to avoid an abort when the commands are issued
> but w/o the feature present.  So customize the script -- it sounds like
> you found the one that's at fault.

Yeah, but the script will get overwritten the next time I yum update 
that package.

Looking more closely at the script, it's just issuing "ipset save" and 
dumping the output into /etc/sysconfig/ipset, after backing up any 
previous configuration. So it's easy enough to just do that and ignore 
the script. Curiously, the start() function in the script doesn't load 
the ipset module or check that it's loaded. Only the stop() and save() 
functions check. Seems inconsistent. I'll have to ask the package 
maintainer why they're doing it that way.

Meanwhile I bit the bullet and switched to the stock CentOS 7 kernel by 
selecting GRUB2 from the Linode boot menu. It took a few reboots to get 
it right. It had to relabel the filesystem as the Linode kernel lacks 
SELinux and I had to run the utility to rebuild the GRUB menu. (Linode 
had already written its required modifications to the GRUB config files.)