diff options
author | Thomas Bächler <thomas@archlinux.org> | 2014-08-31 09:13:29 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2014-08-31 09:13:29 +0200 |
commit | b209e8c5e965965c50878fb57a628bca83a06f8d (patch) | |
tree | 95ba21162671414612926720464e0f9c24566d70 /install | |
parent | ea4c4154205372154457c794513ae46b61ea4e4c (diff) | |
download | mkinitcpio-b209e8c5e965965c50878fb57a628bca83a06f8d.tar.gz mkinitcpio-b209e8c5e965965c50878fb57a628bca83a06f8d.tar.xz |
Add 'hostdata' hook
This hook adds host-specific configuration to the image. Currently,
it adds the hostname and machine-id files for usage with journald.
Diffstat (limited to 'install')
-rw-r--r-- | install/hostdata | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/install/hostdata b/install/hostdata new file mode 100644 index 0000000..60b2c9b --- /dev/null +++ b/install/hostdata @@ -0,0 +1,14 @@ +#!/bin/bash + +build() { + add_file /etc/machine-id + add_file /etc/hostname +} + +help() { + cat <<HELPEOF +This hook installs host-specific configuration files into the initramfs. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: |