File tree Expand file tree Collapse file tree 4 files changed +71
-0
lines changed Expand file tree Collapse file tree 4 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ PREFIX ?= /usr/local
2
2
SYSTEMD_SYSTEM_PATH ?= /usr/lib
3
3
4
4
install :
5
+ install -vDm 644 src/* .conf -t $(DESTDIR ) /etc/mkinitcpio-systemd-tool/config
5
6
install -vDm 644 src/fstab -t $(DESTDIR ) /etc/mkinitcpio-systemd-tool/config
6
7
install -vDm 644 src/crypttab -t $(DESTDIR ) /etc/mkinitcpio-systemd-tool/config
7
8
install -vDm 644 src/initrd-network.network -t $(DESTDIR ) /etc/mkinitcpio-systemd-tool/network/
Original file line number Diff line number Diff line change
1
+ # This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool
2
+
3
+ # Provide enhanced configuration for usb keyboard inside initramfs.
4
+
5
+ # file location in initramfs:
6
+ # /etc/modprobe.d/initrd-util-usb-hcd.conf
7
+
8
+ # file location in real-root:
9
+ # /etc/mkinitcpio-systemd-tool/config/initrd-util-usb-hcd.conf
10
+
11
+ # required module load order: xhci-hcd ehci-hcd uhci-hcd ohci-hcd
12
+
13
+ softdep ehci-hcd pre: xhci-hcd
14
+ softdep uhci-hcd pre: ehci-hcd
15
+ softdep ohci-hcd pre: uhci-hcd
Original file line number Diff line number Diff line change
1
+ # This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool
2
+
3
+ # Provide enhanced configuration for usb keyboard inside initramfs.
4
+
5
+ # note:
6
+ # * sometimes usb drives are not properly detected/loaded for initrd
7
+ # * try to enable this service to see if that resolves the issue
8
+
9
+ [Unit]
10
+ Description =Initrd/Util USB-HCD Service
11
+ ConditionPathExists =/etc/initrd-release
12
+ DefaultDependencies =no
13
+
14
+ [Service]
15
+ Type =oneshot
16
+ RemainAfterExit =true
17
+ ExecStart =/bin/true
18
+
19
+ [Install]
20
+ WantedBy =sysinit.target
21
+
22
+ [X-SystemdTool]
23
+
24
+ # driver terminology:
25
+ # xhci = eXtensible Host Controller Interface, USB 3.0
26
+ # ehci = Enhanced Host Controller Interface, USB 2.0
27
+ # *hcd = host controller driver
28
+ # *pci = pci bus glue
29
+
30
+ #
31
+ # provision usb modules
32
+ #
33
+
34
+ # http://cateee.net/lkddb/web-lkddb/USB_XHCI_HCD.html
35
+ InitrdCall =add_module xhci_hcd
36
+ InitrdCall =add_module xhci_pci
37
+
38
+ # http://cateee.net/lkddb/web-lkddb/USB_EHCI_HCD.html
39
+ InitrdCall =add_module ehci_hcd
40
+ InitrdCall =add_module ehci_pci
41
+
42
+ # http://cateee.net/lkddb/web-lkddb/HID_GENERIC.html
43
+ InitrdCall =add_module hid_generic
44
+
45
+ #
46
+ # provision module config
47
+ #
48
+
49
+ # enforce module load order
50
+ InitrdPath =/etc/modprobe.d/initrd-util-usb-hcd.conf source =/etc/mkinitcpio-systemd-tool/config/initrd-util-usb-hcd.conf
Original file line number Diff line number Diff line change 22
22
23
23
machine .service_enable_list ([
24
24
"root-entry.mount" ,
25
+ "initrd-util-usb-hcd.service" ,
25
26
])
26
27
27
28
machine .produce_boot_result ()
28
29
29
30
path_list = [
30
31
31
32
"/etc/systemd/system/root-entry.mount" ,
33
+
34
+ "/etc/modprobe.d/initrd-util-usb-hcd.conf" ,
32
35
33
36
]
34
37
37
40
"/etc/systemd/system/custom-tester.target.wants/root-entry.mount" ,
38
41
"/etc/systemd/system/super-duper.mount.requires/root-entry.mount" ,
39
42
43
+ "/etc/systemd/system/sysinit.target.wants/initrd-util-usb-hcd.service" ,
44
+
40
45
]
41
46
42
47
text_list = [
You can’t perform that action at this time.
0 commit comments