Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (32 sloc) 0.931 kb
1b2b6e87 »
2011-04-18 mkinitcpio install file
1 install() {
2 # base filesystem structure
a1ee8f31 »
2011-04-20 make /new_root as part of ubase
3 for dir in proc sys dev {,s}bin usr{,/bin,/lib,/sbin} run new_root; do
1b2b6e87 »
2011-04-18 mkinitcpio install file
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
54429e39 »
2011-04-19 simplify ubase install
12 for rules in {50-firmware,50-udev-default,60-persistent-storage,80-drivers}.rules; do
1b2b6e87 »
2011-04-18 mkinitcpio install file
13 add_file /lib/udev/rules.d/$rules
14 done
15
16 # udev tools
54429e39 »
2011-04-19 simplify ubase install
17 for tool in firmware {ata,path,scsi,usb}_id; do
1b2b6e87 »
2011-04-18 mkinitcpio install file
18 add_file /lib/udev/$tool
19 done
20
21 # necessary binary tools
0b883075 »
2011-04-23 cinit => dinit
22 add_binary /lib/initcpio/dinit /init
1b2b6e87 »
2011-04-18 mkinitcpio install file
23 add_binary /lib/initcpio/busybox /bin/busybox
24 for sbin in /sbin/{modprobe,blkid,udevd,udevadm}; do
25 add_binary $sbin
26 done
49f1e379 »
2011-04-23 add CYA symlink for load-modules.sh
27 add_symlink2 /lib/udev/load-modules.sh /sbin/modprobe
1b2b6e87 »
2011-04-18 mkinitcpio install file
28
29 add_file "$CONFIG" /config
30 }
31
32 help() {
54429e39 »
2011-04-19 simplify ubase install
33 cat <<HELPEOF
1b2b6e87 »
2011-04-18 mkinitcpio install file
34 This hook sets up all initial directories and installs base utilities,
35 including udev.
36 HELPEOF
37 }
38
39 # vim: set et sw=2 ft=sh:
Something went wrong with that request. Please try again.