From f98362f371e259fa45b089c4183a5035285beb65 Mon Sep 17 00:00:00 2001 From: David P Date: Sun, 2 Jul 2017 18:45:15 -0400 Subject: Added pythonqt and mkinitcpio-openswap to [pcr] --- pcr/mkinitcpio-openswap/openswap.install | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pcr/mkinitcpio-openswap/openswap.install (limited to 'pcr/mkinitcpio-openswap/openswap.install') diff --git a/pcr/mkinitcpio-openswap/openswap.install b/pcr/mkinitcpio-openswap/openswap.install new file mode 100644 index 000000000..95d59a3d6 --- /dev/null +++ b/pcr/mkinitcpio-openswap/openswap.install @@ -0,0 +1,27 @@ +build () +{ + grep "swap_device=" /etc/openswap.conf > "$BUILDROOT/openswap.conf" + grep "crypt_swap_name=" /etc/openswap.conf >> "$BUILDROOT/openswap.conf" + grep "keyfile_device=" /etc/openswap.conf >> "$BUILDROOT/openswap.conf" + grep "keyfile_filename=" /etc/openswap.conf >> "$BUILDROOT/openswap.conf" + grep "keyfile_device_mount_options=" /etc/openswap.conf >> "$BUILDROOT/openswap.conf" + grep "cryptsetup_options=" /etc/openswap.conf >> "$BUILDROOT/openswap.conf" + + source "$BUILDROOT/openswap.conf" + + if [ -z "$swap_device" ]; then + warning "swap_device variable is not set" + fi + + if [ -z "$crypt_swap_name" ]; then + warning "crypt_swap_name variable is not set" + fi + + add_runscript +} +help () +{ +cat<