1 /* boot.h - Boot image composition
3 * Copyright 1992-1995 Werner Almesberger
4 * Copyright 1999-2007 John Coffman
5 * Copyright 2009-2011 Joachim Wiedorn
8 * Licensed under the terms contained in the file 'COPYING'
9 * in the source directory.
16 void boot_image(char *spec,IMAGE_DESCR *descr);
18 /* Maps a "classic" boot image. */
20 void boot_device(char *spec,char *range,IMAGE_DESCR *descr);
22 /* Maps sectors from a device as the boot image. Can be used to boot raw-written
25 void boot_unstripped(char *boot,char *setup,char *kernel,IMAGE_DESCR *descr);
27 /* Maps an unstripped kernel image as the boot image. The setup (without the
28 header) is prepended. */
30 char *boot_mbr(const char *boot, int table);
31 /* derive name of MBR from partition name; check for primary partition
35 void boot_other(char *loader,char *boot,char *part,IMAGE_DESCR *descr);
37 /* Merges a loader with a partition table and appends a boot sector. This mix
38 is used to boot non-Linux systems. */
40 void dump(char *spec,IMAGE_DESCR *descr);
42 /* Maps a crash dump file. */