[Lunar-commits] <moonbase> grub: bootloader plugin fix yet again
Samuel Verstraete
elangelo at lunar-linux.org
Sat Sep 13 16:29:11 CEST 2008
commit 0f8e439187accbb0d69ec16f2e1b9b6825cc39f2
Author: Samuel Verstraete <elangelo at lunar-linux.org>
Date: Sat Sep 13 16:29:11 2008 +0200
grub: bootloader plugin fix yet again
---
utils/grub/plugin.d/bootloader-grub.plugin | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/utils/grub/plugin.d/bootloader-grub.plugin b/utils/grub/plugin.d/bootloader-grub.plugin
index 94e7c51..6f30235 100644
--- a/utils/grub/plugin.d/bootloader-grub.plugin
+++ b/utils/grub/plugin.d/bootloader-grub.plugin
@@ -82,6 +82,10 @@ plugin_kernel_updatebootloader_grub()
debug_msg "grub: Using GRUB_BOOT=\"$GRUB_BOOT\""
debug_msg "grub: Using GRUB_ROOT=\"$GRUB_ROOT\""
debug_msg "grub: Using CMDLINE=\"$CMDLINE\""
+ else
+ # when called from the iso we can't use /proc/cmdline so we should
+ # make our own
+ CMDLINE="root=$(map_grub_to_device $GRUB_ROOT) ro"
fi
print_grub_image()
More information about the Lunar-commits
mailing list