-
Notifications
You must be signed in to change notification settings - Fork 195
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
Reboot is bricked when using GRUB 2 and systemd #21
Comments
Grub 2 wasn't patched because vlany fix only the |
Thanks for explanation @unixfox. |
I should've explained better... vlany only uses /etc/grub.conf as the default option. For grub2, instead of selecting the default config file, using /boot/grub/grub.cfg will work. |
It seems that the fix doesn't work on Grub2 (or just for me (?)), I specified the right file for Grub2.
Apart from that can you explain what does the fix do? I'm not good at regex and I want to try to find a way to make it work under Grub2. And watch-out that the file |
From your posted grub.cfg,
using '\b' allows us to find 'ro' on its own, so we're not destroying random stuff. Here's what your posted grub.cfg would look like after being 'patched',
And a patched simple grub.conf file on CentOS 6.6,
And thanks for that, I realised. If somebody just decides to update grub.cfg one day using update-grub, vlany's requirements are out the window and the box will be bricked. There's probably some hacky things I can do do intercept this kinda thing. |
Okay thank you, I understand. I think that mounting the kernel to read write doesn't fix the issue on Debian 8 under Grub2, maybe because systemd mounts the /boot differently on Grub2 (?). |
I found that to make it persistent under Debian distributions, just specify EDIT: The issue about systemd breaking the box is still actually a serious bug because not everybody use grub, there are lot's of bootloaders to cover: https://wiki.archlinux.org/index.php/Category:Boot_loaders |
Ya, grub.cfg is based on whatever's in grub.d. |
It seems that reboot is bricked when using GRUB 2 and systemd.
The text was updated successfully, but these errors were encountered: