summaryrefslogtreecommitdiff
path: root/pcr-testing/plymouth/plymouth.encrypt_install
diff options
context:
space:
mode:
authorFreemor <freemor@freemor.ca>2018-11-23 17:15:39 -0400
committerFreemor <freemor@freemor.ca>2018-11-23 17:15:39 -0400
commitff368b7f4dd180b8f9fa04fd1cb32726de98a0fd (patch)
treec1f38e5b183f1c6d9818b49bf646f66e5aa0eb01 /pcr-testing/plymouth/plymouth.encrypt_install
parentc0f527d18c9ef4d30bac6a91189284362ce5026c (diff)
downloadabslibre-ff368b7f4dd180b8f9fa04fd1cb32726de98a0fd.tar.gz
abslibre-ff368b7f4dd180b8f9fa04fd1cb32726de98a0fd.tar.bz2
abslibre-ff368b7f4dd180b8f9fa04fd1cb32726de98a0fd.zip
Updated [plymouth] to address #2067
- Added parabola-logo.png - Updated referrences to arch-logo.png to parabola-logo.png - v0.9.3 -> 0.9.4 - removed a patch that seemed not to be necessary any more.
Diffstat (limited to 'pcr-testing/plymouth/plymouth.encrypt_install')
-rw-r--r--pcr-testing/plymouth/plymouth.encrypt_install52
1 files changed, 52 insertions, 0 deletions
diff --git a/pcr-testing/plymouth/plymouth.encrypt_install b/pcr-testing/plymouth/plymouth.encrypt_install
new file mode 100644
index 000000000..b2d7cbc1a
--- /dev/null
+++ b/pcr-testing/plymouth/plymouth.encrypt_install
@@ -0,0 +1,52 @@
+#!/bin/bash
+
+build() {
+ local mod
+
+ add_module dm-crypt
+ if [[ $CRYPTO_MODULES ]]; then
+ for mod in $CRYPTO_MODULES; do
+ add_module "$mod"
+ done
+ else
+ add_all_modules '/crypto/'
+ fi
+
+ add_binary "cryptsetup"
+ add_binary "dmsetup"
+ add_file "/usr/lib/udev/rules.d/10-dm.rules"
+ add_file "/usr/lib/udev/rules.d/13-dm-disk.rules"
+ add_file "/usr/lib/udev/rules.d/95-dm-notify.rules"
+ add_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.rules"
+ add_binary "/usr/lib/plymouth/label.so"
+ add_binary "/usr/lib/plymouth/text.so"
+ add_file "/usr/share/fonts/TTF/DejaVuSans.ttf"
+ add_file "/etc/fonts/fonts.conf"
+ add_file "/etc/fonts/conf.d/60-latin.conf"
+
+ # cryptsetup calls pthread_create(), which dlopen()s libgcc_s.so.1
+ add_binary "/usr/lib/libgcc_s.so.1"
+
+ add_runscript
+}
+
+help() {
+ cat <<HELPEOF
+This hook allows for an encrypted root device. Users should specify the device
+to be unlocked using 'cryptdevice=device:dmname' on the kernel command line,
+where 'device' is the path to the raw device, and 'dmname' is the name given to
+the device after unlocking, and will be available as /dev/mapper/dmname.
+
+For unlocking via keyfile, 'cryptkey=device:fstype:path' should be specified on
+the kernel cmdline, where 'device' represents the raw block device where the key
+exists, 'fstype' is the filesystem type of 'device' (or auto), and 'path' is
+the absolute path of the keyfile within the device.
+
+Without specifying a keyfile, you will be prompted for the password at runtime.
+This means you must have a keyboard available to input it, and you may need
+the keymap hook as well to ensure that the keyboard is using the layout you
+expect.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et: