summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/tools.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-04 12:02:53 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-04 12:02:53 +0000
commit4e5c98b81e00478f560fed1ae4ac4de6b5cc272d (patch)
tree83dff8501055cac219ed58bba9534c62157b6581 /mdk-stage1/tools.c
parent27059c3b4e2877a58e853c8048cf9bc59cff3d88 (diff)
downloaddrakx-4e5c98b81e00478f560fed1ae4ac4de6b5cc272d.tar
drakx-4e5c98b81e00478f560fed1ae4ac4de6b5cc272d.tar.gz
drakx-4e5c98b81e00478f560fed1ae4ac4de6b5cc272d.tar.bz2
drakx-4e5c98b81e00478f560fed1ae4ac4de6b5cc272d.tar.xz
drakx-4e5c98b81e00478f560fed1ae4ac4de6b5cc272d.zip
test_that_cd() is now image_has_stage2()
Diffstat (limited to 'mdk-stage1/tools.c')
-rw-r--r--mdk-stage1/tools.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c
index 182e64130..a89edf613 100644
--- a/mdk-stage1/tools.c
+++ b/mdk-stage1/tools.c
@@ -222,6 +222,15 @@ int total_memory(void)
}
+int image_has_stage2()
+{
+#ifdef MANDRAKE_MOVE
+ return access(IMAGE_LOCATION "/live_tree.clp", R_OK) == 0;
+#else
+ return access(IMAGE_LOCATION LIVE_LOCATION, R_OK) == 0;
+#endif
+}
+
int ramdisk_possible(void)
{
if (total_memory() > (IS_RESCUE ? MEM_LIMIT_RESCUE : MEM_LIMIT_DRAKX))