Skip to content
Newer
Older
100644 39 lines (31 sloc) 875 Bytes
1b2b6e8 @falconindy mkinitcpio install file
authored Apr 18, 2011
1 install() {
2 # base filesystem structure
a1ee8f3 @falconindy make /new_root as part of ubase
authored Apr 20, 2011
3 for dir in proc sys dev {,s}bin usr{,/bin,/lib,/sbin} run new_root; do
1b2b6e8 @falconindy mkinitcpio install file
authored Apr 19, 2011
4 add_dir /$dir
5 done
6
7 # udev config
8 add_file /etc/udev/udev.conf
9 add_file /etc/modprobe.d/usb-load-ehci-first.conf
10
11 # udev rules
54429e3 @falconindy simplify ubase install
authored Apr 19, 2011
12 for rules in {50-firmware,50-udev-default,60-persistent-storage,80-drivers}.rules; do
1b2b6e8 @falconindy mkinitcpio install file
authored Apr 19, 2011
13 add_file /lib/udev/rules.d/$rules
14 done
15
16 # udev tools
54429e3 @falconindy simplify ubase install
authored Apr 19, 2011
17 for tool in firmware {ata,path,scsi,usb}_id; do
1b2b6e8 @falconindy mkinitcpio install file
authored Apr 19, 2011
18 add_file /lib/udev/$tool
19 done
20
21 # necessary binary tools
22 add_binary /lib/initcpio/cinit /init
23 add_binary /lib/initcpio/busybox /bin/busybox
24 for sbin in /sbin/{modprobe,blkid,udevd,udevadm}; do
25 add_binary $sbin
26 done
27
28 add_file "$CONFIG" /config
29 }
30
31 help() {
54429e3 @falconindy simplify ubase install
authored Apr 19, 2011
32 cat <<HELPEOF
1b2b6e8 @falconindy mkinitcpio install file
authored Apr 19, 2011
33 This hook sets up all initial directories and installs base utilities,
34 including udev.
35 HELPEOF
36 }
37
38 # vim: set et sw=2 ft=sh:
Something went wrong with that request. Please try again.