update bootloader arch.conf
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user