diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2004-10-04 05:14:34 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2004-10-04 05:14:34 +0000 |
commit | da5038e3ba3f37acf614797bea965c3b075a7b22 (patch) | |
tree | fb5c4e256fcb17a1272417f2cb444113802a52f0 /mdk-stage1 | |
parent | 6f71b388b8a92c339aa5acd73f00dec25af3f474 (diff) | |
download | drakx-da5038e3ba3f37acf614797bea965c3b075a7b22.tar drakx-da5038e3ba3f37acf614797bea965c3b075a7b22.tar.gz drakx-da5038e3ba3f37acf614797bea965c3b075a7b22.tar.bz2 drakx-da5038e3ba3f37acf614797bea965c3b075a7b22.tar.xz drakx-da5038e3ba3f37acf614797bea965c3b075a7b22.zip |
allow recovery of MS bootloader on x86 too
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/rescue-gui.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mdk-stage1/rescue-gui.c b/mdk-stage1/rescue-gui.c index e57fb9294..a07b8080d 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"; } |