public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: Cedric Hombourger <Cedric_Hombourger@mentor.com>,
	isar-users@googlegroups.com
Subject: Re: [PATCH] linux-custom: fix for kernels without modules
Date: Thu, 14 Mar 2019 20:19:01 +0100	[thread overview]
Message-ID: <d7bed010-839b-a294-a652-e7976246bbed@ilbers.de> (raw)
In-Reply-To: <1551199590-199-1-git-send-email-Cedric_Hombourger@mentor.com>

On 2/26/19 5:46 PM, Cedric Hombourger wrote:
> build-kernel.sh would try to create a .fresh_install file in the
> /lib/modules/${PV} folder to replicate Debian's postinst magic
> but would fail when the custom kernel is configured without any
> modules. Create /lib/modules/${PV} before .fresh_install to make
> sure its target directory exists.

Applied to the 'next',

Thanks,
Maxim.

> Signed-off-by: Cedric Hombourger <Cedric_Hombourger@mentor.com>
> ---
>   meta/recipes-kernel/linux/files/build-kernel.sh | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-kernel/linux/files/build-kernel.sh b/meta/recipes-kernel/linux/files/build-kernel.sh
> index 6e4d347..842b585 100644
> --- a/meta/recipes-kernel/linux/files/build-kernel.sh
> +++ b/meta/recipes-kernel/linux/files/build-kernel.sh
> @@ -76,6 +76,7 @@ dpkg-gencontrol -crepack/debian/control \
>   	-DArchitecture=$target_arch
>   
>   # Add Debian-like link installation to postinst
> +mkdir -p ${REPACK_LINUX_IMAGE_DIR}/lib/modules/${PV}
>   touch "${REPACK_LINUX_IMAGE_DIR}/lib/modules/${PV}/.fresh-install"
>   sed -i "${REPACK_LINUX_IMAGE_DIR}/DEBIAN/postinst" \
>       -e "/^set -e$/a\\
> 


-- 
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov

      parent reply	other threads:[~2019-03-14 19:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-26 16:46 Cedric Hombourger
2019-02-26 16:53 ` Jan Kiszka
2019-03-14 19:19 ` Maxim Yu. Osipov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d7bed010-839b-a294-a652-e7976246bbed@ilbers.de \
    --to=mosipov@ilbers.de \
    --cc=Cedric_Hombourger@mentor.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox