#!/bin/bash drive="/dev/nvme0n1" part="1" p_cryptdevice="/dev/nvme0n1p2:main" p_root="/dev/mapper/main-root" p_swap="/dev/mapper/main-swap" crypt="cryptdevice=${p_cryptdevice} root=${p_root} rw" resume="resume=${p_swap}" silent="quiet" efibootmgr -c -d ${drive} -p ${part} -l \vmlinuz-linux -L "Arch Linux efistub Fallback" -u "initrd=\initramfs-linux-fallback.img ${crypt}" efibootmgr -c -d ${drive} -p ${part} -l \vmlinuz-linux -L "Arch Linux efistub" -u "initrd=\initramfs-linux.img ${silent} ${crypt} ${resume}"