]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - rescue/README
stand/powerpc: Only build loader.kboot for powerpc64
[FreeBSD/FreeBSD.git] / rescue / README
1 The /rescue build system here has three goals:
2
3 1) Produce a reliable standalone set of /rescue tools.
4
5 The contents of /rescue are all statically linked and do not depend on
6 anything in /bin or /sbin.  In particular, they'll continue to
7 function even if you've hosed your dynamic /bin and /sbin.  For
8 example, note that /rescue/mount runs /rescue/mount_nfs and not
9 /sbin/mount_nfs.  This is more subtle than it looks.
10
11 As an added bonus, /rescue is fairly small (thanks to crunchgen) and
12 includes a number of tools (such as gzip, bzip2, vi) that are not
13 normally found in /bin and /sbin.
14
15 2) Demonstrate robust use of crunchgen.
16
17 These Makefiles recompile each of the crunchgen components and include
18 support for overriding specific library entries.  Such techniques
19 should be useful elsewhere.
20
21 3) Produce a toolkit suitable for small distributions.
22
23 Install /rescue on a CD or CompactFlash disk, and symlink /bin and
24 /sbin to /rescue to produce a small and fairly complete FreeBSD
25 system.
26
27 These tools have one big disadvantage: being statically linked, they
28 cannot use some advanced library functions that rely on dynamic
29 linking.  In particular, nsswitch, locales, and pam all
30 rely on dynamic linking.
31
32
33 To compile:
34
35 # cd /usr/src/rescue
36 # make obj
37 # make
38 # make install
39
40 Note that rebuilds don't always work correctly; if you run into
41 trouble, try 'make clean' before recompiling.
42
43 $FreeBSD$