You are not logged in.

#1 2025-01-02 02:32:21

M1dnight
Member
Registered: 2025-01-02
Posts: 3

Cannot create new grub config

So I followed the install guide, and my grub is working. The problem is, I want enable os-prober so I installed it and tried updating my grub config, but whenever I ran the command `sudo grub-mkconfig -o /boot/grub/grub.cfg` it would give me the output `/etc/default/grub: line 1: o#: command not found`

Why is this? grub works fine

Offline

#2 2025-01-02 02:43:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: Cannot create new grub config

Because you screwed up the file when enabling os-prober. check it again, line 1 as it says.

Offline

#3 2025-01-02 20:53:17

M1dnight
Member
Registered: 2025-01-02
Posts: 3

Re: Cannot create new grub config

ahh i see. problem is, i didnt rly mess with my grub config file. this was the one that worked. Ill try to remake it

Offline

#4 2025-01-02 21:12:01

M1dnight
Member
Registered: 2025-01-02
Posts: 3

Re: Cannot create new grub config

Fixed it! deepin put a comment in my grub file, which was causing the error. removing it fixed the error and it built successfully

Offline

Board footer

Powered by FluxBB