bootscripts: Add -n to the ln command, for recreating /dev/fd correctly if the initramfs has already created one

This commit is contained in:
Xi Ruoyao 2024-07-12 13:39:23 +08:00
parent 6e6641f9b7
commit 0808f28619
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2024-07-12 Xi Ruoyao <xry111@xry111.site>
* In mountvirtfs, recreate /dev/fd correctly if it's already created
by the initramfs.
2024-07-06 Bruce Dubbs <bdubbs@linuxfromscratch.org>
* Add logic to init-functions to only print escape sequences
if stdin and stdout are connected to a terminal.

View File

@ -83,7 +83,7 @@ case "${1}" in
ln -sf /proc/self/fd/2 /dev/stderr || failed=1
log_info_msg2 " ${INFO}/dev/fd"
ln -sf /proc/self/fd /dev/fd || failed=1
ln -sfn /proc/self/fd /dev/fd || failed=1
if [ -e /proc/kcore ]; then
log_info_msg2 " ${INFO}/dev/core"

View File

@ -381,7 +381,7 @@
<!ENTITY less-fin-du "12 MB">
<!ENTITY less-fin-sbu "less than 0.1 SBU">
<!ENTITY lfs-bootscripts-version "20240706"> <!-- Scripts depend on this format -->
<!ENTITY lfs-bootscripts-version "20240712"> <!-- Scripts depend on this format -->
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM">