update bootloader arch.conf

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-01-31 20:26:46 +01:00
parent f8322b5d62
commit 3a0d6decd7

View File

@@ -937,29 +937,32 @@ parse_params () {
prepare_bootloader () {
# check for accessible uefi partition
ls /sys/firmware/efi/efivars > /dev/null
if [ $? -eq 0 ]; then
printf "UEFI Environmint is ok'\n"
if [ $dryrun -eq 1 ]; then
printf "${MAGENTA}Would update bootloader config'${NO_COLOR}\n"
else
ls /sys/firmware/efi/efivars > /dev/null
if [ $? -eq 0 ]; then
printf "UEFI Environmint is ok'\n"
mkdir -p /boot/loader/entries
mkdir -p /boot/loader/entries
printf '%s\n' \
"default arch" \
"timeout 3" \
"editor yes" \
"console-mode max" \
> /boot/loader/loader.conf
printf '%s\n' \
"default arch" \
"timeout 3" \
"editor yes" \
"console-mode max" \
> /boot/loader/loader.conf
printf '%s\n' \
"default arch" \
"title Arch Linux (Mainline)" \
"linux /vmlinuz-linux" \
"initrd /intel-ucode.img" \
"initrd /initramfs-linux.img" \
"options rootflags=subvol=root root=LABEL=${label_prefix}-${disk_label_root}" \
> /boot/loader/entries/arch.conf
printf '%s\n' \
"title Arch Linux (Mainline)" \
"linux /vmlinuz-linux" \
"initrd /intel-ucode.img" \
"initrd /initramfs-linux.img" \
"options rootflags=subvol=root root=LABEL=${label_prefix}-${disk_label_root}" \
> /boot/loader/entries/arch.conf
bootctl status
bootctl status
fi
fi
}