Changeset 8435a70 for bootscripts


Ignore:
Timestamp:
07/22/2023 03:40:32 PM (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:
da0d479
Parents:
0d824c5
Message:

bootscripts: mountvirtfs: Create essential symlinks in /dev targeting /proc

These were handled by Eudev, but systemd-udevd stopped to creating them
since 2020.

Location:
bootscripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    r0d824c5 r8435a70  
     12023-07-22 Xi Ruoyao <xry111@xry111.site>
     2   * In mountvirtfs, create symlinks /dev/{fd,std{in,out,err}} and
     3     /dev/core (optional).
     4
    152023-07-15 Xi Ruoyao <xry111@xry111.site>
    26   * Use /bin/udevadm instead of /sbin/udevadm.
  • bootscripts/lfs/init.d/mountvirtfs

    r0d824c5 r8435a70  
    88#               DJ Lucas - dj@linuxfromscratch.org
    99# Update      : Bruce Dubbs - bdubbs@linuxfromscratch.org
     10#               Xi Ruoyao - xry111@xry111.site
    1011#
    11 # Version     : LFS 7.0
     12# Version     : LFS 12.0
    1213#
    1314########################################################################
     
    6566      (exit ${failed})
    6667      evaluate_retval
     68      if [ "${failed}" = 1 ]; then
     69         exit 1
     70      fi
     71
     72      log_info_msg "Create symlinks in /dev targeting /proc: ${INFO}/dev/stdin"
     73      ln -sf /proc/self/fd/0 /dev/stdin  || failed=1
     74
     75      log_info_msg2 " ${INFO}/dev/stdout"
     76      ln -sf /proc/self/fd/1 /dev/stdout || failed=1
     77
     78      log_info_msg2 " ${INFO}/dev/stderr"
     79      ln -sf /proc/self/fd/2 /dev/stderr || failed=1
     80
     81      log_info_msg2 " ${INFO}/dev/fd"
     82      ln -sf /proc/self/fd   /dev/fd     || failed=1
     83
     84      if [ -e /proc/kcore ]; then
     85         log_info_msg2 " ${INFO}/dev/core"
     86         ln -sf /proc/kcore  /dev/core   || failed=1
     87      fi
     88
     89      (exit ${failed})
     90      evaluate_retval
    6791      exit $failed
    6892      ;;
Note: See TracChangeset for help on using the changeset viewer.