This seems to work for me:

cat << EOF > /usr/share/initramfs-tools/hooks/flashcache
#!/bin/sh

case \$1 in
prereqs)
        echo "dmsetup"
        exit 0
        ;;
esac

. /usr/share/initramfs-tools/hook-functions

mkdir -p \$DESTDIR/sbin
copy_exec /sbin/flashcache_create

manual_add_modules flashcache
EOF
chmod +x /usr/share/initramfs-tools/hooks/flashcache
cat << EOF > /etc/initramfs-tools/scripts/local-premount/flashcache
#!/bin/sh
/sbin/flashcache_create [YOUR FLASHCACHE CREATE COMMAND]
EOF
chmod +x /etc/initramfs-tools/scripts/local-premount/flashcache
update-initramfs -u


Please note that this works for me, and might not work for you, it might eat 
all your data, or cause your cat to eat your goldfish.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1162424

Title:
  Boot scripts for write-thru and write-around cache creation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flashcache/+bug/1162424/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to