you should be patching ./units/systemd-networkd-wait-online.service.in file

On Thu, Aug 1, 2019 at 8:14 AM Edward Tyrrell <e...@disignconsultants.com> 
wrote:
>
> Hi,
>
>
> I'm trying to add a patch to the systemd layer to amend 
> systemd-networkd-wait-online.service. Within the service I simply want to add 
> --any as a parameter.
>
>
> The problem is my is bitbake fails with:
>
> Applying patch 0020-systemd-networkd-wait-online-service.patch
> can't find file to patch at input line 3
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |--- a/units/systemd-networkd-wait-online.service 2019-05-23 
> 13:38:23.000000000 +0100
> |+++ b/units/systemd-networkd-wait-online.service 2019-07-31 
> 08:30:40.823968051 +0100
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> Patch 0020-systemd-networkd-wait-online-service.patch does not apply (enforce 
> with -f)
>
>
>
> My ...../sources/poky/meta/recipes-core/systemd/systemd_234.bbappend consists 
> of:
>
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> SRC_URI += "file://0020-systemd-networkd-wait-online-service.patch"
>
> My patch file:
>
> --- a/units/systemd-networkd-wait-online.service 2019-05-23 
> 13:38:23.000000000 +0100
> +++ b/units/systemd-networkd-wait-online.service 2019-07-31 
> 08:30:40.823968051 +0100
> @@ -16,7 +16,7 @@
>
>  [Service]
>  Type=oneshot
> -ExecStart=/lib/systemd/systemd-networkd-wait-online
> +ExecStart=/lib/systemd/systemd-networkd-wait-online --any
>  RemainAfterExit=yes
>
>  [Install]
>
> -------------------------------------------------------------------------------
>
>
> So it finds the patch but struggles locating the service file to patch within 
> the build. Any ideas where I'm going wrong?
>
> Is ...../sources/poky/meta/recipes-core/systemd/systemd_234.bb the proper 
> place to patch this service file?
>
>
>
> Regards,
>
>
> Edward
>
>
>
>
> This message and any attachment are confidential and may be privileged or 
> otherwise protected from disclosure. If you are not the intended recipient, 
> please telephone or email the sender and delete this message and any 
> attachment from your system. If you are not the intended recipient you must 
> not copy this message or attachment or disclose the contents to any other 
> person.
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to