summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/stage1.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-09-10 21:01:47 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-09-10 21:01:47 +0000
commit60e9475da34d156525ca41695a9f89e00641f38a (patch)
tree4f1ed12b7495e34a840279c1a0a85791ddad36cc /mdk-stage1/stage1.c
parente8ba5b4ebc85c9b75c57cf48db2c805aabb2a2ce (diff)
downloaddrakx-backup-do-not-use-60e9475da34d156525ca41695a9f89e00641f38a.tar
drakx-backup-do-not-use-60e9475da34d156525ca41695a9f89e00641f38a.tar.gz
drakx-backup-do-not-use-60e9475da34d156525ca41695a9f89e00641f38a.tar.bz2
drakx-backup-do-not-use-60e9475da34d156525ca41695a9f89e00641f38a.tar.xz
drakx-backup-do-not-use-60e9475da34d156525ca41695a9f89e00641f38a.zip
recovery
Diffstat (limited to 'mdk-stage1/stage1.c')
-rw-r--r--mdk-stage1/stage1.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 553e6a23b..bc3b457e3 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -418,7 +418,12 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))
"your own risk. Alternatively, you may reboot your system now.");
}
- ret = method_select_and_prepare();
+#ifndef DISABLE_DISK
+ if (IS_RECOVERY && streq(get_auto_value("method"), "cdrom") && process_recovery())
+ ret = RETURN_OK;
+ else
+#endif
+ ret = method_select_and_prepare();
finish_frontend();
close_log();