From: Jan Kiszka <jan.kiszka@siemens.com>
To: Henning Schild <henning.schild@siemens.com>
Cc: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH 3/6] wic: bootimg-efi-isar: Add support for Ubuntu
Date: Mon, 14 Dec 2020 13:28:09 +0100 [thread overview]
Message-ID: <42202a39-4db9-2255-d340-64ca3195ede7@siemens.com> (raw)
In-Reply-To: <20201214131331.31aac0a9@md1za8fc.ad001.siemens.net>
On 14.12.20 13:13, Henning Schild wrote:
> Did you check the custom kernel case? Do we not have pre/post install
> scripting in place which deals with symlinks? Or is this scripting just
> part of the distro?
Yes, see https://github.com/siemens/meta-iot2050/commits/jan/ubuntu.
Jan
>
> Henning
>
> Am Mon, 14 Dec 2020 08:11:24 +0100
> schrieb Jan Kiszka <jan.kiszka@siemens.com>:
>
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>
>> Ubuntu places the kernel and initrd links under /boot. Account for
>> that.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>> meta/classes/wic-img.bbclass | 2 +-
>> .../scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 10
>> +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-)
>>
>> diff --git a/meta/classes/wic-img.bbclass
>> b/meta/classes/wic-img.bbclass index bbf5dd8a..dedd2bf0 100644
>> --- a/meta/classes/wic-img.bbclass
>> +++ b/meta/classes/wic-img.bbclass
>> @@ -99,7 +99,7 @@ WICVARS += "\
>> KERNEL_NAME KERNEL_FILE"
>>
>> # Isar specific vars used in our plugins
>> -WICVARS += "KERNEL_IMAGE INITRD_IMAGE DISTRO_ARCH"
>> +WICVARS += "KERNEL_IMAGE INITRD_IMAGE DISTRO DISTRO_ARCH"
>>
>> python do_rootfs_wicenv () {
>> wicvars = d.getVar('WICVARS', True)
>> diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
>> b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py index
>> 2285d2ef..67efa52e 100644 ---
>> a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py +++
>> b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py @@ -65,6
>> +65,10 @@ class BootimgEFIPlugin(SourcePlugin): # Create grub
>> configuration using parameters from wks file bootloader =
>> creator.ks.bootloader
>> + kernel_initrd_path = "/"
>> + if get_bitbake_var("DISTRO").startswith("ubuntu"):
>> + kernel_initrd_path = "/boot/"
>> +
>> grubefi_conf = "serial --unit=0 --speed=115200 --word=8
>> --parity=no --stop=1\n" grubefi_conf += "terminal_input --append
>> serial\n" grubefi_conf += "terminal_output --append serial\n"
>> @@ -77,9 +81,9 @@ class BootimgEFIPlugin(SourcePlugin):
>> grubefi_conf += "set root=$bootdisk',gpt%d'\n" %
>> part.realnum grubefi_conf += "\n"
>> grubefi_conf += "menuentry 'boot'{\n"
>> - grubefi_conf += " linux /vmlinuz root=%s rootwait
>> %s\n" \
>> - % (creator.rootdev, bootloader.append or
>> "")
>> - grubefi_conf += " initrd /initrd.img\n"
>> + grubefi_conf += " linux %svmlinuz root=%s rootwait
>> %s\n" \
>> + % (kernel_initrd_path, creator.rootdev,
>> bootloader.append or "")
>> + grubefi_conf += " initrd %sinitrd.img\n" %
>> kernel_initrd_path grubefi_conf += "}\n"
>>
>> logger.debug("Writing grubefi config
>> %s/hdd/boot/EFI/BOOT/grub.cfg",
>
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2020-12-14 12:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-14 7:11 [PATCH 0/6] " Jan Kiszka
2020-12-14 7:11 ` [PATCH 1/6] meta: image: Account for Ubuntu differences in do_copy_boot_files Jan Kiszka
2020-12-14 12:16 ` Henning Schild
2020-12-14 12:27 ` Jan Kiszka
2020-12-14 12:36 ` Henning Schild
2020-12-14 16:39 ` Jan Kiszka
2020-12-14 16:40 ` Henning Schild
2020-12-15 9:22 ` Jan Kiszka
2020-12-14 7:11 ` [PATCH 2/6] meta/isar-bootstrap: allow passing a SCRIPT to debootstrap Jan Kiszka
2020-12-14 7:11 ` [PATCH 3/6] wic: bootimg-efi-isar: Add support for Ubuntu Jan Kiszka
2020-12-14 12:13 ` Henning Schild
2020-12-14 12:28 ` Jan Kiszka [this message]
2020-12-14 12:33 ` Henning Schild
2020-12-14 7:11 ` [PATCH 4/6] meta: cache_deb_src: Account for the case that resolv.conf is a non-existent link Jan Kiszka
2020-12-14 7:11 ` [PATCH 5/6] meta-isar: Add new distro ubuntu with suite "focal" Jan Kiszka
2020-12-14 7:11 ` [PATCH 6/6] meta-isar: linux-mainline: Adjust cfg fragment test to arm64 defconfig Jan Kiszka
2020-12-14 12:06 ` [PATCH 0/6] Add support for Ubuntu Henning Schild
2020-12-14 12:26 ` Jan Kiszka
2021-01-18 16:15 ` Anton Mikanovich
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=42202a39-4db9-2255-d340-64ca3195ede7@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=henning.schild@siemens.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