Changeset 16cd0963


Ignore:
Timestamp:
09/20/2022 05:20:58 PM (19 months ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
ab29298
Parents:
cc8e57d
Message:

Adjust instructions for /dev/shm when creating virtual filesystems.
Some host create /dev/shm as a tmpfs. Some have is as
a symlink to a location in another directory. This
change handles both cases.

The change to the sysV bootscripts now creates /dev/shm
as a separate tmpfs from /run. This makes LFS sysV and
systemd versions treat /dev/shm the same.

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    rcc8e57d r16cd0963  
     12022-09-30 Bruce Dubbs <bdubbs@linuxfromscratch.org>
     2   * Mount /dev/shm as a tmpfs.
     3
    142022-07-23 Thomas Trepl <thomas@linuxfromscratch.org>
    25   * Mark an raid array clean when root (/) has been remounted
  • bootscripts/lfs/init.d/mountvirtfs

    rcc8e57d r16cd0963  
    3939      fi
    4040
    41       mkdir -p /run/lock /run/shm
    42       chmod 1777 /run/shm /run/lock
     41      mkdir -p   /run/lock
     42      chmod 1777 /run/lock
    4343
    4444      log_info_msg "Mounting virtual file systems: ${INFO}/run"
     
    5959      fi
    6060
    61       ln -sfn /run/shm /dev/shm
     61      mkdir -p /dev/shm
     62      log_info_msg2 " ${INFO}/dev/shm"
     63      mount -o nosuid,nodev /dev/shm || failed=1
    6264
    6365      (exit ${failed})
  • chapter01/changelog.xml

    rcc8e57d r16cd0963  
    4040    appropriate for the entry or if needed the entire day's listitem.
    4141    -->
     42
     43    <listitem>
     44      <para>2022-09-20</para>
     45      <itemizedlist>
     46        <listitem>
     47          <para>[bdubbs] - Adappt instructions depending on
     48          host setup of /dev/shm when creating virtual filesystems
     49          for chroot.</para>
     50        </listitem>
     51      </itemizedlist>
     52    </listitem>
    4253
    4354    <listitem>
  • chapter07/cleanup.xml

    rcc8e57d r16cd0963  
    9696    <para>Before making a backup, unmount the virtual file systems:</para>
    9797
    98 <screen role="nodump"><userinput>umount $LFS/dev/pts
     98<screen role="nodump"><userinput>[ mountpoint -q $LFS/dev/shm ] &amp;&amp; umount $LFS/dev/shm
     99umount $LFS/dev/pts
    99100umount $LFS/{sys,proc,run,dev}</userinput></screen>
    100101
  • chapter07/kernfs.xml

    rcc8e57d r16cd0963  
    9090      directory needs to be created.</para>
    9191
     92      <para>In other cases <filename>/dev/shm</filename> is a mountpoint
     93      for a tmpfs. In that case the mount of /dev above will only create
     94      /dev/shm in the chroot environment as a directory. In this situation
     95      we explicitly mount a tmpfs,</para>
     96
    9297<screen><userinput>if [ -h $LFS/dev/shm ]; then
    9398  mkdir -pv $LFS/$(readlink $LFS/dev/shm)
     99else
     100  mount -t tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm
    94101fi</userinput></screen>
    95102
  • chapter10/fstab.xml

    rcc8e57d r16cd0963  
    3333tmpfs          /run         tmpfs    defaults            0     0
    3434devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0
     35tmpfs          /dev/shm     tmpfs    nosuid,nodev        0     0
    3536
    3637# End /etc/fstab</literal>
  • chapter11/afterlfs.xml

    rcc8e57d r16cd0963  
    130130mounttype sys     sysfs  sysfs
    131131mounttype run     tmpfs  run
    132 mkdir $LFS/run/shm
     132if [ -h $LFS/dev/shm ]; then
     133  mkdir -pv $LFS/$(readlink $LFS/dev/shm)
     134else
     135  mounttype dev/shm tmpfs tmpfs -o nosuid,nodev
     136fi
     137
    133138#mountbind usr/src
    134139#mountbind boot
  • packages.ent

    rcc8e57d r16cd0963  
    383383<!ENTITY less-fin-sbu "less than 0.1 SBU">
    384384
    385 <!ENTITY lfs-bootscripts-version "20220723">      <!-- Scripts depend on this format -->
     385<!ENTITY lfs-bootscripts-version "20220920">      <!-- Scripts depend on this format -->
    386386<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
    387387<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
Note: See TracChangeset for help on using the changeset viewer.