Changeset e9ba8aa8


Ignore:
Timestamp:
01/16/2012 06:34:31 PM (12 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
f70b664
Parents:
6c3ab2e
Message:

Change bootscripts to use devtmpfs for /dev.
Move mounting of /dev to mountvirtfs and ensure /dev gets placed in /etc/mtab.
Change fstab and kernel configuration sections to reflect these changes.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9710 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/init.d/mountfs

    r6c3ab2e re9ba8aa8  
    4747      mount -f /sys  || failed=1
    4848      mount -f /run  || failed=1
     49      mount -f /dev  || failed=1
    4950      (exit ${failed})
    5051      evaluate_retval
  • bootscripts/lfs/init.d/mountvirtfs

    r6c3ab2e re9ba8aa8  
    4242      if ! mountpoint /proc >/dev/null; then
    4343         log_info_msg2 " ${INFO}/proc"
    44          mount -n /proc || failed=1
     44         mount -n -o nosuid,noexec,nodev /proc || failed=1
    4545      fi
    4646
    4747      if ! mountpoint /sys >/dev/null; then
    4848         log_info_msg2 " ${INFO}/sys"
    49          mount -n /sys || failed=1
     49         mount -n -o nosuid,noexec,nodev /sys || failed=1
    5050      fi
     51
     52      if ! mountpoint /dev >/dev/null; then
     53         log_info_msg2 " ${INFO}/dev"
     54         mount -n -o mode=0755,nosuid /dev  || failed=1
     55      fi
     56
     57      ln -s /run/shm /dev/shm
     58     
     59      # Copy the only static device node that Udev >= 155 doesn't
     60      # handle to /dev
     61      cp -a /lib/udev/devices/null /dev
    5162
    5263      (exit ${failed})
  • bootscripts/lfs/init.d/udev

    r6c3ab2e re9ba8aa8  
    4444      fi
    4545
    46       # Mount a temporary file system over /dev, so that any devices
    47       # made or removed during this boot don't affect the next one.
    48       # The reason we don't write to mtab is because we don't ever
    49       # want /dev to be unavailable (such as by `umount -a').
    50       if ! mountpoint /dev > /dev/null; then
    51          mount -n -t tmpfs tmpfs /dev -o mode=755
    52       fi
    53 
    54       if [ ${?} != 0 ]; then
    55          log_failure_msg2
    56          msg="FAILURE:\n\nCannot mount a tmpfs "
    57          msg="${msg}onto /dev, this system will be halted.\n\n"
    58          msg="${msg}After you press Enter, this system "
    59          msg="${msg}will be halted and powered off.\n\n"
    60          log_failure_msg "$msg"
    61          log_info_msg "Press Enter to continue..."
    62          wait_for_user
    63          /etc/rc.d/init.d/halt stop
    64       fi
    65 
    66       ln -s /run/shm /dev/shm
    67 
    6846      # Udev handles uevents itself, so we don't need to have
    6947      # the kernel call out to any binary in response to them
    7048      echo > /proc/sys/kernel/hotplug
    71 
    72       # Copy the only static device node that Udev >= 155 doesn't
    73       # handle to /dev
    74       cp -a /lib/udev/devices/null /dev
    7549
    7650      # Start the udev daemon to continually watch for, and act on,
  • chapter01/changelog.xml

    r6c3ab2e re9ba8aa8  
    3939
    4040    <listitem>
     41      <para>2012-01-16</para>
     42      <itemizedlist>
     43        <listitem>
     44          <para>[bdubbs] - Change bootscripts to use devtmpfs for /dev.
     45          Move mounting of /dev to mountvirtfs and ensure /dev gets
     46          placed in /etc/mtab.  Change fstab and kernel configuration
     47          sections to reflect these changes.</para>
     48        </listitem>
     49      </itemizedlist>
     50    </listitem>
     51
     52    <listitem>
    4153      <para>2012-01-11</para>
    4254      <itemizedlist>
  • chapter08/fstab.xml

    r6c3ab2e re9ba8aa8  
    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   defaults        0     0
    31 sysfs          /sys         sysfs  defaults        0     0
    32 devpts         /dev/pts     devpts gid=4,mode=620  0     0
    33 tmpfs          /run         tmpfs  defaults        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=4,mode=620      0     0
     33tmpfs          /run         tmpfs    defaults            0     0
     34devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0
     35
    3436# End /etc/fstab</literal>
    3537EOF</userinput></screen>
  • chapter08/kernel.xml

    r6c3ab2e re9ba8aa8  
    5959    <para>Configure the kernel via a menu-driven interface. For general
    6060    information on kernel configuration see <ulink
    61     url="&hints-root;kernel-configuration.txt"/>.  BLFS has some   information
     61    url="&hints-root;kernel-configuration.txt"/>.  BLFS has some information
    6262    regarding particular kernel configuration requirements of packages outside
    6363    of LFS at <ulink
    64     url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para>
     64    url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>.  </para>
     65
     66    <note><para>Due to recent changes in <application>udev</application>, be sure to
     67    select:</para>
     68   
     69    <screen role="nodump">Device Drivers  ---&gt;
     70  Generic Driver Options  ---&gt;
     71     Maintain a devtmpfs filesystem to mount at /dev</screen></note>
    6572
    6673<screen role="nodump"><userinput>make LANG=<replaceable>&lt;host_LANG_value&gt;</replaceable> LC_ALL= menuconfig</userinput></screen>
  • general.ent

    r6c3ab2e re9ba8aa8  
    1 <!ENTITY version "SVN-20120111">
    2 <!ENTITY releasedate "Jan 11, 2012">
     1<!ENTITY version "SVN-20120116">
     2<!ENTITY releasedate "Jan 16, 2012">
    33<!ENTITY copyrightdate "1999-2012"><!-- jhalfs needs a literal dash, not &ndash; -->
    44<!ENTITY milestone "7.1">
  • packages.ent

    r6c3ab2e re9ba8aa8  
    298298<!ENTITY less-ch6-sbu "less than 0.1 SBU">
    299299
    300 <!ENTITY lfs-bootscripts-version "20111128">                 <!-- Scripts depend on this format -->
     300<!ENTITY lfs-bootscripts-version "20120116">                 <!-- Scripts depend on this format -->
    301301<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">         <!-- Updated in Makefile -->
    302302<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
Note: See TracChangeset for help on using the changeset viewer.