diff options
Diffstat (limited to 'install')
-rw-r--r-- | install/base | 3 | ||||
-rw-r--r-- | install/memdisk | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/install/base b/install/base index a117020..d1aa176 100644 --- a/install/base +++ b/install/base @@ -13,7 +13,10 @@ install () add_dir "/usr/lib" add_dir "/usr/sbin" + add_device "/dev/null" c 1 3 + add_device "/dev/zero" c 1 5 add_device "/dev/console" c 5 1 + add_device "/dev/mem" c 1 1 add_binary /lib/initcpio/busybox /bin/busybox add_binary /sbin/modprobe diff --git a/install/memdisk b/install/memdisk new file mode 100644 index 0000000..d2a844d --- /dev/null +++ b/install/memdisk @@ -0,0 +1,20 @@ +# vim:set ft=sh: + +install () +{ + MODULES="phram mtdblock" + BINARIES="/usr/bin/memdiskfind" + FILES="" + SCRIPT="memdisk" + add_file /lib/initcpio/udev/01-memdisk.rules /lib/udev/rules.d/01-memdisk.rules +} + +help () +{ +cat <<HELPEOF + This hook detects a virtual disk created by the memdisk + tool (http://syslinux.zytor.com/wiki/index.php/MEMDISK). + + It requires memdiskfind from syslinux 4.00 or newer. +HELPEOF +} |