[Lunar-commits] r14798 - lunar-iso/trunk/lunar-install/sbin
Auke Kok
sofar at lunar-linux.org
Tue May 17 19:19:19 UTC 2005
Author: sofar
Date: 2005-05-17 19:19:16 +0000 (Tue, 17 May 2005)
New Revision: 14798
Modified:
lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
and that was a typo on my behalf.
Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install 2005-05-17 19:00:58 UTC (rev 14797)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install 2005-05-17 19:19:16 UTC (rev 14798)
@@ -453,18 +453,28 @@
}
+reverse_device()
+{
+ for DEV in $(ls -1d /dev/[hs]d* 2> /dev/null); do
+ if [ "$(readlink -f $DEV)" == "$(readlink -f $1)" ]; then
+ echo $DEV
+ fi
+ done
+}
+
+
make_grub_conf()
{
- if [ ! -f $TARGET/boot/grub/menu.lst ]; then
- (
+ (
mkdir -p $TARGET/boot/grub
echo "timeout 30"
echo "default 0"
echo "fallback 1"
echo "color light-gray/blue black/light-gray"
echo ""
- ) > $TARGET/boot/grub/menu.lst
- fi
+ echo "kopt=root=$(reverse_device /dev/discs/$ROOT) ro"
+ echo ""
+ ) > $TARGET/boot/grub/menu.lst
}
@@ -483,7 +493,7 @@
if [ "$BOOT" == "$ROOT" ]; then
GRUB_BOOT=/boot
else
- GRUB_BOOT="($GRUB_ROOT)"
+ GRUB_BOOT=""
fi
export GRUB_ROOT GRUB_BOOT
More information about the Lunar-commits
mailing list