summaryrefslogtreecommitdiffstats
path: root/mkinitcpio.d
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2006-10-24 10:59:18 +0200
committerThomas Bächler <thomas@archlinux.org>2006-10-24 10:59:18 +0200
commit8fe5878427767b06abc9378137f2c826fe610d8d (patch)
treeed09665d84fd1b003bd7c2ad60c53f6870a1dc85 /mkinitcpio.d
parent1aff64ef1d0749c6b883ff6ae966ea5516cf87bd (diff)
downloadmkinitcpio-8fe5878427767b06abc9378137f2c826fe610d8d.tar.gz
mkinitcpio-8fe5878427767b06abc9378137f2c826fe610d8d.tar.xz
- 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
Diffstat (limited to 'mkinitcpio.d')
-rw-r--r--mkinitcpio.d/example.preset27
1 files changed, 18 insertions, 9 deletions
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"