X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=hooks%2Flive;h=a59fe3b3b7404b986e7045d199c9fd3d6e70d125;hb=910796f91a3ce3211677659bf7c0d0bf214a1d05;hp=402f7ca1b2713fb98a1127961746e7d7572960e6;hpb=3d52fbcb4fe70132ade14759d76573b471294800;p=live-boot-grml.git diff --git a/hooks/live b/hooks/live index 402f7ca..a59fe3b 100755 --- a/hooks/live +++ b/hooks/live @@ -39,7 +39,6 @@ fi mkdir -p "${DESTDIR}"/lib/live-initramfs # Executables -copy_exec /usr/lib/live-initramfs/live-md5check /bin copy_exec /usr/share/live-initramfs/live-reconfigure /bin copy_exec /usr/share/live-initramfs/live-preseed /bin @@ -47,39 +46,21 @@ copy_exec /usr/share/live-initramfs/live-preseed /bin cp /usr/share/initramfs-tools/scripts/live-functions "${DESTDIR}"/scripts cp /usr/share/initramfs-tools/scripts/live-helpers "${DESTDIR}"/scripts -# Handling binaries +# Handling other stuff -# losetup -copy_exec /sbin/losetup /sbin - -# mount.cifs -if [ -x /sbin/mount.cifs ] -then - copy_exec /sbin/mount.cifs /sbin -fi - -# eject -copy_exec /usr/bin/eject /bin - -# udev -if [ "${BUILD_SYSTEM}" = "Ubuntu" ] +# Configuration: keymap (usefull when using encryption) +if [ -x /bin/loadkeys ] && [ -r /etc/console/boottime.kmap.gz ] then - mkdir -p "${DESTDIR}"/lib/udev + copy_exec /bin/loadkeys /bin - copy_exec /lib/udev/cdrom_id /lib/udev - copy_exec /lib/udev/path_id /lib/udev - copy_exec /lib/udev/vol_id /lib/udev + mkdir -p "${DESTDIR}"/etc + cp /etc/console/boottime.kmap.gz "${DESTDIR}"/etc fi -copy_exec /sbin/udevtrigger /sbin -copy_exec /sbin/udevsettle /sbin -copy_exec /usr/bin/udevinfo /bin - -# Handling kernel modules - # Filesystem: cifs if [ -x /sbin/mount.cifs ] then + copy_exec /sbin/mount.cifs /sbin manual_add_modules cifs fi @@ -87,11 +68,13 @@ fi manual_add_modules ext3 # Filesystem: squashfs +copy_exec /sbin/losetup /sbin manual_add_modules loop manual_add_modules squashfs -# Filesystem: unionfs +# Filesystem: unionfs/aufs manual_add_modules unionfs +manual_add_modules aufs # Filesystem: vfat manual_add_modules nls_cp437 @@ -101,6 +84,7 @@ manual_add_modules vfat # Hardware: cdrom manual_add_modules ide-cd +manual_add_modules ide-generic manual_add_modules ohci1394 manual_add_modules sbp2 manual_add_modules sr_mod @@ -108,11 +92,31 @@ manual_add_modules sr_mod # Hardware: network auto_add_modules net -# Custom keymap (usefull when using encryption) -if [ -x /bin/loadkeys ] && [ -r /etc/console/boottime.kmap.gz ] +# Program: eject +if [ -x /usr/bin/eject ] then - copy_exec /bin/loadkeys /bin + copy_exec /usr/bin/eject /bin +fi - mkdir -p "${DESTDIR}"/etc - cp /etc/console/boottime.kmap.gz "${DESTDIR}"/etc +# Program: md5sum +copy_exec /usr/bin/md5sum /bin + +# Program: udev +if [ "${BUILD_SYSTEM}" = "Ubuntu" ] +then + mkdir -p "${DESTDIR}"/lib/udev + + copy_exec /lib/udev/cdrom_id /lib/udev + copy_exec /lib/udev/path_id /lib/udev + copy_exec /lib/udev/vol_id /lib/udev +fi + +copy_exec /sbin/udevtrigger /sbin +copy_exec /sbin/udevsettle /sbin +copy_exec /usr/bin/udevinfo /bin + +# Program: wget +if [ -x /usr/bin/wget ] +then + copy_exec /usr/bin/wget /bin fi