grub2 confusion
Michael Schwendt
mschwendt at gmail.com
Thu Oct 6 21:37:45 UTC 2011
On Thu, 6 Oct 2011 16:40:57 -0400, TH (Tom) wrote:
> By default, "grub2-mkconfig" outputs to stdout. "grub2-mkconfig -o
> /etc/grub2.cfg" is the equivalent of "grub2-mkconfig > /etc/grub2.cfg".
Not at all.
If it _were_ like that, it wouldn't break. ">" follows symlinks and
would be fine even with the read-only file perms for root.
If one were forced to use "grub2-mkconfig > /etc/grub2.cfg" or an editor
to insert the stdout of grub2-mkconfig, the symlink would work.
> I use "vi /etc/grub2.cfg", which is perfectly reasonable and useful,
> and is the same as using "vi /etc/grub.conf" previously.
The symlink target is read-only as another reminder that one should
not edit it with an editor but only via the fragments in /etc/grub.d/
--
Fedora release 16 (Verne) - Linux 3.1.0-0.rc8.git0.1.fc16.x86_64
loadavg: 0.32 0.08 0.07
More information about the test
mailing list