X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=hooks%2Flive;h=16a2d0cd4c99c17a097fa5c5e2636e818e856c36;hb=b6e6b378482d5d5573679705d6cb0bfd51a9a61f;hp=5973d2002f48e532c026332da6287ac4008332be;hpb=15eba58b6d201ca6881f2d96753381afc0039cc8;p=live-boot-grml.git diff --git a/hooks/live b/hooks/live index 5973d20..16a2d0c 100755 --- a/hooks/live +++ b/hooks/live @@ -1,6 +1,6 @@ #!/bin/sh -# initramfs hook for live-initramfs (Debian Live) +# initramfs hook for live-boot (Debian Live) set -e @@ -22,28 +22,20 @@ esac . /usr/share/initramfs-tools/hook-functions -# live-initramfs hook +# live-boot hook -# Handling live-initramfs +# Handling live-boot # Configuration -if [ -r /etc/live.conf ] -then - . /etc/live.conf - - mkdir -p "${DESTDIR}"/etc - 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 +mkdir -p "${DESTDIR}"/usr/share/live-boot +cp /usr/share/live-boot/languagelist "${DESTDIR}"/usr/share/live-boot # Directories -mkdir -p "${DESTDIR}"/lib/live-initramfs +mkdir -p "${DESTDIR}"/lib/live-boot # Executables -copy_exec /usr/share/live-initramfs/live-reconfigure /bin -copy_exec /usr/share/live-initramfs/live-preseed /bin +copy_exec /usr/share/live-boot/live-reconfigure /bin +copy_exec /usr/share/live-boot/live-preseed /bin # Scripts cp /usr/share/initramfs-tools/scripts/live-functions "${DESTDIR}"/scripts @@ -68,6 +60,12 @@ do fi done +if [ -e /lib/udev/rules.d/60-cdrom_id.rules ] +then + mkdir -p ${DESTDIR}/lib/udev/rules.d + cp -p /lib/udev/rules.d/60-cdrom_id.rules ${DESTDIR}/lib/udev/rules.d +fi + # Handling other stuff # Configuration: keymap (usefull when using encryption) @@ -86,6 +84,9 @@ then uuidgen -r > "${DESTDIR}"/conf/uuid.conf fi +# Filesystem: btrfs +manual_add_modules btrfs + # Filesystem: cifs if [ -x /sbin/mount.cifs ] then @@ -153,6 +154,13 @@ fi # Program: md5sum copy_exec /usr/bin/md5sum /bin +# Program: memdisk +if [ -x /usr/bin/memdiskfind ] +then + copy_exec /usr/bin/memdiskfind + manual_add_modules phram mtdblock +fi + # Program: cpio # busybox and klibc lacks --no-absolute-filenames and --sparse, needed for snapshots if [ -e "${DESTDIR}/bin/cpio" ] @@ -206,3 +214,12 @@ if [ -x /usr/bin/curlftpfs ] then copy_exec /usr/bin/curlftpfs /bin fi + +# iSCSI +if [ -x /usr/sbin/iscsistart ] +then + copy_exec /usr/sbin/iscsistart /bin + #manual_add_modules ib_iser + manual_add_modules iscsi_tcp + manual_add_modules crc32c +fi