i made the mkinitcpio stuff.
i updated grub again that worked. but there was no 5.10 listing
however i have to go to work so i have to get back to it the day after tomorrow i appreciate your time and effort so much thank you.
i made the mkinitcpio stuff.
i updated grub again that worked. but there was no 5.10 listing
however i have to go to work so i have to get back to it the day after tomorrow i appreciate your time and effort so much thank you.
well your update-grub doesnt work because of the error on the 272 line, thats why the kernels are not listed… ok, so when you have the time do this from chroot:
run this command:
cat /etc/grub.d/40_custom
and copy the following lines here:
270-275
well i have time to give you that.
/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
yes the conf is:
cat -n /boot/grub/grub.cfg
edit:
the best would be to post output from these commands:
cat -n /usr/sbin/grub-mkconfig
cat -n /etc/default/grub
cat -n /boot/grub/grub.cfg
you cant use a kernel 5.4 lts on this config ( Zen2 )
minimum version required is 5.10 LTS kernel
sudo manjaro chroot -a
pacman -Syyu
mhwd -r linux54
pacman -S xorg-xdpyinfo mesa-utils
pacman -S linux510 linux510-headers linux510-nvidia-470xx
pacman -S linux515 linux515-headers linux515-nvidia-470xx
pacman -S linux517 linux517-headers linux517-nvidia-470xx
mkinitcpio -P
update-grub
sync
exit ( end chroot )
Manjaro != Windows
Ensure your system is fully updated - you may need to use TTY
As you are using Plasma - custom themes may cause such behaviour
Okay I had time to look at it and i start get really disoriented. I don’t think i ever had a 5.4 kernel installed. so i don’t know where the grub listing comes from. im not using a 5.4 kernel though and I don’t think i have used it. However I did install 5.10, 5.15, 5.17 as per @stephane . the grub error mentioned by @brahma still exits though. so Here is the desired output.
I can not test @linux-aarhus theory until the grub issue is resolved as the current grub won’t find the required kernel. Altough `update-grub´ didn’t break anything when i tried to install 5.10 the first time.
grub.cfg
1 #
2 # DO NOT EDIT THIS FILE
3 #
4 # It is automatically generated by grub-mkconfig using templates
5 # from /etc/grub.d and settings from /etc/default/grub
6 #
7
8 ### BEGIN /etc/grub.d/00_header ###
9 insmod part_gpt
10 insmod part_msdos
11 if [ -s $prefix/grubenv ]; then
12 load_env
13 fi
14 if [ "${next_entry}" ] ; then
15 set default="${next_entry}"
16 set next_entry=
17 save_env next_entry
18 set boot_once=true
19 else
20 set default="${saved_entry}"
21 fi
22
23 if [ x"${feature_menuentry_id}" = xy ]; then
24 menuentry_id_option="--id"
25 else
26 menuentry_id_option=""
27 fi
28
29 export menuentry_id_option
30
31 if [ "${prev_saved_entry}" ]; then
32 set saved_entry="${prev_saved_entry}"
33 save_env saved_entry
34 set prev_saved_entry=
35 save_env prev_saved_entry
36 set boot_once=true
37 fi
38
39 function savedefault {
40 if [ -z "${boot_once}" ]; then
41 saved_entry="${chosen}"
42 save_env saved_entry
43 fi
44 }
45
46 function load_video {
47 if [ x$feature_all_video_module = xy ]; then
48 insmod all_video
49 else
50 insmod efi_gop
51 insmod efi_uga
52 insmod ieee1275_fb
53 insmod vbe
54 insmod vga
55 insmod video_bochs
56 insmod video_cirrus
57 fi
58 }
59
60 set menu_color_normal=light-gray/black
61 set menu_color_highlight=green/black
62
63 insmod part_msdos
64 insmod ext2
65 set root='hd2,msdos3'
66 if [ x$feature_platform_search_hint = xy ]; then
67 search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos3' --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 bb7ffb9c-67ce-4002-b16b-05b7607979c4
68 else
69 search --no-floppy --fs-uuid --set=root bb7ffb9c-67ce-4002-b16b-05b7607979c4
70 fi
71 if loadfont /boot/grub/unicode.pf2 ; then
72 set gfxmode=auto
73 load_video
74 insmod gfxterm
75 set locale_dir=$prefix/locale
76 set lang=de_DE
77 insmod gettext
78 fi
79 terminal_input console
80 terminal_output gfxterm
81 insmod part_msdos
82 insmod ext2
83 set root='hd2,msdos3'
84 if [ x$feature_platform_search_hint = xy ]; then
85 search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos3' --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 bb7ffb9c-67ce-4002-b16b-05b7607979c4
86 else
87 search --no-floppy --fs-uuid --set=root bb7ffb9c-67ce-4002-b16b-05b7607979c4
88 fi
89 insmod gfxmenu
90 loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_12.pf2
91 loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_14.pf2
92 loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_16.pf2
93 loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_24.pf2
94 loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_48.pf2
95 loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_bold_16.pf2
96 loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_mono_12.pf2
97 loadfont ($root)/usr/share/grub/themes/manjaro/terminus-12.pf2
98 loadfont ($root)/usr/share/grub/themes/manjaro/terminus-14.pf2
99 loadfont ($root)/usr/share/grub/themes/manjaro/terminus-16.pf2
100 loadfont ($root)/usr/share/grub/themes/manjaro/terminus-18.pf2
101 loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b12.pf2
102 loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b14.pf2
103 loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b16.pf2
104 loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b18.pf2
105 insmod png
106 set theme=($root)/usr/share/grub/themes/manjaro/theme.txt
107 export theme
108 if [ x$feature_timeout_style = xy ] ; then
109 set timeout_style=hidden
110 set timeout=10
111 # Fallback hidden-timeout code in case the timeout_style feature is
112 # unavailable.
113 elif sleep --interruptible 10 ; then
114 set timeout=0
115 fi
116 ### END /etc/grub.d/00_header ###
117
118 ### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
119 set color_normal=light-gray/black
120 set color_highlight=green/black
121 ### END /etc/grub.d/06_grub-customizer_menu_color_helper ###
122
123 ### BEGIN /etc/grub.d/10_linux ###
124 menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-bb7ffb9c-67ce-4002-b16b-05b7607979c4' {
125 savedefault
126 load_video
127 set gfxpayload=keep
128 insmod gzio
129 insmod part_msdos
130 insmod ext2
131 set root='hd2,msdos3'
132 if [ x$feature_platform_search_hint = xy ]; then
133 search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos3' --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 bb7ffb9c-67ce-4002-b16b-05b7607979c4
134 else
135 search --no-floppy --fs-uuid --set=root bb7ffb9c-67ce-4002-b16b-05b7607979c4
136 fi
137 linux /boot/vmlinuz-5.4-x86_64 root=UUID=bb7ffb9c-67ce-4002-b16b-05b7607979c4 rw quiet apparmor=1 security=apparmor udev.log_priority=3
138 initrd /boot/amd-ucode.img /boot/initramfs-5.4-x86_64.img
139 }
140 submenu 'Advanced options for Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-bb7ffb9c-67ce-4002-b16b-05b7607979c4' {
141 menuentry 'Manjaro Linux (Kernel: 5.4.64-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.64-1-MANJARO x64-advanced-bb7ffb9c-67ce-4002-b16b-05b7607979c4' {
142 savedefault
143 load_video
144 set gfxpayload=keep
145 insmod gzio
146 insmod part_msdos
147 insmod ext2
148 set root='hd2,msdos3'
149 if [ x$feature_platform_search_hint = xy ]; then
150 search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos3' --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 bb7ffb9c-67ce-4002-b16b-05b7607979c4
151 else
152 search --no-floppy --fs-uuid --set=root bb7ffb9c-67ce-4002-b16b-05b7607979c4
153 fi
154 linux /boot/vmlinuz-5.4-x86_64 root=UUID=bb7ffb9c-67ce-4002-b16b-05b7607979c4 rw quiet apparmor=1 security=apparmor udev.log_priority=3
155 initrd /boot/amd-ucode.img /boot/initramfs-5.4-x86_64.img
156 }
157 menuentry 'Manjaro Linux (Kernel: 5.4.64-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.64-1-MANJARO x64-fallback-bb7ffb9c-67ce-4002-b16b-05b7607979c4' {
158 load_video
159 set gfxpayload=keep
160 insmod gzio
161 insmod part_msdos
162 insmod ext2
163 set root='hd2,msdos3'
164 if [ x$feature_platform_search_hint = xy ]; then
165 search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos3' --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 bb7ffb9c-67ce-4002-b16b-05b7607979c4
166 else
167 search --no-floppy --fs-uuid --set=root bb7ffb9c-67ce-4002-b16b-05b7607979c4
168 fi
169 linux /boot/vmlinuz-5.4-x86_64 root=UUID=bb7ffb9c-67ce-4002-b16b-05b7607979c4 rw quiet apparmor=1 security=apparmor udev.log_priority=3
170 initrd /boot/initramfs-5.4-x86_64-fallback.img
171 }
172 }
173
174 ### END /etc/grub.d/10_linux ###
175
176 ### BEGIN /etc/grub.d/20_linux_xen ###
177 ### END /etc/grub.d/20_linux_xen ###
178
179 ### BEGIN /etc/grub.d/30_os-prober ###
180 menuentry 'Windows Boot Manager (on /dev/sdd3)' --class windows --class os $menuentry_id_option 'osprober-efi-A8C5-3E26' {
181 savedefault
182 insmod part_gpt
183 insmod fat
184 set root='hd3,gpt3'
185 if [ x$feature_platform_search_hint = xy ]; then
186 search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt3' --hint-bios=hd3,gpt3 --hint-efi=hd3,gpt3 --hint-baremetal=ahci3,gpt3 A8C5-3E26
187 else
188 search --no-floppy --fs-uuid --set=root A8C5-3E26
189 fi
190 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
191 }
192 set timeout_style=menu
193 if [ "${timeout}" = 0 ]; then
194 set timeout=10
195 fi
196 ### END /etc/grub.d/30_os-prober ###
197
198 ### BEGIN /etc/grub.d/30_uefi-firmware ###
199 menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
200 fwsetup
201 }
202 ### END /etc/grub.d/30_uefi-firmware ###
203
204 ### BEGIN /etc/grub.d/40_custom ###
205 # This file provides an easy way to add custom menu entries. Simply type the
206 # menu entries you want to add after this comment. Be careful not to change
207 # the 'exec tail' line above.
208 ### END /etc/grub.d/40_custom ###
209
210 ### BEGIN /etc/grub.d/41_custom ###
211 if [ -f ${config_directory}/custom.cfg ]; then
212 source ${config_directory}/custom.cfg
213 elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
214 source $prefix/custom.cfg;
215 fi
216 ### END /etc/grub.d/41_custom ###
217
218 ### BEGIN /etc/grub.d/60_memtest86+ ###
219 if [ "${grub_platform}" == "pc" ]; then
220 menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
221 search --fs-uuid --no-floppy --set=root --hint-ieee1275='ieee1275//disk@0,msdos3' --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 bb7ffb9c-67ce-4002-b16b-05b7607979c4
222 linux16 /boot/memtest86+/memtest.bin
223 }
224 fi
225 ### END /etc/grub.d/60_memtest86+ ###
/etc/default/grub
1 GRUB_DEFAULT="saved"
2 GRUB_TIMEOUT="10"
3 GRUB_TIMEOUT_STYLE="hidden"
4 GRUB_DISTRIBUTOR="Manjaro"
5 GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor udev.log_priority=3"
6 GRUB_CMDLINE_LINUX=""
7
8 # If you want to enable the save default function, uncomment the following
9 # line, and set GRUB_DEFAULT to saved.
10 GRUB_SAVEDEFAULT="true"
11
12 # Preload both GPT and MBR modules so that they are not missed
13 GRUB_PRELOAD_MODULES="part_gpt part_msdos"
14
15 # Uncomment to enable booting from LUKS encrypted devices
16 #GRUB_ENABLE_CRYPTODISK="y"
17
18 # Uncomment to use basic console
19 GRUB_TERMINAL_INPUT="console"
20
21 # Uncomment to disable graphical terminal
22 #GRUB_TERMINAL_OUTPUT="console"
23
24 # The resolution used on graphical terminal
25 # note that you can use only modes which your graphic card supports via VBE
26 # you can see them in real GRUB with the command 'videoinfo'
27 GRUB_GFXMODE=auto
28
29 # Uncomment to allow the kernel use the same resolution used by grub
30 GRUB_GFXPAYLOAD_LINUX="keep"
31
32 # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
33 # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
34 #GRUB_DISABLE_LINUX_UUID="true"
35
36 # Uncomment to disable generation of recovery mode menu entries
37 GRUB_DISABLE_RECOVERY="true"
38
39 # Uncomment and set to the desired menu colors. Used by normal and wallpaper
40 # modes only. Entries specified as foreground/background.
41 export GRUB_COLOR_NORMAL="light-gray/black"
42 export GRUB_COLOR_HIGHLIGHT="green/black"
43
44 # Uncomment one of them for the gfx desired, a image background or a gfxtheme
45 GRUB_BACKGROUND="/home/bastian/Bilder/Bluuuuurrrry/vadim-sadovski-n36.jpg"
46 GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"
47
48 # Uncomment to get a beep at GRUB start
49 #GRUB_INIT_TUNE="480 440 1"
50
51 GRUB_FONT="/boot/grub/unicode.pf2"
52 # Uncomment this option to enable os-prober execution in the grub-mkconfig command
53 GRUB_DISABLE_OS_PROBER=false
grub_mkconfig
1 #! /bin/sh
2 set -e
3
4 # Generate grub.cfg by inspecting /boot contents.
5 # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
6 #
7 # GRUB is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # GRUB is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19
20 prefix="/usr"
21 exec_prefix="/usr"
22 datarootdir="/usr/share"
23
24 prefix="/usr"
25 exec_prefix="/usr"
26 sbindir="/usr/bin"
27 bindir="/usr/bin"
28 sysconfdir="/etc"
29 PACKAGE_NAME=GRUB
30 PACKAGE_VERSION=2.06~6~manjaro
31 host_os=linux-gnu
32 datadir="${datarootdir}"
33 if [ "x$pkgdatadir" = x ]; then
34 pkgdatadir="${datadir}/grub"
35 fi
36 # export it for scripts
37 export pkgdatadir
38
39 grub_cfg=""
40 grub_mkconfig_dir="${sysconfdir}"/grub.d
41
42 self=`basename $0`
43
44 grub_probe="${sbindir}/grub-probe"
45 grub_file="${bindir}/grub-file"
46 grub_editenv="${bindir}/grub-editenv"
47 grub_script_check="${bindir}/grub-script-check"
48
49 export TEXTDOMAIN=grub
50 export TEXTDOMAINDIR="${datarootdir}/locale"
51
52 . "${pkgdatadir}/grub-mkconfig_lib"
53
54 # Usage: usage
55 # Print the usage.
56 usage () {
57 gettext_printf "Usage: %s [OPTION]\n" "$self"
58 gettext "Generate a grub config file"; echo
59 echo
60 print_option_help "-o, --output=$(gettext FILE)" "$(gettext "output generated config to FILE [default=stdout]")"
61 print_option_help "-h, --help" "$(gettext "print this message and exit")"
62 print_option_help "-V, --version" "$(gettext "print the version information and exit")"
63 echo
64 gettext "Report bugs to <bug-grub@gnu.org>."; echo
65 }
66
67 argument () {
68 opt=$1
69 shift
70
71 if test $# -eq 0; then
72 gettext_printf "%s: option requires an argument -- \`%s'\n" "$self" "$opt" 1>&2
73 exit 1
74 fi
75 echo $1
76 }
77
78 # Check the arguments.
79 while test $# -gt 0
80 do
81 option=$1
82 shift
83
84 case "$option" in
85 -h | --help)
86 usage
87 exit 0 ;;
88 -V | --version)
89 echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"
90 exit 0 ;;
91 -o | --output)
92 grub_cfg=`argument $option "$@"`; shift;;
93 --output=*)
94 grub_cfg=`echo "$option" | sed 's/--output=//'`
95 ;;
96 -*)
97 gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2
98 usage
99 exit 1
100 ;;
101 # Explicitly ignore non-option arguments, for compatibility.
102 esac
103 done
104
105 if [ "x$EUID" = "x" ] ; then
106 EUID=`id -u`
107 fi
108
109 if [ "$EUID" != 0 ] ; then
110 root=f
111 case "`uname 2>/dev/null`" in
112 CYGWIN*)
113 # Cygwin: Assume root if member of admin group
114 for g in `id -G 2>/dev/null` ; do
115 case $g in
116 0|544) root=t ;;
117 esac
118 done ;;
119 esac
120 if [ $root != t ] ; then
121 gettext_printf "%s: You must run this as root\n" "$self" >&2
122 exit 1
123 fi
124 fi
125
126 set $grub_probe dummy
127 if test -f "$1"; then
128 :
129 else
130 gettext_printf "%s: Not found.\n" "$1" 1>&2
131 exit 1
132 fi
133
134 # Device containing our userland. Typically used for root= parameter.
135 GRUB_DEVICE="`${grub_probe} --target=device /`"
136 GRUB_DEVICE_UUID="`${grub_probe} --device ${GRUB_DEVICE} --target=fs_uuid 2> /dev/null`" || true
137 GRUB_DEVICE_PARTUUID="`${grub_probe} --device ${GRUB_DEVICE} --target=partuuid 2> /dev/null`" || true
138
139 # Device containing our /boot partition. Usually the same as GRUB_DEVICE.
140 GRUB_DEVICE_BOOT="`${grub_probe} --target=device /boot`"
141 GRUB_DEVICE_BOOT_UUID="`${grub_probe} --device ${GRUB_DEVICE_BOOT} --target=fs_uuid 2> /dev/null`" || true
142
143 # Disable os-prober by default due to security reasons.
144 GRUB_DISABLE_OS_PROBER="true"
145
146 # Filesystem for the device containing our userland. Used for stuff like
147 # choosing Hurd filesystem module.
148 GRUB_FS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2> /dev/null || echo unknown`"
149
150 if [ x"$GRUB_FS" = xunknown ]; then
151 GRUB_FS="$(stat -f -c %T / || echo unknown)"
152 fi
153
154 # Provide a default set of stock linux early initrd images.
155 # Define here so the list can be modified in the sourced config file.
156 if [ "x${GRUB_EARLY_INITRD_LINUX_STOCK}" = "x" ]; then
157 GRUB_EARLY_INITRD_LINUX_STOCK="intel-uc.img intel-ucode.img amd-uc.img amd-ucode.img early_ucode.cpio microcode.cpio"
158 fi
159
160 if test -f ${sysconfdir}/default/grub ; then
161 . ${sysconfdir}/default/grub
162 fi
163
164 if [ "x${GRUB_DISABLE_UUID}" = "xtrue" ]; then
165 if [ -z "${GRUB_DISABLE_LINUX_UUID}" ]; then
166 GRUB_DISABLE_LINUX_UUID="true"
167 fi
168 if [ -z "${GRUB_DISABLE_LINUX_PARTUUID}" ]; then
169 GRUB_DISABLE_LINUX_PARTUUID="true"
170 fi
171 fi
172
173 # XXX: should this be deprecated at some point?
174 if [ "x${GRUB_TERMINAL}" != "x" ] ; then
175 GRUB_TERMINAL_INPUT="${GRUB_TERMINAL}"
176 GRUB_TERMINAL_OUTPUT="${GRUB_TERMINAL}"
177 fi
178
179 termoutdefault=0
180 if [ "x${GRUB_TERMINAL_OUTPUT}" = "x" ]; then
181 GRUB_TERMINAL_OUTPUT=gfxterm;
182 termoutdefault=1;
183 fi
184
185 for x in ${GRUB_TERMINAL_OUTPUT}; do
186 case "x${x}" in
187 xgfxterm) ;;
188 xconsole | xserial | xofconsole | xvga_text)
189 # make sure all our children behave in conformance with ascii..
190 export LANG=C;;
191 *) echo "Invalid output terminal \"${GRUB_TERMINAL_OUTPUT}\"" >&2 ; exit 1 ;;
192 esac
193 done
194
195 GRUB_ACTUAL_DEFAULT="$GRUB_DEFAULT"
196
197 if [ "x${GRUB_ACTUAL_DEFAULT}" = "xsaved" ] ; then GRUB_ACTUAL_DEFAULT="`"${grub_editenv}" - list | sed -n '/^saved_entry=/ s,^saved_entry=,,p'`" ; fi
198
199
200 # These are defined in this script, export them here so that user can
201 # override them.
202 export GRUB_DEVICE \
203 GRUB_DEVICE_UUID \
204 GRUB_DEVICE_PARTUUID \
205 GRUB_DEVICE_BOOT \
206 GRUB_DEVICE_BOOT_UUID \
207 GRUB_DISABLE_OS_PROBER \
208 GRUB_FS \
209 GRUB_FONT \
210 GRUB_PRELOAD_MODULES \
211 GRUB_ACTUAL_DEFAULT
212
213 # These are optional, user-defined variables.
214 export GRUB_DEFAULT \
215 GRUB_HIDDEN_TIMEOUT \
216 GRUB_HIDDEN_TIMEOUT_QUIET \
217 GRUB_TIMEOUT \
218 GRUB_TIMEOUT_STYLE \
219 GRUB_DEFAULT_BUTTON \
220 GRUB_HIDDEN_TIMEOUT_BUTTON \
221 GRUB_TIMEOUT_BUTTON \
222 GRUB_TIMEOUT_STYLE_BUTTON \
223 GRUB_BUTTON_CMOS_ADDRESS \
224 GRUB_BUTTON_CMOS_CLEAN \
225 GRUB_DISTRIBUTOR \
226 GRUB_CMDLINE_LINUX \
227 GRUB_CMDLINE_LINUX_DEFAULT \
228 GRUB_CMDLINE_XEN \
229 GRUB_CMDLINE_XEN_DEFAULT \
230 GRUB_CMDLINE_LINUX_XEN_REPLACE \
231 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT \
232 GRUB_CMDLINE_NETBSD \
233 GRUB_CMDLINE_NETBSD_DEFAULT \
234 GRUB_CMDLINE_GNUMACH \
235 GRUB_EARLY_INITRD_LINUX_CUSTOM \
236 GRUB_EARLY_INITRD_LINUX_STOCK \
237 GRUB_TERMINAL_INPUT \
238 GRUB_TERMINAL_OUTPUT \
239 GRUB_SERIAL_COMMAND \
240 GRUB_DISABLE_UUID \
241 GRUB_DISABLE_LINUX_UUID \
242 GRUB_DISABLE_LINUX_PARTUUID \
243 GRUB_DISABLE_RECOVERY \
244 GRUB_VIDEO_BACKEND \
245 GRUB_GFXMODE \
246 GRUB_BACKGROUND \
247 GRUB_THEME \
248 GRUB_GFXPAYLOAD_LINUX \
249 GRUB_COLOR_NORMAL \
250 GRUB_COLOR_HIGHLIGHT \
251 GRUB_INIT_TUNE \
252 GRUB_SAVEDEFAULT \
253 GRUB_ENABLE_CRYPTODISK \
254 GRUB_BADRAM \
255 GRUB_OS_PROBER_SKIP_LIST \
256 GRUB_DISABLE_SUBMENU \
257 GRUB_ROOT_FS_RO
258
259 if test "x${grub_cfg}" != "x"; then
260 rm -f "${grub_cfg}.new"
261 oldumask=$(umask); umask 077
262 exec > "${grub_cfg}.new"
263 umask $oldumask
264 fi
265 gettext "Generating grub configuration file ..." >&2
266 echo >&2
267
268 cat << EOF
269 #
270 # DO NOT EDIT THIS FILE
271 #
272 # It is automatically generated by $self using templates
273 # from ${grub_mkconfig_dir} and settings from ${sysconfdir}/default/grub
274 #
275 EOF
276
277
278 for i in "${grub_mkconfig_dir}"/* ; do
279 case "$i" in
280 # emacsen backup files. FIXME: support other editors
281 *~) ;;
282 # emacsen autosave files. FIXME: support other editors
283 */\#*\#) ;;
284 *)
285 if grub_file_is_not_garbage "$i" && test -x "$i" ; then
286 echo
287 echo "### BEGIN $i ###"
288 "$i"
289 echo "### END $i ###"
290 fi
291 ;;
292 esac
293 done
294
295 if test "x${grub_cfg}" != "x" ; then
296 if ! ${grub_script_check} ${grub_cfg}.new; then
297 # TRANSLATORS: %s is replaced by filename
298 gettext_printf "Syntax errors are detected in generated GRUB config file.
299 Ensure that there are no errors in /etc/default/grub
300 and /etc/grub.d/* files or please file a bug report with
301 %s file attached." "${grub_cfg}.new" >&2
302 echo >&2
303 exit 1
304 else
305 # none of the children aborted with error, install the new grub.cfg
306 cat ${grub_cfg}.new > ${grub_cfg}
307 rm -f ${grub_cfg}.new
308 fi
309 fi
310
311 gettext "done" >&2
312 echo >&2
Do you mean that Zen 2 CPU’s are incompatible with 5.4 ?
run again update-grub, and post the output here
it says line 272 so it can only be in mkconfig but i dont see an error in that file on that line.
update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.17-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.17-x86_64.img
Found initrd fallback image: /boot/initramfs-5.17-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdj1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdj1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
Found memtest86+ image: /boot/memtest86+/memtest.bin
Found memtest86+ image: /boot/memtest86+/memtest.bin
grub-probe: error: cannot find a GRUB drive for /dev/sdj1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdj1. Check your device.map.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 272
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
so reinstall grub:
pacman -S grub
and then run again update-grub and post output here
output is the same.
exactly.
remove & reinstall ?
the same error? … i dont know, ive never done that, dont want to mess that up even more…
are you efi or bios?
you mean the live boot ? it should be efi but let me double check.
run this:
test -d /sys/firmware/efi && echo efi || echo bios
motherboard is set to only boot uefi so it should be uefi and i know that i reinstalled because i first installed in BIOS
command tells the same
try this:
mv /etc/grub.d{,.bak}
pacman -S grub
update-grub
and check if there is the same error
Grub Update worked … but there is no grub menue
but running 5.17 reboot persits.
Trying the 5.10 reboot persits.
Trying the userthem theory now.
also os-prober didn’t recognize my windows installation.
and reboot persits even before user login.
so if there were no errors after update-grub, you need to run also:
mkinitcpio -P
even if i did before ?
all your instructions run grub-update
last