forked from artix/iso-profiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
482 B
13 lines
482 B
#!/bin/bash |
|
|
|
# Force early boot consolefont at live session |
|
mv -f /etc/mkinitcpio.conf.mod /etc/mkinitcpio.conf |
|
|
|
# Remove ecnryption-related stuff if unneeded from mkinitcpio.conf, default/grub and grub.cfg |
|
if [ ! -e /crypto_keyfile.bin ]; then |
|
sed -i 's|/crypto_keyfile.bin||' /etc/mkinitcpio.conf* |
|
sed -i 's|encrypt||' /etc/mkinitcpio.conf* |
|
sed -i 's|cryptkey=rootfs:/crypto_keyfile.bin||' /etc/default/grub /boot/grub/grub.cfg |
|
fi |
|
|
|
rm -f /etc/local.d/mkinitcpio.start
|
|
|