update bootloader arch.conf
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -937,6 +937,9 @@ parse_params () {
|
|||||||
|
|
||||||
prepare_bootloader () {
|
prepare_bootloader () {
|
||||||
# check for accessible uefi partition
|
# check for accessible uefi partition
|
||||||
|
if [ $dryrun -eq 1 ]; then
|
||||||
|
printf "${MAGENTA}Would update bootloader config'${NO_COLOR}\n"
|
||||||
|
else
|
||||||
ls /sys/firmware/efi/efivars > /dev/null
|
ls /sys/firmware/efi/efivars > /dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
printf "UEFI Environmint is ok'\n"
|
printf "UEFI Environmint is ok'\n"
|
||||||
@@ -951,7 +954,6 @@ prepare_bootloader () {
|
|||||||
> /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" \
|
||||||
@@ -961,6 +963,7 @@ prepare_bootloader () {
|
|||||||
|
|
||||||
bootctl status
|
bootctl status
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_locale () {
|
prepare_locale () {
|
||||||
|
|||||||
Reference in New Issue
Block a user