diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-04-22 01:00:28 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-04-22 01:00:28 +0200 |
commit | ea20a441f8fecc9fa84e0e1f12c4b71bf436f872 (patch) | |
tree | 1f2ff1cec1b0629f4ba5639729c9438bcdaf7d44 /install/base | |
parent | acc783c8af5514083e542fe7d91be6a1c5920ad7 (diff) | |
download | mkinitcpio-ea20a441f8fecc9fa84e0e1f12c4b71bf436f872.tar.gz mkinitcpio-ea20a441f8fecc9fa84e0e1f12c4b71bf436f872.tar.xz |
Hook updates and changes...
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@7 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'install/base')
-rw-r--r-- | install/base | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/install/base b/install/base new file mode 100644 index 0000000..9cd2030 --- /dev/null +++ b/install/base @@ -0,0 +1,32 @@ +# vim:set ft=sh: + +install () +{ + add_dir "/proc" + add_dir "/sys" + add_dir "/dev" + + add_nod "/dev/null" 644 c 1 3 + add_nod "/dev/zero" 644 c 1 5 + add_nod "/dev/console" 644 c 5 1 + + for f in /lib -name klibc-*.so; do + add_file $f + done + + for f in /usr/lib/klibc/bin/*; do + add_file $f /bin/$(basename $f) + done + + add_file "/lib/initramfs/init" "/init" + add_file "${CONFIG}" "/config" +} + +help () +{ +cat <<HELPEOF + This hook sets up all initial directories and installs base + klibc utilities and libraries. DO NOT remove this one unless + you know what you're doing. +HELPEOF +} |