X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=hooks%2Flive;h=a018d9530bea53a3d79983a837104bd5d3e02b2b;hb=c967ebfc4e43fb16a0c2c140c66900712be95ab7;hp=dea7f0cbe10923818866decc0b23f4144c3a3a14;hpb=f62cc0eefdb0075075cbc46155ab91485a21a6fb;p=live-boot-grml.git diff --git a/hooks/live b/hooks/live index dea7f0c..a018d95 100755 --- a/hooks/live +++ b/hooks/live @@ -35,12 +35,16 @@ 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 # Executables copy_exec /usr/share/live-initramfs/live-reconfigure /bin copy_exec /usr/share/live-initramfs/live-preseed /bin +copy_exec /usr/share/live-initramfs/live-set-selections /bin # Scripts cp /usr/share/initramfs-tools/scripts/live-functions "${DESTDIR}"/scripts @@ -55,6 +59,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 +94,18 @@ 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 +if [ -x /usr/bin/rsync ] +then + copy_exec /usr/bin/rsync /bin +fi + # Filesystem: squashfs copy_exec /sbin/losetup /sbin manual_add_modules loop @@ -97,6 +117,12 @@ manual_add_modules unlzma manual_add_modules aufs manual_add_modules unionfs +# Filesystem: unionfs-fuse +if [ -x /usr/bin/unionfs-fuse ] +then + copy_exec /usr/bin/unionfs-fuse /bin +fi + # Filesystem: vfat manual_add_modules nls_cp437 manual_add_modules nls_iso8859-1 @@ -128,6 +154,15 @@ 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 if [ -x /sbin/udevadm ] then @@ -138,7 +173,10 @@ else copy_exec /sbin/udevtrigger /sbin copy_exec /sbin/udevsettle /sbin fi -copy_exec /usr/bin/udevinfo /bin +if [ -x /usr/bin/udevinfo ] +then + copy_exec /usr/bin/udevinfo /bin +fi # Program: wget if [ -x /usr/bin/wget ] @@ -146,6 +184,12 @@ 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