[arch-projects] [MKINITCPIO][PATCH 3/4] Disable example file

Dave Reisner d at falconindy.com
Mon Feb 4 13:21:06 EST 2013


On Mon, Feb 04, 2013 at 06:44:01PM +0100, Sébastien Luttringer wrote:
> Add .disable to example file in mkinitcpio.d to avoid this file to be
> automatically builded by -p and -a option of mkinitpcio
> 
> Signed-off-by: Sébastien Luttringer <seblu at seblu.net>
> ---
>  mkinitcpio.d/example.preset         | 25 -------------------------
>  mkinitcpio.d/example.preset.disable | 25 +++++++++++++++++++++++++
>  2 files changed, 25 insertions(+), 25 deletions(-)
>  delete mode 100644 mkinitcpio.d/example.preset
>  create mode 100644 mkinitcpio.d/example.preset.disable

You can use git format-patch -M to make this a lot cleaner, as git will
just detect the rename.

I'm almost tempted to say that we should just ship this as documentation
in /usr/share/mkinitcpio or embed it in a manpage somewhere. Undecided,
but I dislike the name mangling.

> 
> diff --git a/mkinitcpio.d/example.preset b/mkinitcpio.d/example.preset
> deleted file mode 100644
> index a0479d2..0000000
> --- a/mkinitcpio.d/example.preset
> +++ /dev/null
> @@ -1,25 +0,0 @@
> -# Example mkinitcpio preset file
> -
> -# preset names
> -PRESETS=('default' 'fallback')
> -
> -# ALL_kver is used if presetname_kver is not set
> -# The kver can be specified as an explicit kernel version or
> -# as the path to an kernel image.
> -ALL_kver='/boot/vmlinuz-linux'
> -ALL_config='/etc/mkinitcpio.conf'
> -
> -# presetname_kver    - the kernel version (omit if ALL_kver should be used)
> -# presetname_config  - the configuration file (omit if ALL_config should be used)
> -# presetname_image   - the filename of generated image
> -# presetname_options - any extra options
> -
> -#default_kver="3.0-ARCH"
> -#default_config="/etc/mkinitcpio.conf"
> -default_image="/tmp/initramfs-linux.img"
> -default_options=""
> -
> -#fallback_kver="3.0-ARCH"
> -#fallback_config="/etc/mkinitcpio.conf"
> -fallback_image="/tmp/initramfs-linux-fallback.img"
> -fallback_options="-S autodetect"
> diff --git a/mkinitcpio.d/example.preset.disable b/mkinitcpio.d/example.preset.disable
> new file mode 100644
> index 0000000..a0479d2
> --- /dev/null
> +++ b/mkinitcpio.d/example.preset.disable
> @@ -0,0 +1,25 @@
> +# Example mkinitcpio preset file
> +
> +# preset names
> +PRESETS=('default' 'fallback')
> +
> +# ALL_kver is used if presetname_kver is not set
> +# The kver can be specified as an explicit kernel version or
> +# as the path to an kernel image.
> +ALL_kver='/boot/vmlinuz-linux'
> +ALL_config='/etc/mkinitcpio.conf'
> +
> +# presetname_kver    - the kernel version (omit if ALL_kver should be used)
> +# presetname_config  - the configuration file (omit if ALL_config should be used)
> +# presetname_image   - the filename of generated image
> +# presetname_options - any extra options
> +
> +#default_kver="3.0-ARCH"
> +#default_config="/etc/mkinitcpio.conf"
> +default_image="/tmp/initramfs-linux.img"
> +default_options=""
> +
> +#fallback_kver="3.0-ARCH"
> +#fallback_config="/etc/mkinitcpio.conf"
> +fallback_image="/tmp/initramfs-linux-fallback.img"
> +fallback_options="-S autodetect"
> -- 
> Sébastien "Seblu" Luttringer
> 


More information about the arch-projects mailing list