From 755e390a3e193a7c899db5a9e773cf403db31f50 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 16 Nov 2004 09:27:18 +0000 Subject: major switch from ramdisk to clp - mdkinst_stage2.bz2 is now mdkinst.clp - rescue_stage2.bz2 is now rescue.clp - make_mdkinst_stage2 is now mdkinst_stage2_tool (we don't keep the live when building the clp, mdkinst_stage2_tool is able to create the clp from the live, or the live from the clp) - all stage1 images now need cryptoloop & gzloop - the clp can be preloaded in memory or not (see MEM_LIMIT_DRAKX_PRELOAD and MEM_LIMIT_RESCUE_PRELOAD) (for http & ftp, it *must* be preloaded) - we don't uncompress the ramdisk anymore since the decompression is done on the fly, this makes the rescue boot much faster - function get_ramdisk_realname() is replaced with macro CLP_FILE_REL --- mdk-stage1/tools.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'mdk-stage1/tools.h') diff --git a/mdk-stage1/tools.h b/mdk-stage1/tools.h index 19e0a4ea1..bd4dc7683 100644 --- a/mdk-stage1/tools.h +++ b/mdk-stage1/tools.h @@ -34,13 +34,12 @@ int total_memory(void); int image_has_stage2(); int ramdisk_possible(void); enum return_type copy_file(char * from, char * to, void (*callback_func)(int overall)); -#ifdef MANDRAKE_MOVE +enum return_type preload_mount_clp(int clp_fd, int clp_size, char *clp_name, char *location_mount); +enum return_type mount_clp(char *clp, char *location_mount); enum return_type mount_clp_may_preload(char *clp_name, char *location_mount, int preload); -#endif #ifndef MANDRAKE_MOVE -char * get_ramdisk_realname(void); -enum return_type load_ramdisk(void); -enum return_type load_ramdisk_fd(int ramdisk_fd, int size); +enum return_type load_clp_fd(int fd, int size); +enum return_type may_load_clp(void); #endif void * memdup(void *src, size_t size); void add_to_env(char * name, char * value); -- cgit v1.2.1