On Sun, 2010-01-03 at 15:05 -0800, B wrote:
> Here you go please take a look......
It looks like the permissions may be wrong on some of you files
in /etc/grub.d/
Mine looks like:
b...@bob-desktop:~$ ls -l /etc/grub.d/
total 32
-rwxr-xr-x 1 root root 3296 2009-10-23 17:43 00_header
-rwxr-xr-x 1 root root 1154 2009-10-23 17:31 05_debian_theme
-rwxr-xr-x 1 root root 3778 2009-10-23 17:43 10_linux
-rwxr-xr-x 1 root root 772 2009-10-23 09:24 20_memtest86+
-rwxr-xr-x 1 root root 5467 2009-12-07 14:49 30_os-prober
-rwxr-xr-x 1 root root 214 2009-10-23 17:43 40_custom
-rw-r--r-- 1 root root 483 2009-10-23 17:43 README
b...@bob-desktop:~$
You can make them proper with
sudo chmod 755 /etc/grub.d/*
sudo chmod 644 /etc/grub.d/README
The first command makes them all read/write/execute for the owner (root)
and read/execute for the group (root) and everyone else logged onto your
system.
The second command changes README back to where it was -- not
executable.
BE CAREFUL when using sudo and changing things. sudo gives you lots of
power --- power to fix things, and power to screw them up. :-)
After you have fixed the permissions so that they look like mine, run
sudo update-grub
Now when you do
cat /boot/grub/grub.cfg > ~/Document/temp.txt
and look at temp.txt, you should not see any of the "if" and "fi" words
in the file, like here:
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
Explanation: update-grub executes the files in /etc/grub.d/ (except for
README). The if-fi pairs are commands to update-grub, so they should not
appear in /boot/grub/grub.cfg.
--Bob
_______________________________________________
opensolaris-help mailing list
[email protected]