X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=hooks%2Flive;h=aa7b020ac9eb117f7972b7785d522b2f67c7791f;hb=97846cf1b1af2eae44d7c7d1e25ed6246a208a59;hp=b85f64608afccce9beb6216f59ebc3a129d13e90;hpb=69f645369c59370f705bcab52599659df57c16ec;p=live-boot-grml.git diff --git a/hooks/live b/hooks/live index b85f646..aa7b020 100755 --- a/hooks/live +++ b/hooks/live @@ -35,6 +35,9 @@ then cp /etc/live.conf "${DESTDIR}"/etc fi +mkdir -p "${DESTDIR}"/usr/share/live-initramfs +cp /usr/share/live-initramfs/languagelist "${DESTDIR}"/usr/share/live-initramfs + # Directories mkdir -p "${DESTDIR}"/lib/live-initramfs @@ -55,6 +58,16 @@ do fi done +# udev dependencies (squeeze and newer) +for FILE in /lib/udev/*_id +do + if [ ! -e "${DESTDIR}/${FILE}" ] + then + mkdir -p "${DESTDIR}/lib/udev" + copy_exec "${FILE}" /lib/udev + fi +done + # Handling other stuff # Configuration: keymap (usefull when using encryption) @@ -80,12 +93,15 @@ then manual_add_modules cifs fi -# Filesystem: ext3 +# Filesystem: ext3/ext4 manual_add_modules ext3 +manual_add_modules ext4 # Filesystem: jffs2 manual_add_modules jffs2 +copy_exec /usr/bin/rsync /bin + # Filesystem: squashfs copy_exec /sbin/losetup /sbin manual_add_modules loop @@ -93,9 +109,9 @@ manual_add_modules squashfs manual_add_modules sqlzma manual_add_modules unlzma -# Filesystem: unionfs/aufs -manual_add_modules unionfs +# Filesystem: aufs/unionfs manual_add_modules aufs +manual_add_modules unionfs # Filesystem: vfat manual_add_modules nls_cp437 @@ -103,6 +119,9 @@ manual_add_modules nls_iso8859-1 manual_add_modules nls_utf8 manual_add_modules vfat +# Filesystem: ntfs +manual_add_modules ntfs + # Hardware: cdrom manual_add_modules ide-cd manual_add_modules ide-generic @@ -125,13 +144,56 @@ fi # Program: md5sum copy_exec /usr/bin/md5sum /bin +# Program: cpio +# busybox and klibc lacks --no-absolute-filenames and --sparse, needed for snapshots +if [ -e "${DESTDIR}/bin/cpio" ] +then + # Override already present cpio's, mostly klibc's + rm "${DESTDIR}/bin/cpio" +fi +copy_exec /bin/cpio /bin + # Program: udev -copy_exec /sbin/udevtrigger /sbin -copy_exec /sbin/udevsettle /sbin -copy_exec /usr/bin/udevinfo /bin +if [ -x /sbin/udevadm ] +then + # lenny + copy_exec /sbin/udevadm /sbin +else + # etch + copy_exec /sbin/udevtrigger /sbin + copy_exec /sbin/udevsettle /sbin +fi +if [ -x /usr/bin/udevinfo ] +then + copy_exec /usr/bin/udevinfo /bin +fi # Program: wget if [ -x /usr/bin/wget ] then copy_exec /usr/bin/wget /bin fi + +# Program: blockdev +if [ -x /sbin/blockdev ] +then + copy_exec /sbin/blockdev /sbin +fi + +# FUSE kernel module +manual_add_modules fuse + +# FUSE filesystem: httpfs2 +if [ -x /usr/bin/httpfs2_ssl ] +then + copy_exec /usr/bin/httpfs2_ssl /bin/httpfs +elif [ -x /usr/bin/httpfs2 ] +then + copy_exec /usr/bin/httpfs2 /bin/httpfs +fi + +# FUSE filesystem: curlftpfs +if [ -x /usr/bin/curlftpfs ] +then + copy_exec /usr/bin/curlftpfs /bin +fi