projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid overlay files of libnss* ending up in initramfs
[live-boot-grml.git]
/
backend
/
initramfs-tools
/
live.hook
diff --git
a/backend/initramfs-tools/live.hook
b/backend/initramfs-tools/live.hook
index
b37f54f
..
7a2bd13
100755
(executable)
--- a/
backend/initramfs-tools/live.hook
+++ b/
backend/initramfs-tools/live.hook
@@
-16,6
+16,12
@@
do
fi
done
fi
done
+# Grml version information:
+if [ -r /etc/grml_version ]
+then
+ cp /etc/grml_version "${DESTDIR}"/etc
+fi
+
# Checking live-boot
if [ ! -e /bin/live-boot ]
then
# Checking live-boot
if [ ! -e /bin/live-boot ]
then
@@
-240,7
+246,7
@@
fi
# libnss_files.so.*: /etc/hosts and /etc/passwd
# libnss_compat.so.*: /etc/passwd
# libnss_files.so.*: /etc/hosts and /etc/passwd
# libnss_compat.so.*: /etc/passwd
-for _SHLIB in $(find /lib /usr/lib -name 'libnss_dns.so.*' -o -name 'libnss_files.so.*')
+for _SHLIB in $(find /lib /usr/lib -name 'libnss_dns.so.*' -o -name 'libnss_files.so.*'
| grep -v '/lib/live'
)
do
copy_exec "${_SHLIB}"
done
do
copy_exec "${_SHLIB}"
done
@@
-251,4
+257,16
@@
then
echo "hosts: files dns" > "${DESTDIR}/etc/nsswitch.conf"
fi
echo "hosts: files dns" > "${DESTDIR}/etc/nsswitch.conf"
fi
+# vlan support
+if [ -x /sbin/vconfig ]
+then
+ copy_exec /sbin/vconfig
+ manual_add_modules 8021q
+fi
+
+if [ -x /sbin/ethtool ]
+then
+ copy_exec /sbin/ethtool
+fi
+
[ "${QUIET}" ] || echo .
[ "${QUIET}" ] || echo .