Ubuntu Pastebin

Paste from ogra at Tue, 29 Sep 2015 15:29:08 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
root@aleph2:/unpack# cat /usr/share/initramfs-tools/hooks/do-dns
#!/bin/sh

set -e

PREREQ=""

# Output pre-requisites
prereqs()
{
        echo "$PREREQ"
}

case "$1" in
    prereqs)
        prereqs
        exit 0
        ;;
esac

. /usr/share/initramfs-tools/hook-functions

for file in libnss_dns libnss_files libresolv; do
    libpath=$(find /lib -name $file.so*)
    copy_exec $libpath
done

echo "hosts: files dns" >$DESTDIR/etc/nsswitch.conf
echo "127.0.0.1 localhost" >$DESTDIR/etc/hosts
Download as text