X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=backend%2Finitramfs-tools%2Flive.hook;h=e08216e0998af4ab660cf430fcde4a308fc4e0e4;hb=4fa5c227e5ec0dab934c5895da9d2f172593ad60;hp=da0457c97eb0649bef11d531fd29eda7b2f91e4b;hpb=bf57d165d02eef50d81c758d9995f5772cceff31;p=live-boot-grml.git diff --git a/backend/initramfs-tools/live.hook b/backend/initramfs-tools/live.hook index da0457c..e08216e 100755 --- a/backend/initramfs-tools/live.hook +++ b/backend/initramfs-tools/live.hook @@ -39,6 +39,9 @@ cp -a /bin/live-boot /lib/live/boot "${DESTDIR}/bin" mkdir -p "${DESTDIR}/lib/live" cp -a /lib/live/boot "${DESTDIR}/lib/live" +mkdir -p "${DESTDIR}/etc/live" +cp -a /etc/live/boot.conf /etc/live/boot "${DESTDIR}/etc/live" + # klibc dependencies for FILE in /lib/libacl* /lib/libblkid* /lib/libuuid* /lib/libdevmapper* /lib/libattr* do @@ -221,23 +224,19 @@ fi # Some experimental stuff -case "${LIVE_DNS}" in - true) - [ "${QUIET}" ] || echo -n " dns" +[ "${QUIET}" ] || echo -n " dns" - # /lib/libnss_dns.so.*:a DNS - # /lib/libnss_files.so.*: /etc/hosts and /etc/passwd - # /lib/libnss_compat.so.*: /etc/passwd +# /lib/libnss_dns.so.*:a DNS +# /lib/libnss_files.so.*: /etc/hosts and /etc/passwd +# /lib/libnss_compat.so.*: /etc/passwd - for _SHLIB in $(find /lib -name 'libnss_dns.so.*') - do - copy_exec "${_SHLIB}" - done +for _SHLIB in $(find /lib -name 'libnss_dns.so.*') +do + copy_exec "${_SHLIB}" +done - # might be needed if /etc/hosts is used - #mkdir -p "${DESTDIR}/etc" - #cp -p /etc/nsswitch.conf "${DESTDIR}/etc" - ;; -esac +# might be needed if /etc/hosts is used +#mkdir -p "${DESTDIR}/etc" +#cp -p /etc/nsswitch.conf "${DESTDIR}/etc" [ "${QUIET}" ] || echo .