diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-07-28 19:59:01 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-07-28 19:59:01 +0800 |
commit | 44674e4c92f7ef20dbc985f479c5c19548378a08 (patch) | |
tree | 69524742f934a873fb137b74ea1e3d2915b92106 /bootscripts | |
parent | d0de26cbe0bf877b25219936b7b688f0b17d0a16 (diff) |
sysv: Mount cgroup fs for memory pressure information early
Prepare for systemd-254 update. See #5293 for details.
Diffstat (limited to 'bootscripts')
-rw-r--r-- | bootscripts/ChangeLog | 3 | ||||
-rw-r--r-- | bootscripts/lfs/init.d/mountvirtfs | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog index d255411b1..aff30cb41 100644 --- a/bootscripts/ChangeLog +++ b/bootscripts/ChangeLog @@ -1,3 +1,6 @@ +2023-07-28 Xi Ruoyao <xry111@xry111.site> + * In mountvirtfs, mount /sys/fs/cgroup for udev from systemd-254. + 2023-07-22 Xi Ruoyao <xry111@xry111.site> * In mountvirtfs, create symlinks /dev/{fd,std{in,out,err}} and /dev/core (optional). diff --git a/bootscripts/lfs/init.d/mountvirtfs b/bootscripts/lfs/init.d/mountvirtfs index bbf30cf90..fd797787a 100644 --- a/bootscripts/lfs/init.d/mountvirtfs +++ b/bootscripts/lfs/init.d/mountvirtfs @@ -63,6 +63,10 @@ case "${1}" in log_info_msg2 " ${INFO}/dev/shm" mount -o nosuid,nodev /dev/shm || failed=1 + mkdir -p /sys/fs/cgroup + log_info_msg2 " ${INFO}/sys/fs/cgroup" + mount -o nosuid,noexec,nodev /sys/fs/cgroup || failed=1 + (exit ${failed}) evaluate_retval if [ "${failed}" = 1 ]; then |