[SOLVED] Grub mkconfig fails to run: "unterminated `s' command"
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
my systems boot with the latest kernel update (Upgraded ? Rebuilt).
If you use symbolic links, the previous command is not required, especially if you have manually modified the file grub.cfg.
my systems boot with the latest kernel update (Upgraded ? Rebuilt).
If you use symbolic links, the previous command is not required, especially if you have manually modified the file grub.cfg.
That's interesting. In the past I've failed to run that command after upgrading the kernel and Current hasn't booted; I had to log in to 14.2 and re-run the command from there, after which Current was able to boot.
I haven't manually modified grub.cfg, since it says not to in the file and I don't know how the stuff in there works.
Quote:
Originally Posted by marav
Can you post your /etc/default/grub ?
Yep! Contents here:
Code:
# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.
GRUB_DEFAULT="Slackware-15.0 GNU/Linux"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="false"
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="$( sed s/Slackware /Slackware-/ /etc/slackware-version )"
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"
#GRUB_GFXMODE="1024x768x32"
# Font used on the graphical terminal:
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
GRUB_DISABLE_OS_PROBER="false"
GRUB_SAVEDEFAULT="false"
GRUB_FONT="/boot/grub/unicode.pf2"
There's also a grub.new, I just noticed -- here are the contents for it:
Code:
# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=$( sed 's/Slackware /Slackware-/' /etc/slackware-version )
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
#GRUB_GFXMODE=1024x768x32
# Font used on the graphical terminal:
#GRUB_FONT=/usr/share/grub/dejavusansmono.pf2
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
That's interesting. In the past I've failed to run that command after upgrading the kernel and Current hasn't booted; I had to log in to 14.2 and re-run the command from there, after which Current was able to boot.
I haven't manually modified grub.cfg, since it says not to in the file and I don't know how the stuff in there works.
in your /etc/default/grub
Code:
GRUB_DISTRIBUTOR="$( sed s/Slackware /Slackware-/ /etc/slackware-version )"
should be - with the simple quotes -
Code:
GRUB_DISTRIBUTOR=$( sed 's/Slackware /Slackware-/' /etc/slackware-version )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.