mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2025-12-06 07:12:01 +01:00
The dns library used by lua requires /etc/hosts to exist, otherwise all requests for name resolution are denied. This meant that using the sysrescuecfg boot option with a http URL and hostname did not work while using an IP worked. This patch adds an empty /etc/hosts file to the initramfs image to fix this.
21 lines
1 KiB
Diff
21 lines
1 KiB
Diff
diff -u -r archiso-43.orig/archiso/initcpio/install/archiso_pxe_common archiso-43/archiso/initcpio/install/archiso_pxe_common
|
|
--- archiso-43.orig/archiso/initcpio/install/archiso_pxe_common 2019-10-16 11:10:09.000000000 +0000
|
|
+++ archiso-43/archiso/initcpio/install/archiso_pxe_common 2022-07-04 21:27:54.206666328 +0000
|
|
@@ -12,9 +12,16 @@
|
|
add_binary $(readlink -f /usr/lib/libnss_files.so.2)
|
|
add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2)
|
|
add_binary $(readlink -f /usr/lib/libnss_dns.so.2)
|
|
+ add_symlink /usr/lib/libnss_mymachines.so.2 $(readlink /usr/lib/libnss_mymachines.so.2)
|
|
+ add_binary $(readlink -f /usr/lib/libnss_mymachines.so.2)
|
|
+ add_symlink /usr/lib/libnss_resolve.so.2 $(readlink /usr/lib/libnss_resolve.so.2)
|
|
+ add_binary $(readlink -f /usr/lib/libnss_resolve.so.2)
|
|
|
|
add_dir /etc
|
|
echo "hosts: files dns" > $BUILDROOT/etc/nsswitch.conf
|
|
+
|
|
+ # the lua dns library (used in sysrescue-configuration.lua) requires /etc/hosts to exist
|
|
+ touch $BUILDROOT/etc/hosts
|
|
}
|
|
|
|
help() {
|