From 268f513a94eed72829067a2a5a208d946fefcaff Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Tue, 10 Apr 2007 18:00:48 +0000 Subject: [PATCH] Add yaboot configuration file --- etc/yaboot/yaboot.conf | 86 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 etc/yaboot/yaboot.conf diff --git a/etc/yaboot/yaboot.conf b/etc/yaboot/yaboot.conf new file mode 100644 index 000000000..0d6d5a144 --- /dev/null +++ b/etc/yaboot/yaboot.conf @@ -0,0 +1,86 @@ +## Example yaboot.conf for ybin and yaboot >= 0.6 +## see man yaboot.conf for more details. + +## Change `unconfigured' to your bootstrap partition eg: /dev/hda2 +boot=unconfigured + +## device is the OpenFirmware device path to the disk containing +## kernel images. if your disk is /dev/hda you can find the +## OpenFirmware path by running the command: ofpath /dev/hda DO NOT +## specify a partition number for this! On IBM hardware you can +## generally comment this out. + +device=hd: + +## partition is the partition number where the kernel images are +## located. The kernel images should be on your root filesystem, so +## this is usually the same partition number as your root filesystem. +## so if root = /dev/hda3 (the 3rd partition) then you should have +## partition=3 This *MUST* be set correct or yaboot won't boot! This +## option can be either set globally as shown here, or per image in +## the image= sections + +partition=3 + +## delay is the amount of time in seconds the dual boot menu (if one +## is configured, by the presense of macos, macosx, etc options here) +## will wait before choosing the default OS (GNU/Linux or the value of +## defaultos=). If you omit this then the value of timeout= +## (converted to seconds) will be used. + +delay=10 + +## timeout is the amount of time in tenths of a second that yaboot +## will wait before booting the default kernel image (the first image= +## section in this config file or the value of default=). + +timeout=40 +install=/usr/lib/yaboot/yaboot +magicboot=/usr/lib/yaboot/ofboot + +## Change the default colors, fgcolor is the text color, bgcolor is +## the screen background color. (default: fgcolor=white, bgcolor=black) +#fgcolor=black +#bgcolor=green + +## Password supplied in plaintext, required for yaboot to boot, unless +## restricted is also present (see below). Be sure to +## chmod 600 /etc/yaboot.conf if you set this! + +#password=secret + +## Password supplied as an md5 hash, see above + +#password=$1$saltstrg$HnJ/gcM3oKhNbnzUPgXTD/ + +## A password is only required to boot an image specified here if +## parameters are specified on the command line or if the user enters +## an image is not specified in the configuration file at all (ie. +## arbitrary file load). restricted can also be placed in an image +## section in that case any image not including the restricted keyword +## will be fully password protected. + +#restricted + +## image is the kernel itself, commonly kept in / but also commonly +## found in /boot. Note that /boot should generally not be its own +## partition on powerpcs, its not necessary and complicates things. +## Make sure /boot is on the partition specified by partition= see +## above. /boot should never be an HFS filesystem. You may point +## image= to a symbolic link so long as the symlink does not cross +## partition boundries. + +image=/boot/vmlinux26 + label=Linux + root=/dev/hda3 + initrd=/boot/kernel26.img + append="video=ofonly" + read-only + +image=/boot/vmlinux26 + label=arch-fallback + root=/dev/sda3 + initrd=/boot/kernel26-fallback.img + read-only + +