From 4ca831a42f44353e1aa573eff9ff5eab75824efa Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 1 Dec 2023 16:03:59 +0800 Subject: Use GitHub for vim download I don't see a reason to upload vim tarball onto anduin. And now anduin does not have vim-9.0.2136.tar.gz. I tried downloading vim-8.0.0586 (shipped by LFS 8.2) from GitHub and it worked fine. So it seems the GitHub storage is stable enough. --- packages.ent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages.ent b/packages.ent index 5093b8aa1..50b140bf2 100644 --- a/packages.ent +++ b/packages.ent @@ -739,8 +739,8 @@ - - + + -- cgit v1.2.3-54-g00ecf From 823fbde93f0325443d648ef93ba5ceeea8be33ff Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 1 Dec 2023 14:45:50 +0800 Subject: udev: Adjust the paths to search .link files and install 99-default.link Tested in QEMU and the virtio NIC is now named "enp0s3". Fixes #5386. --- chapter01/changelog.xml | 11 +++++++++++ chapter08/udev.xml | 20 +++++++++++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 9694954cd..c049903fc 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,17 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2023-12-01 + + + [xry111] - Restore NIC naming based on physical system + characteristics. Fixes + #5386. + + + + 2023-11-30 diff --git a/chapter08/udev.xml b/chapter08/udev.xml index 46ab88cff..dd686f489 100644 --- a/chapter08/udev.xml +++ b/chapter08/udev.xml @@ -55,6 +55,11 @@ sed '/systemd-sysctl/s/^/#/' -i rules.d/99-systemd.rules.in + Adjust the hardcoded paths to network configuration files for the + standalone udev installation: + + sed '/NETWORK_DIRS/s/systemd/udev/' -i src/basic/path-lookup.h + Prepare Udev for compilation: mkdir -p build @@ -128,7 +133,7 @@ meson setup \ Install the package: - install -vm755 -d {/usr/lib,/etc}/udev/{hwdb,rules}.d + install -vm755 -d {/usr/lib,/etc}/udev/{hwdb.d,rules.d,network} install -vm755 -d /usr/{lib,share}/pkgconfig install -vm755 udevadm /usr/bin/ install -vm755 systemd-hwdb /usr/bin/udev-hwdb @@ -143,7 +148,8 @@ install -vm644 $(find ../rules.d/*.rules \ -not -name '*power-switch*') /usr/lib/udev/rules.d/ install -vm644 hwdb.d/* ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/ install -vm755 $(find src/udev \ - -type f -not -name '*.*') /usr/lib/udev + -type f -not -name '*.*') /usr/lib/udev +install -vm644 ../network/99-default.link /usr/lib/udev/network Install some custom rules and support files useful in an LFS environment: @@ -158,13 +164,21 @@ make -f &udev-lfs-version;/Makefile.lfs install tar -xf ../../systemd-man-pages-&systemd-man-version;.tar.xz \ --no-same-owner --strip-components=1 \ -C /usr/share/man --wildcards '*/udev*' '*/libudev*' \ + '*/systemd.link.5' \ '*/systemd-'{hwdb,udevd.service}.8 + +sed 's|systemd/network|udev/network|' \ + /usr/share/man/man5/systemd.link.5 \ + > /usr/share/man/man5/udev.link.5 + sed 's/systemd\(\\\?-\)/udev\1/' /usr/share/man/man8/systemd-hwdb.8 \ > /usr/share/man/man8/udev-hwdb.8 + sed 's|lib.*udevd|sbin/udevd|' \ /usr/share/man/man8/systemd-udevd.service.8 \ > /usr/share/man/man8/udevd.8 -rm /usr/share/man/man8/systemd-*.8 + +rm /usr/share/man/man*/systemd* -- cgit v1.2.3-54-g00ecf