summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-09-21 02:29:38 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-09-21 02:29:38 +0000
commit63aad5c9d2165f5986e9850f1fc4f22076af9159 (patch)
tree35ed682e1ce8d5bc92dd1708675435669c67666a
parenta13618645f9bbfb5a6a6f97ddfabf9c4dbfb3609 (diff)
downloaddrakx-63aad5c9d2165f5986e9850f1fc4f22076af9159.tar
drakx-63aad5c9d2165f5986e9850f1fc4f22076af9159.tar.gz
drakx-63aad5c9d2165f5986e9850f1fc4f22076af9159.tar.bz2
drakx-63aad5c9d2165f5986e9850f1fc4f22076af9159.tar.xz
drakx-63aad5c9d2165f5986e9850f1fc4f22076af9159.zip
make it possible to restore windows boot loader on x86_64 too
-rw-r--r--mdk-stage1/rescue-gui.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mdk-stage1/rescue-gui.c b/mdk-stage1/rescue-gui.c
index f75ec76b2..74faba50a 100644
--- a/mdk-stage1/rescue-gui.c
+++ b/mdk-stage1/rescue-gui.c
@@ -32,6 +32,10 @@
#include "frontend.h"
#include "tools.h"
+#if defined(__i386__) || defined(__x86_64__)
+#define ENABLE_RESCUE_MS_BOOT 1
+#endif
+
char * env[] = {
"PATH=/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sbin:/mnt/usr/sbin:/mnt/bin:/mnt/usr/bin",
"LD_LIBRARY_PATH=/lib:/usr/lib:/mnt/lib:/mnt/usr/lib:/usr/X11R6/lib:/mnt/usr/X11R6/lib"
@@ -155,7 +159,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))
enum return_type results;
char install_bootloader[] = "Re-install Boot Loader";
-#ifdef __i386__
+#if ENABLE_RESCUE_MS_BOOT
char restore_ms_boot[] = "Restore Windows Boot Loader";
#endif
char mount_parts[] = "Mount your partitions under /mnt";
@@ -164,7 +168,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))
char doc[] = "Doc: what's addressed by this Rescue?";
char * actions[] = { install_bootloader,
-#ifdef __i386__
+#if ENABLE_RESCUE_MS_BOOT
restore_ms_boot,
#endif
mount_parts, go_to_console, reboot_, doc, NULL };
@@ -182,7 +186,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))
if (ptr_begins_static_str(choice, install_bootloader)) {
binary = "/usr/bin/install_bootloader";
}
-#ifdef __i386__
+#if ENABLE_RESCUE_MS_BOOT
if (ptr_begins_static_str(choice, restore_ms_boot)) {
binary = "/usr/bin/restore_ms_boot";
}