From 8fe5878427767b06abc9378137f2c826fe610d8d Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Tue, 24 Oct 2006 08:59:18 +0000 Subject: - Preset changes to better config file format - Global kver for all images in a preset - Allow comments (#) in kernel commandline git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@182 880c04e9-e011-0410-abf7-b926e227c9cd --- mkinitcpio.d/example.preset | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'mkinitcpio.d') diff --git a/mkinitcpio.d/example.preset b/mkinitcpio.d/example.preset index 3dabdae..b283815 100644 --- a/mkinitcpio.d/example.preset +++ b/mkinitcpio.d/example.preset @@ -1,13 +1,22 @@ # Example mkinitcpio preset file -PRESET_N=2 +# preset names +PRESETS=('default' 'fallback') -PRESET_NAME[0]="default" -PRESET_KVER[0]="2.6.18-ARCH" -PRESET_CONFIG[0]="/etc/mkinitcpio.conf" -PRESET_IMAGE[0]="/tmp/kernel26.img" +# ALL_kver is used if presetname_kver is not set +# note for distribution kernels: this should be in a separate file +# and read like this: +# source /etc/mkinitcpio.d/exmaple.kver +ALL_kver='2.6.18-ARCH' -PRESET_NAME[1]="fallback" -PRESET_KVER[1]="2.6.18-ARCH" -PRESET_CONFIG[1]="/boot/mkinitcpio-kernel26.conf" -PRESET_IMAGE[1]="/tmp/kernel26-fallback.img" +# presetname_kver specifies the kernel version (omit if ALL_kver should be used) +# presetname_config specifies the configuration file +# presetname_image specifies the image to be generated + +#default_kver="2.6.18-ARCH" +default_config="/etc/mkinitcpio.conf" +default_image="/tmp/kernel26.img" + +#fallback_kver="2.6.18-ARCH" +fallback_config="/etc/mkinitcpio.d/mkinitcpio-kernel26-fallback.conf" +fallback_image="/tmp/kernel26-fallback.img" -- cgit v1.2.3-24-g4f1b