Patches for aports can be sent to this list

Re: [alpine-aports] RE: [PATCH] Adding the possibility to override defaults config

Milan P. Stanić
Details
Message ID
<20190506202239.GA886@arya.arvanta.net>
Sender timestamp
1557174159
DKIM signature
missing
Download raw message
Hi,

Patch doesn't apply to aports tree.
'git am' doesn't work, while
'git am alpine-aports-RE-PATCH-Adding-the-possibility-to-override-defaults-config.patch'
gives:
---
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Makefile b/Makefile
|index 53c71ea..c5e7372 100644
|--- a/Makefile
|+++ b/Makefile
--------------------------
---

You can find on the https://wiki.alpinelinux.org/wiki/Creating_patches
short guide how to send proper patches to aports mailing list.

-- 
regards

On Wed, 2019-05-01 at 10:37, Laurent B. wrote:
> Sorry, it’s my first contribution, I forgot to specify the package : main/mkinitfs
> 
> Laurent
> 
> De : Laurent B
> Envoyé le :mercredi 1 mai 2019 10:25
> À : alpine-aports@lists.alpinelinux.org
> Cc : Laurent B
> Objet :[PATCH] Adding the possibility to override defaults config
> 
> This allow to override default config files with custom, simply define
> values in mkinitfs.conf:
> * init: path to initramfs-init
> * fstab: path to fstab
> * passwd: path to passwd
> * group: path to group
> So, it's possible to customize the boot, and allow the busybox trigger
> to use the customized configuration file
> ---
>  Makefile    | 1 +
>  mkinitfs.in | 8 ++++----
>  2 files changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 53c71ea..c5e7372 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -134,3 +134,4 @@ install: $(SBIN_FILES) $(SHARE_FILES) $(CONF_FILES)
>  
>  mkinitfs.conf:
>  	echo 'features="$(DEFAULT_FEATURES)"' > $@
> +	echo '#init="/$(datadir)/initramfs-init"' >> $@
> diff --git a/mkinitfs.in b/mkinitfs.in
> index 8cd3de3..8c7aa66 100755
> --- a/mkinitfs.in
> +++ b/mkinitfs.in
> @@ -5,10 +5,6 @@ sysconfdir=@sysconfdir@
>  datadir=@datadir@
>  
>  config="$sysconfdir"/mkinitfs.conf
> -init="$datadir"/initramfs-init
> -fstab="$datadir"/fstab
> -passwd="$datadir"/passwd
> -group="$datadir"/group
>  
>  startdir=$PWD
>  
> @@ -222,6 +218,10 @@ shift $(( $OPTIND - 1 ))
>  
>  . $(readlink -f "$config")
>  [ -n "$myfeatures" ] && features="$myfeatures"
> +[ -z "$init" ] && init="$datadir"/initramfs-init
> +[ -z "$fstab" ] && fstab="$datadir"/fstab
> +[ -z "$passwd" ] && passwd="$datadir"/passwd
> +[ -z "$group" ] && group="$datadir"/group
>  
>  if [ -n "$list_features" ]; then
>  	for dir in $features_dirs; do


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---