Ticket #1015 (closed task: fixed)

Opened 3 years ago

Last modified 6 months ago

Minimum Supported Kernel Upgrade with Systemd

Reported by: kb0iic Owned by: clfs-commits@…
Priority: critical Milestone: CLFS Standard 3.1.0
Component: BOOK Version: CLFS Standard GIT
Keywords: Cc: berzerkula@…, jonathan@…, chris@…

Description

Systemd 214-216 README:

REQUIREMENTS:

Linux kernel >= 3.0 Linux kernel >= 3.3 for loop device partition support features with nspawn Linux kernel >= 3.8 for Smack support

Systemd 217 README

REQUIREMENTS:

Linux kernel >= 3.7 Linux kernel >= 3.8 for Smack support

Kernel Config Options:

CONFIG_DEVTMPFS
CONFIG_CGROUPS (it is OK to disable all controllers)
CONFIG_INOTIFY_USER
CONFIG_SIGNALFD
CONFIG_TIMERFD
CONFIG_EPOLL
CONFIG_NET
CONFIG_SYSFS
CONFIG_PROC_FS
CONFIG_FHANDLE (libudev, mount and bind mount handling)

Use this when upgrading to Systemd 217

We may want to warn the user to either view the README or insert text during kernel configuration about 3.7/3.8 requirements.

Change History

comment:1 Changed 3 years ago by kb0iic

  • Summary changed from Minimum Kernel Upgrade with Systemd to Minimum Supported Kernel Upgrade with Systemd

comment:2 Changed 2 years ago by kb0iic

For Systemd 226 (From the README):

REQUIREMENTS:

Linux kernel >= 3.11 Linux kernel >= 4.2 for unified cgroup hierarchy support

Kernel Config Options:

CONFIG_DEVTMPFS CONFIG_CGROUPS (it is OK to disable all controllers) CONFIG_INOTIFY_USER CONFIG_SIGNALFD CONFIG_TIMERFD CONFIG_EPOLL CONFIG_NET CONFIG_SYSFS CONFIG_PROC_FS CONFIG_FHANDLE (libudev, mount and bind mount handling)

udev will fail to work with the legacy sysfs layout:

CONFIG_SYSFS_DEPRECATED=n

Legacy hotplug slows down the system and confuses udev:

CONFIG_UEVENT_HELPER_PATH=""

Userspace firmware loading is not supported and should be disabled in the kernel:

CONFIG_FW_LOADER_USER_HELPER=n

Some udev rules and virtualization detection relies on it:

CONFIG_DMIID

Support for some SCSI devices serial number retrieval, to create additional symlinks in /dev/disk/ and /dev/tape:

CONFIG_BLK_DEV_BSG

Required for PrivateNetwork? and PrivateDevices? in service units:

CONFIG_NET_NS CONFIG_DEVPTS_MULTIPLE_INSTANCES

Note that systemd-localed.service and other systemd units use PrivateNetwork? and PrivateDevices? so this is effectively required.

Optional but strongly recommended:

CONFIG_IPV6 CONFIG_AUTOFS4_FS CONFIG_TMPFS_XATTR CONFIG_{TMPFS,EXT4,XFS,BTRFS_FS,...}_POSIX_ACL CONFIG_SECCOMP CONFIG_CHECKPOINT_RESTORE (for the kcmp() syscall)

Required for CPUShares= in resource control unit settings

CONFIG_CGROUP_SCHED CONFIG_FAIR_GROUP_SCHED

Required for CPUQuota= in resource control unit settings

CONFIG_CFS_BANDWIDTH

For systemd-bootchart, several proc debug interfaces are required:

CONFIG_SCHEDSTATS CONFIG_SCHED_DEBUG

For UEFI systems:

CONFIG_EFIVAR_FS CONFIG_EFI_PARTITION

comment:3 Changed 2 years ago by kb0iic

I upgraded the kernel to 4.1 for longevity, but it seems that people who will want unified cgroup hierarchy support will need the 4.2 kernel. I suggest leave the kernel at 4.1 and let the users follow the README.

Last edited 2 years ago by kb0iic (previous) (diff)

comment:4 Changed 7 months ago by kb0iic

Systemd 233 now requires:

Kernel >= 3.13.x or >= 4.2 for unified cgroup hierarchy support

Review requirements at  https://github.com/systemd/systemd/blob/master/README

comment:5 Changed 6 months ago by kb0iic

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.