summaryrefslogtreecommitdiff
path: root/libre/systemd/initcpio-install-udev
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-07-02 01:53:26 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-07-02 02:12:26 -0300
commitafeede5010ce8a9a0f93db8cd2bc300163774a73 (patch)
tree298c74f97f2314fd91a2e5a7cf4a183fb555ff8c /libre/systemd/initcpio-install-udev
parentb7f46a5d27e88f93a71c51f27e7b33c85792ae93 (diff)
downloadabslibre-afeede5010ce8a9a0f93db8cd2bc300163774a73.tar.gz
abslibre-afeede5010ce8a9a0f93db8cd2bc300163774a73.tar.bz2
abslibre-afeede5010ce8a9a0f93db8cd2bc300163774a73.zip
systemd: add new package to [libre]
Diffstat (limited to 'libre/systemd/initcpio-install-udev')
-rw-r--r--libre/systemd/initcpio-install-udev29
1 files changed, 29 insertions, 0 deletions
diff --git a/libre/systemd/initcpio-install-udev b/libre/systemd/initcpio-install-udev
new file mode 100644
index 000000000..419c19e58
--- /dev/null
+++ b/libre/systemd/initcpio-install-udev
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+build() {
+ local rules tool
+
+ add_file "/etc/udev/udev.conf"
+ add_binary /usr/lib/systemd/systemd-udevd
+ add_binary /usr/bin/udevadm
+ add_binary /usr/bin/systemd-tmpfiles
+
+ for rules in 50-udev-default.rules 60-persistent-storage.rules 64-btrfs.rules 80-drivers.rules; do
+ add_file "/usr/lib/udev/rules.d/$rules"
+ done
+ for tool in ata_id scsi_id; do
+ add_file "/usr/lib/udev/$tool"
+ done
+
+ add_runscript
+}
+
+help() {
+ cat <<HELPEOF
+This hook will use udev to create your root device node and detect the needed
+modules for your root device. It is also required for firmware loading in
+initramfs. It is recommended to use this hook.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et: