summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-11-04 08:55:11 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-11-04 08:55:11 +0000
commit2afc586cf886824da303805367c111c7578f0a44 (patch)
tree05170daf5aa7e425241bb66da0c0706a9154f9fc
parent6d6645ce7e44fecd5243f84e321d2c8dd9531f78 (diff)
downloaddrakx-2afc586cf886824da303805367c111c7578f0a44.tar
drakx-2afc586cf886824da303805367c111c7578f0a44.tar.gz
drakx-2afc586cf886824da303805367c111c7578f0a44.tar.bz2
drakx-2afc586cf886824da303805367c111c7578f0a44.tar.xz
drakx-2afc586cf886824da303805367c111c7578f0a44.zip
Enable rescue_ms_boot on AMD64 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 dbe12cb4a..b24018f2c 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";
}