Changeset cba2d4e for bootscripts/lfs


Ignore:
Timestamp:
04/03/2014 09:52:09 PM (10 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.6, 7.7, 7.8, 7.9, 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:
9839808
Parents:
008436e
Message:

Added systemd and dbus to the book.
Set up systemd and System V side-by-side with the
ability to reboot to either system.

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

Location:
bootscripts/lfs
Files:
2 added
1 deleted
7 edited

Legend:

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

    r008436e rcba2d4e  
    2929. /lib/lsb/init-functions
    3030[ -r /etc/sysconfig/network ] && . /etc/sysconfig/network
     31[ -r /etc/hostname ] && HOSTNAME=`cat /etc/hostname`
    3132
    3233case "${1}" in
  • bootscripts/lfs/init.d/mountfs

    r008436e rcba2d4e  
    4040      rm -f /fastboot /forcefsck
    4141
     42      # Make sure /dev/pts exists
     43      mkdir -p /dev/pts
     44
    4245      # This will mount all filesystems that do not have _netdev in
    4346      # their option list.  _netdev denotes a network filesystem.
  • bootscripts/lfs/init.d/mountvirtfs

    r008436e rcba2d4e  
    3232case "${1}" in
    3333   start)
    34       # Make sure /run/var is available before logging any messages
     34      # Make sure /run is available before logging any messages
    3535      if ! mountpoint /run >/dev/null; then
    3636         mount /run || failed=1
    3737      fi
    3838
    39       mkdir -p /run/var /run/lock /run/shm
     39      mkdir -p /run/lock /run/shm
    4040      chmod 1777 /run/shm
    4141
  • bootscripts/lfs/init.d/rc

    r008436e rcba2d4e  
    218218# Copy the boot log on initial boot only
    219219if [ "${previous}" == "N" -a  "${runlevel}" != "S" ]; then
    220    cat /run/var/bootlog >> /var/log/boot.log
     220   cat $BOOTLOG >> /var/log/boot.log
    221221     
    222222   # Mark the end of boot
     
    224224   
    225225   # Remove the temporary file
    226    rm -f /run/var/bootlog 2> /dev/null
     226   rm -f $BOOTLOG 2> /dev/null
    227227fi
    228228
  • bootscripts/lfs/init.d/udev

    r008436e rcba2d4e  
    5050      # Start the udev daemon to continually watch for, and act on,
    5151      # uevents
    52       /sbin/udevd --daemon
     52      /lib/systemd-udevd --daemon
    5353
    5454      # Now traverse /sys in order to "coldplug" devices that have
    5555      # already been discovered
    56       /sbin/udevadm trigger --action=add    --type=subsystems
    57       /sbin/udevadm trigger --action=add    --type=devices
    58       /sbin/udevadm trigger --action=change --type=devices
     56      /bin/udevadm trigger --action=add    --type=subsystems
     57      /bin/udevadm trigger --action=add    --type=devices
     58      /bin/udevadm trigger --action=change --type=devices
    5959
    6060      # Now wait for udevd to process the uevents we triggered
    6161      if ! is_true "$OMIT_UDEV_SETTLE"; then
    62          /sbin/udevadm settle
     62         /bin/udevadm settle
    6363      fi
    6464
  • bootscripts/lfs/init.d/udev_retry

    r008436e rcba2d4e  
    3636
    3737      # As of udev-186, the --run option is no longer valid
    38       #rundir=$(/sbin/udevadm info --run)
     38      #rundir=$(/bin/udevadm info --run)
    3939      rundir=/run/udev
    4040      # From Debian: "copy the rules generated before / was mounted
     
    5353      while read line ; do
    5454         for subsystem in $line ; do
    55             /sbin/udevadm trigger --subsystem-match=$subsystem --action=add
     55            /bin/udevadm trigger --subsystem-match=$subsystem --action=add
    5656         done
    5757      done
     
    5959      # Now wait for udevd to process the uevents we triggered
    6060      if ! is_true "$OMIT_UDEV_RETRY_SETTLE"; then
    61          /sbin/udevadm settle
     61         /bin/udevadm settle
    6262      fi
    6363
  • bootscripts/lfs/lib/services/init-functions

    r008436e rcba2d4e  
    7272WARNING_SUFFIX="${BRACKET}[${WARNING} WARN ${BRACKET}]${NORMAL}"
    7373
    74 BOOTLOG=/run/var/bootlog
     74BOOTLOG=/run/bootlog
    7575KILLDELAY=3
    7676
Note: See TracChangeset for help on using the changeset viewer.