-
Notifications
You must be signed in to change notification settings - Fork 258
grub-mkconfig
fails: version_find_latest
command not found
#458
Comments
linux-holoiso
by default rather than linux-neptune
grub-mkconfig
fails: version_find_latest
command not found
Device used: Aya Neo Retro Power (Same as Aya Neo 2021 Pro)It seems that with any change that we apply on a user/system level for grub will be overwritten with a kernel update. From my research, it seems that the grub files are being managed and updated from two other files, grub.d/proxifiedScripts/linux and grub, alongside kernel updates. It seems in this new kernel version we are unable to edit the grub.cfg file on our own because at the top it says the following: grub.cfgCommand: sudo vim /boot/grub/grub.cfg DO NOT EDIT THIS FILE
It is automatically generated by grub-mkconfig
using templates from /etc/grub.d and seetings from /etc/default/grub Template N.o. 1 - grubCommand: sudo vim /etc/default/grub GRUB_TIMEOUT=5
# Device specific configs
DEVICENAME=$(cat /sys/devices/virtual/dmi/id/product_name)
# OXP Devices
OXP_LIST="ONE XPLAYER:ONEXPLAYER 1 T08:ONEXPLAYER 1S A08:ONEXPLAYER 1S T08:ONEXPLAYER mini A07:ONEXPLAYER mini GA72:ONEXPLAYER mini GT72:ONEXPLAYER GUNDAM GA72:ONEXPLAYER 2 ARP23"
# AYANEO AIR Devices
AIR_LIST="AIR:AIR Pro"
# AYANEO Gen 1 Devices
AYA_LIST="Next:Some fucking thing i don't own right now"
# Define default cmdlines for each device family
if [ "${DEVICENAME}" == "Win600" ]; then
GRUB_CMDLINE_LINUX_DEFAULT="video=efifb fbcon=rotate:1 quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0"
elif [[ ":$AIR_LIST:" =~ ":$DEVICENAME:" ]]; then
GRUB_CMDLINE_LINUX_DEFAULT="video=efifb fbcon=rotate:3 quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0"
elif [ "${DEVICENAME}" == "Jupiter 1" ]; then
GRUB_CMDLINE_LINUX_DEFAULT="video=efifb fbcon=rotate:1 quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0"
elif [[ ":$OXP_LIST:" =~ ":$DEVICENAME:" ]]; then
GRUB_CMDLINE_LINUX_DEFAULT="video=efifb fbcon=rotate:3 quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0"
else
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0"
fi
# Define "breeze" Steam Deck GRUB Theme here
GRUB_THEME="/usr/share/grub/themes/breeze/theme.txt" Template N.o. 2 - grub.d (Actual file in here is proxifiedScripts/linux)This actually looks like a navigational menu of some sort...what is interesting is inside the "proxifiedScripts/" section is where I think all the grub magic happens within the holoiso project team. There are some notes in there as what to fix and what is causing some issues. Unfortunately, I fit into your same situation with trying to use Grub Customizer and I think we just have to wait and use a manual keyboard until this is fixed because our changes may be overwritten. Unless someone else has a solution. Manually editing the grub.cfg will break something for sure.... |
Does this fix your issue? |
No, it's a folder. When you pass a folder as an argument to vim it lets you traverse it. Whenever you see a As name might suggest, The error is very self explanatory:
You can probably just delete that directory completely though, but I haven't tested that... |
Solution Found!Note: If this solution does not work for you, download the latest holoiso image and try these steps with a fresh image. TL;DR - Steps to fix (at least for Aya Neo 2021 Pro Model)Note: You can skip steps 1-7 if you can't find the file in the directory or the entire directory in
DetailsThanks for the suggestion. So the process I attempted was to replace line 200 in the Then I ran The error said this: Failed Saving grub configuration!please take a look at the command line output.below. If you thik this is a bug of Grub Customizer, please create one at https://launchpad.net/grub-customizer! Generally Grub Customizer should prevent errors like this. Failed running I went into that file I was able to save the configuration of moving For the devJust default it to the linux-holoiso kernel. Removing your if-else statements based on which device it is seemed to allow grub-customizer to work. I'm no expert but this was a solution. Make an image with linux-neptune, and an image with linux-holoiso. I'm not totally on the same page as your mindset for how you designed this for other users who are NVIDIA or INTEL but for us AMD users, I can confirm that doing this fixed our problem on my Aya Neo 2021 Pro. Might be something to look into for future updates. |
I had to define line 29 as well in the grub file to be able to edit and save with grub customizer! But this temp fix is working for me. Not on a Neo myself but still this helped. |
I did some digging. Apperently the cause of the issue is that the |
Here is the commit in the GRUB repo showing how to replace the calls to the I attach a patch based on these edits to apply the fixes automatically.
|
I'm getting this in linux.orig as well, after applying this patch. |
You may try to making a backup copy and apply the same changes to the |
Thank you! Trying that now. Are there any changes other than these?
|
Yes there are! You can open the .patch with your text editor and see exactly which lines should be removed (lines starting with |
I tried re-running the patch on the first file earlier before coming here for some reason, before seeing that linux.orig needed the patch, and it seems it did something to / created / im-not-sure I'm now getting after running
Do I need this Also just for context I'm having to start LightDM manually from TTY1, because something it going haywire with my boot. |
After doing Hopefully this extra documentation can save someone a confuse. |
The patch was failing for me, because the contents were slightly different, so I had to manually find and replace the lines from the patch in the |
Issue
During installation,
linux-holoiso
was chosen, since the defaultlinux-neptune
does not support WiFi on my machine. However at every boot, the system will boot into the first entry in grub, which is "SteamOS" and defaults tolinux-neptune
.I'm sure if this is the expected behaviour, many others have the same issue as me too - where I'd have to manually get to my keyboard during boot and get into Advanced options and select the
linux-holoiso
submenu entry before it boots straight tolinux-neptune
.I'm hoping someone can teach me the proper way for me to point grub to boot to
linux-holoiso
by default, instead oflinux-neptune
so that everything, including WiFi, works when I get into SteamOS.I managed to do this previously using
grub-customizer
available on the Discover store in what I'm sure was a stupid, improper way and while it worked for a while, after the latest update, opening the app or manually runningsudo grub-mkconfig
returns the following error:Your device's full specs
CPU (and graphics): Ryzen 5 5600G
Mobo (including WiFi and Bluetooth): Gigabyte B550I Aorus Pro AX
Your OS version
Kernel:
5.18.1-arch1_testHoloISO_20220606.1811
OS variant:
snapshot20220819.0846
OS version:
3.3
OS build:
Stable (780b383a56)
The text was updated successfully, but these errors were encountered: