-
-
Save neofob/2c6dc561a6b249771384821f5629ff48 to your computer and use it in GitHub Desktop.
Check Kernel Config Script for CRIU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
: ${CONFIG:=/boot/config-$(uname -r)} | |
CONFIG_LIST="CONFIG_EXPERT=y | |
CONFIG_EMBEDDED=y | |
CONFIG_CHECKPOINT_RESTORE=y | |
CONFIG_NAMESPACES=y | |
CONFIG_UTS_NS=y | |
CONFIG_IPC_NS=y | |
CONFIG_PID_NS=y | |
CONFIG_NET_NS=y | |
CONFIG_FHANDLE=y | |
CONFIG_EVENTFD=y | |
CONFIG_EPOLL=y | |
CONFIG_UNIX_DIAG=y | |
CONFIG_INET_DIAG=y | |
CONFIG_INET_UDP_DIAG=y | |
CONFIG_PACKET_DIAG=y | |
CONFIG_NETLINK_DIAG=y | |
CONFIG_INOTIFY_USER=y | |
CONFIG_IA32_EMULATION=y | |
CONFIG_MEM_SOFT_DIRTY=y" | |
for i in ${CONFIG_LIST[@]} ; do | |
if grep ${i} ${CONFIG} >/dev/null; then | |
echo "OK:" ${i} | |
else | |
echo "NG:" ${i} | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment