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