]> git.ozlabs.org Git - yaboot.git/blob - doc/examples/yaboot.conf.multi-boot
Prepare 1.3.8-rc1
[yaboot.git] / doc / examples / yaboot.conf.multi-boot
1 ## Example yaboot.conf for ybin and yaboot >= 0.6
2 ## see man yaboot.conf for more details.
3
4 ## This example shows how to multi boot GNU/Linux, MacOS, MacOSX, and
5 ## Darwin with SCSI disks.  This example also creates menu items for
6 ## booting from the CDROM, the Network and into an OpenFirmware
7 ## prompt.
8
9 ## Change to your bootstrap partition ie: /dev/sda2
10 boot=unconfigured
11
12 ## device is the OpenFirmware device path to the disk containing
13 ## kernel images.  if your disk is /dev/hda you can find the
14 ## OpenFirmware path by running the command:  ofpath /dev/hda
15
16 device=/pci@80000000/pci-bridge@d/ADPT,2930CU@2/@1:
17
18 ## partition is the partition number where the kernel images are
19 ## located.  The kernel images should be on your root filesystem, so
20 ## this is usually the same partition number as your root filesystem.
21 ## so if root = /dev/hda3 (the 3rd partition) then you should have
22 ## partition=3  This *MUST* be set correct or yaboot won't boot!  This
23 ## option can be either set globally as shown here, or per image in
24 ## the image= sections.
25
26 partition=3
27
28 ## delay is the amount of time in seconds the dual boot menu (if one
29 ## is configured, by the presense of macos, macosx, etc options here)
30 ## will wait before choosing the default OS (GNU/Linux or the value of
31 ## defaultos=).  If you omit this then the value of timeout=
32 ## (converted to seconds) will be used.
33
34 delay=10
35
36 ## timeout is the amount of time in tenths of a second that yaboot
37 ## will wait before booting the default kernel image (the first image=
38 ## section in this config file or the value of default=).  
39
40 timeout=20
41 install=/usr/local/lib/yaboot/yaboot
42 magicboot=/usr/local/lib/yaboot/ofboot
43
44 ## Change the default colors, fgcolor is the text color, bgcolor is
45 ## the screen background color. (default: fgcolor=white, bgcolor=black)
46 fgcolor=black
47 bgcolor=green
48
49 ## Password supplied in plaintext, required for yaboot to boot, unless
50 ## restricted is also present (see below).  Be sure to
51 ## chmod 600 /etc/yaboot.conf if you set this!
52
53 #password=secret
54
55 ## Password supplied as an md5 hash, see above
56
57 #password=$1$saltstrg$HnJ/gcM3oKhNbnzUPgXTD/
58
59 ## A password is only required to boot an image specified here if
60 ## parameters are specified on the command line or if the user enters
61 ## an image is not specified in the configuration file at all (ie.
62 ## arbitrary file load).  restricted can also be placed in an image
63 ## section in that case any image not including the restricted keyword
64 ## will be fully password protected.
65
66 #restricted
67
68 ## image is the kernel itself, commonly kept in / but also commonly
69 ## found in /boot.  Note that /boot should generally not be its own
70 ## partition on powerpcs, its not necessary and complicates things.
71 ## Make sure /boot is on the partition specified by partition= see
72 ## above. /boot should never be an HFS filesystem.  You may point
73 ## image= to a symbolic link so long as the symlink does not cross
74 ## partition boundries.
75
76 image=/vmlinux
77         label=Linux
78         root=/dev/sda3
79         read-only
80
81 image=/vmlinux.old
82         label=Linux.old
83         root=/dev/sda3
84         read-only
85
86 ## The {macos,macosx,darwin} variables can be either a unix /dev node or an
87 ## OpenFirmware path, as shown here:
88
89 ## BSD root partition with bsd kernel at /bsd.  you must have the BSD
90 ## bootloader ofwboot installed at /usr/local/lib/yaboot/ofwboot
91 bsd=/dev/sda5
92
93 ## unix node
94 macos=/dev/sda8
95
96 ## OpenFirmware path, this would likely be /dev/sda9 if you used a
97 ## unix node instead.
98 macosx=/pci@80000000/pci-bridge@d/ADPT,2930CU@2/@1:9
99
100 darwin=/pci@80000000/pci-bridge@d/ADPT,2930CU@2/@1:10
101
102 ## Add a menu entry to boot from the CDROM:
103
104 enablecdboot
105
106 ## Add a menu entry to boot from the Network:
107
108 enablenetboot
109
110 ## Add a menu entry to boot into an OpenFirmware prompt:
111
112 enableofboot