Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRUB configuration errors during system updates with grub-btrfs 4.13-2 #357

Open
buidai123 opened this issue Nov 17, 2024 · 6 comments
Open

Comments

@buidai123
Copy link

Description

I encountered GRUB configuration errors when updating my system

I'm using timeshift-autosnap for creating snapshots during updates so I configured grub-btrfs to automatically update GRUB entry when timeshift creates snapshot, i replaced the ExecStart line with:

ExecStart=/usr/bin/grub-btrfsd --syslog --timeshift-auto

Error message

When updating packages with yay. I received this error:

Found 3 snapshot(s)

WARNING: 'grub-mkconfig' needs to run at least once to generate the snapshots (sub)menu entry in grub the main menu. After that this script can run alone to generate the snapshot entries.

Unmount /tmp/grub-btrfs.5xVcYewXyZ .. Success
cannot open `/boot/grub/grub.cfg.new': No such file or directoryUsage: /usr/bin/grub-script-check [OPTION...] [PATH]
Try '/usr/bin/grub-script-check --help' or '/usr/bin/grub-script-check
--usage' for more information.
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.

Environment

  • OS: Arch Linux
  • grub-btrfs version 4.13-2
  • Timeshift version 24.06.3
  • Kernel versoin 6.11.6-arch1-1
@Schievel1
Copy link
Collaborator

Well it says you need to run grub-mkconf after installation, did you do that?

@buidai123
Copy link
Author

@Schievel1 so i have to run grub-mkconf after every updates huh, i thought i just need to run it one time

@Schievel1
Copy link
Collaborator

No, it should be necessary only once after the first installation of grub-btrfs or grub.

Is it necessary every time you update your kernel?

@buidai123
Copy link
Author

No, it should be necessary only once after the first installation of grub-btrfs or grub.

Is it necessary every time you update your kernel?

some updates dont throw this error, but seems like it appears when i have kernel update

so is it fine to run grub-mkconf everytime it throws that warning?

@Schievel1
Copy link
Collaborator

Schievel1 commented Nov 18, 2024

Yes it is alright to do so, but there seems to be some new way of creating a grub.cfg when there is a kernel update on arch and arch based distros.
It seems like this is the same like #356.

I am not running arch, so it's quite hard for me to figure out what's going on.

For an ad hoc solution for you I would suggest looking into pacman hooks. You can run grub-mkconf automatically this way

@zhang-wenchao
Copy link

I have this problem too, all grub startup entries are missing and it goes straight to grub mini bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants