On 11/29/2011 07:16 AM, Thomas Bächler wrote:
Am 28.11.2011 16:37, schrieb Gerardo Exequiel Pozzi:
Not that mkinitcpio-0.8.0 hits core, I pushed all archiso patched to
master. Wait for next next testbuild, or build yourself!

8bd0674 [archiso] Add DNS resolver support to archiso_pxe_common
The DNS resolver does not work. First, the symlinks
/lib/libnss_{files,dns}.so.2 are missing, only the
libnss_{files,dns}-2.14.1.so are there.

If I create the right symlinks, the resolver seems to do something, but
times out. Using an IP address works fine. I don't know what's wrong
with the resolver, I might have a look later.

I inserted an IP address instead of a name for the moment, you can try
netbooting by running
  qemu -m 1G -kernel gpxe.lkrn [1]
Download takes a while, but the image boots up fine.

[1] https://releng.archlinux.org/pxeboot/gpxe_text.lkrn


brb! I always use bad add_symlink()! (confusion with ln -s)
add_symlink symlink file
ln -s file symlink

Fixed on master.

commit f3a3526ab01ceea9cf84828c44a718a46f6311ee
Author: Gerardo Exequiel Pozzi <[email protected]>
Date:   Tue Nov 29 09:39:30 2011 -0300

    [archiso] Fix libnss symlinks.

    Otherwise does not work.

    22100 Nov 29 09:29 ./lib/libnss_dns-2.14.1.so
       20 Nov 29 09:29 ./lib/libnss_dns.so.2 -> libnss_dns-2.14.1.so
    46732 Nov 29 09:29 ./lib/libnss_files-2.14.1.so
       22 Nov 29 09:29 ./lib/libnss_files.so.2 -> libnss_files-2.14.1.so

    Looks like my test was made before introducing symlinks
    and using directly libnss_dns-$VERSION.so.2 as libnss_dns.so.2.

    Signed-off-by: Gerardo Exequiel Pozzi <[email protected]>

diff --git a/archiso/install/archiso_pxe_common b/archiso/install/archiso_pxe_common
index 7dc1ebb..ce54f7a 100644
--- a/archiso/install/archiso_pxe_common
+++ b/archiso/install/archiso_pxe_common
@@ -18,9 +18,9 @@ build ()
     add_binary "/lib/initcpio/ipconfig" "/bin/ipconfig"

     # Add hosts support files+dns
-    add_symlink $(readlink /lib/libnss_files.so.2) /lib/libnss_files.so.2
+    add_symlink /lib/libnss_files.so.2 $(readlink /lib/libnss_files.so.2)
     add_binary $(readlink -f /lib/libnss_files.so.2)
-    add_symlink $(readlink /lib/libnss_dns.so.2) /lib/libnss_dns.so.2
+    add_symlink /lib/libnss_dns.so.2 $(readlink /lib/libnss_dns.so.2)
     add_binary $(readlink -f /lib/libnss_dns.so.2)
     echo "hosts: files dns" > $BUILDROOT/etc/nsswitch.conf
 }
.






--
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1

Reply via email to