Hello!
grub-install is not really designed to be run by ordinary users e.g. for
creating floppy images etc. People who want this should write a separate
script anyway.
Let's block tons of warnings that grub-install emits when run not as root.
Changelog:
* util/grub-install.in: make sure we have root permissions
before doing anything else
========== cut here =========
--- util/grub-install.in Wed Apr 19 21:43:41 2000
+++ util/grub-install.in Mon May 8 22:59:48 2000
@@ -117,6 +117,12 @@
fi
}
+# Make sure we have root permissions
+if test x`id -u` != x0; then
+ echo "You must be root to install GRUB"
+ exit 1
+fi
+
# Check the arguments.
for option in "$@"; do
case "$option" in
========== cut here =========
Regards,
Pavel Roskin