diff options
Diffstat (limited to 'mdk-stage1/config-stage1.h')
| -rw-r--r-- | mdk-stage1/config-stage1.h | 74 |
1 files changed, 40 insertions, 34 deletions
diff --git a/mdk-stage1/config-stage1.h b/mdk-stage1/config-stage1.h index 2a9cfa9ce..e3409df98 100644 --- a/mdk-stage1/config-stage1.h +++ b/mdk-stage1/config-stage1.h @@ -1,7 +1,7 @@ /* - * Guillaume Cottenceau (gc@mandrakesoft.com) + * Guillaume Cottenceau (gc) * - * Copyright 2000 Mandrakesoft + * Copyright 2000 Mandriva * * This software may be freely redistributed under the terms of the GNU * public license. @@ -15,43 +15,51 @@ #ifndef _CONFIG_STAGE1_H_ #define _CONFIG_STAGE1_H_ +#ifdef _GNU_SOURCE +# undef _GNU_SOURCE +#endif #define _GNU_SOURCE 1 /* If we have more than that amount of memory (in Mbytes), we assume we can load the second stage as a ramdisk */ -#define MEM_LIMIT_RAMDISK 68 +#define MEM_LIMIT_DRAKX 192 +/* If we have more than that amount of memory (in Mbytes), we preload the second stage as a ramdisk */ +#define MEM_LIMIT_DRAKX_PRELOAD 256 /* If we have more than that amount of memory (in Mbytes), we assume we can load the rescue as a ramdisk */ #define MEM_LIMIT_RESCUE 40 +/* If we have more than that amount of memory (in Mbytes), we preload the rescue as a ramdisk */ +#define MEM_LIMIT_RESCUE_PRELOAD 100 +#define KA_MAX_RETRY 5 -#define RAMDISK_COMPRESSION_RATIO 1.95 - -#define LIVE_LOCATION "/install/stage2/live/" -#define RAMDISK_LOCATION "/install/stage2/" -#define SLASH_LOCATION "/sysroot" -#define STAGE2_LOCATION SLASH_LOCATION "/tmp/stage2" - -#ifdef MANDRAKE_MOVE -#define MEM_LIMIT_MOVE 120 -#define DISTRIB_NAME "Mandrakemove" -#define IMAGE_LOCATION_DIR SLASH_LOCATION "/" -#define IMAGE_LOCATION IMAGE_LOCATION_DIR "cdrom" -#define IMAGE_LOCATION_REAL SLASH_LOCATION "/image" -#define RAW_LOCATION_REL "/cdrom" -#define STAGE2_LOCATION_REL "/image" -#define BOOT_LOCATION SLASH_LOCATION "/image_boot" -#define ALWAYS_LOCATION SLASH_LOCATION "/image_always" -#define TOTEM_LOCATION SLASH_LOCATION "/image_totem" - -#else - -#define DISTRIB_NAME "Mandrakelinux" -#define IMAGE_LOCATION_DIR SLASH_LOCATION "/tmp/" -#define IMAGE_LOCATION IMAGE_LOCATION_DIR "image" -#define IMAGE_LOCATION_REAL "/tmp/image" -#define STAGE2_LOCATION_REL "/tmp/stage2" -#endif +#define LIVE_LOCATION_REL "install/stage2/live/" +#define COMPRESSED_LOCATION_REL "install/stage2/" +#define COMPRESSED_STAGE2_NAME "mdkinst.sqfs" +#define COMPRESSED_RESCUE_NAME "rescue.sqfs" +#define COMPRESSED_NAME(prefix) (IS_RESCUE ? prefix COMPRESSED_RESCUE_NAME : prefix COMPRESSED_STAGE2_NAME) +#define COMPRESSED_FILE_REL(prefix) COMPRESSED_NAME(prefix COMPRESSED_LOCATION_REL) + +/* the remote media is mounted in MEDIA_LOCATION, and + - IMAGE_LOCATION is a symlink image -> image/mdk/mirror/dir + - IMAGE_LOCATION is a symlink image -> loop/i686 and iso file is loopback mounted in LOOP_LOCATION + */ +#define MEDIA_LOCATION_REL "media" +#define MEDIA_LOCATION IMAGE_LOCATION_DIR MEDIA_LOCATION_REL + +#define LOOP_LOCATION_REL "loop" +#define LOOP_LOCATION IMAGE_LOCATION_DIR LOOP_LOCATION_REL + +#define IMAGE_LOCATION_REL "image" +#define IMAGE_LOCATION_DIR "/tmp/" +#define IMAGE_LOCATION IMAGE_LOCATION_DIR IMAGE_LOCATION_REL + +#define COMPRESSED_LOCATION IMAGE_LOCATION "/" COMPRESSED_LOCATION_REL + +/* - if we use a compressed image : STAGE2_LOCATION is a the mount point + - if we use the live: STAGE2_LOCATION is a relative symlink to image/install/stage2/live +*/ +#define STAGE2_LOCATION "/tmp/stage2" /* user-definable (in Makefile): DISABLE_NETWORK, DISABLE_DISK, DISABLE_CDROM, DISABLE_PCMCIA */ @@ -67,10 +75,8 @@ /* path to mirror list for net install */ #ifndef DISABLE_NETWORK -#define MIRRORLIST_HOST "www.linux-mandrake.com" -#define MIRRORLIST_PATH "/mirrorsfull.list" -#define MIRRORLIST_MAX_ITEMS 500 -#define MIRRORLIST_MAX_MEDIA 10 +#define MIRRORLIST_HOST "mirrors.mageia.org" +#define MIRRORLIST_PATH "/api" #endif #endif |
