Changeset 44674e4c


Ignore:
Timestamp:
07/28/2023 11:59:01 AM (14 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, multilib, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/update-glibc
Children:
ac90ea8
Parents:
d0de26c
Message:

sysv: Mount cgroup fs for memory pressure information early

Prepare for systemd-254 update. See #5293 for details.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    rd0de26c r44674e4c  
     12023-07-28 Xi Ruoyao <xry111@xry111.site>
     2   * In mountvirtfs, mount /sys/fs/cgroup for udev from systemd-254.
     3
    142023-07-22 Xi Ruoyao <xry111@xry111.site>
    25   * In mountvirtfs, create symlinks /dev/{fd,std{in,out,err}} and
  • bootscripts/lfs/init.d/mountvirtfs

    rd0de26c r44674e4c  
    6464      mount -o nosuid,nodev /dev/shm || failed=1
    6565
     66      mkdir -p /sys/fs/cgroup
     67      log_info_msg2 " ${INFO}/sys/fs/cgroup"
     68      mount -o nosuid,noexec,nodev /sys/fs/cgroup || failed=1
     69
    6670      (exit ${failed})
    6771      evaluate_retval
  • chapter01/changelog.xml

    rd0de26c r44674e4c  
    4242
    4343    <listitem revision='sysv'>
     44      <para>2023-07-28</para>
     45      <itemizedlist>
     46        <listitem revision='sysv'>
     47          <para>[xry111] - Enable cgroup-based memory pressure information
     48          in kernel, and add the cgroup file system into /etc/fstab and the
     49          mountvirtfs bootscript.  This is a preparation for udev from
     50          systemd-254.  Addresses
     51          <ulink url='&lfs-ticket-root;5293'>#5293</ulink>.</para>
     52        </listitem>
     53      </itemizedlist>
     54    </listitem>
     55
     56    <listitem revision='sysv'>
    4457      <para>2023-07-22</para>
    4558      <itemizedlist>
  • chapter10/fstab.xml

    rd0de26c r44674e4c  
    2323<literal># Begin /etc/fstab
    2424
    25 # file system  mount-point  type     options             dump  fsck
    26 #                                                              order
     25# file system  mount-point    type     options             dump  fsck
     26#                                                                order
    2727
    28 /dev/<replaceable>&lt;xxx&gt;</replaceable>     /            <replaceable>&lt;fff&gt;</replaceable>    defaults            1     1
    29 /dev/<replaceable>&lt;yyy&gt;</replaceable>     swap         swap     pri=1               0     0
    30 proc           /proc        proc     nosuid,noexec,nodev 0     0
    31 sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
    32 devpts         /dev/pts     devpts   gid=5,mode=620      0     0
    33 tmpfs          /run         tmpfs    defaults            0     0
    34 devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0
    35 tmpfs          /dev/shm     tmpfs    nosuid,nodev        0     0
     28/dev/<replaceable>&lt;xxx&gt;</replaceable>     /              <replaceable>&lt;fff&gt;</replaceable>    defaults            1     1
     29/dev/<replaceable>&lt;yyy&gt;</replaceable>     swap           swap     pri=1               0     0
     30proc           /proc          proc     nosuid,noexec,nodev 0     0
     31sysfs          /sys           sysfs    nosuid,noexec,nodev 0     0
     32devpts         /dev/pts       devpts   gid=5,mode=620      0     0
     33tmpfs          /run           tmpfs    defaults            0     0
     34devtmpfs       /dev           devtmpfs mode=0755,nosuid    0     0
     35tmpfs          /dev/shm       tmpfs    nosuid,nodev        0     0
     36cgroup2        /sys/fs/cgroup cgroup2  nosuid,noexec,nodev 0     0
    3637
    3738# End /etc/fstab</literal>
  • chapter10/kernel.xml

    rd0de26c r44674e4c  
    136136General setup ---&gt;
    137137   [ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
     138   CPU/Task time and stats accounting ---&gt;
     139      [*] Pressure stall information tracking [CONFIG_PSI]
     140      [ ]   Require boot parameter to enable pressure stall information tracking [CONFIG_PSI_DEFAULT_DISABLED]
    138141   &lt; &gt; Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
     142   [*] Control Group support [CONFIG_CGROUPS]   ---&gt;
     143      [*] Memory controller [CONFIG_MEMCG]
    139144   [ ] Configure standard kernel features (expert users) [CONFIG_EXPERT]
    140145General architecture-dependent options  ---&gt;
  • packages.ent

    rd0de26c r44674e4c  
    384384<!ENTITY less-fin-sbu "less than 0.1 SBU">
    385385
    386 <!ENTITY lfs-bootscripts-version "20230722">      <!-- Scripts depend on this format -->
     386<!ENTITY lfs-bootscripts-version "20230728">      <!-- Scripts depend on this format -->
    387387<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
    388388<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
Note: See TracChangeset for help on using the changeset viewer.