All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Quirin Gylstorff" <quirin.gylstorff@siemens.com>
To: Jan Kiszka <jan.kiszka@siemens.com>, cip-dev@lists.cip-project.org
Subject: Re: [cip-dev] [isar-cip-core RFC 6/7] swupdate: Add luahandler for secureboot
Date: Mon, 29 Jun 2020 11:01:32 +0200	[thread overview]
Message-ID: <81a7b2f1-c80a-9397-92e2-44b6e0d8e500@siemens.com> (raw)
In-Reply-To: <7e9f03be-1cc3-48be-98bf-c0b8b1692c7a@siemens.com>

[-- Attachment #1: Type: text/plain, Size: 1893 bytes --]



On 6/29/20 10:14 AM, Jan Kiszka wrote:
> On 25.06.20 16:10, Q. Gylstorff wrote:
>> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>>
>> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>> ---
>>   recipes-core/swupdate/files/swupdate_handlers.lua | 8 ++++++--
>>   1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/recipes-core/swupdate/files/swupdate_handlers.lua 
>> b/recipes-core/swupdate/files/swupdate_handlers.lua
>> index c9b9962..f2ecc54 100644
>> --- a/recipes-core/swupdate/files/swupdate_handlers.lua
>> +++ b/recipes-core/swupdate/files/swupdate_handlers.lua
>> @@ -311,8 +311,12 @@ function handler_roundrobin(image)
>>           if rootparam and rootdevice then break end
>>       end
>>       if not rootdevice then
>> -      swupdate.error("Cannot determine current root device.")
>> -      return 1
>> +        -- Use findmnt to get the rootdev
>> +      rootdevice = io.popen('findmnt -nl / -o PARTUUID'):read("*l")
>> +      if not rootdevice then
>> +        swupdate.error("Cannot determine current root device.")
>> +        return 1
>> +      end
>>       end
>>       swupdate.info(string.format("Current root device is: %s", 
>> rootdevice))
>>
> 
> Seems not really specific to secure-boot, rather related to the 
> initramfs-based rootfs selection. But is that one actually using 
> PARTUUID in the end? Or rather device paths?

it uses the partuuid from root. If someone finds a better way to get
the current root without parsing the  kernel commandline I would use
that.
> 
> Anyway, I'm not against merging this. It should just be correctly 
> labeled. Or maybe even merged into the swupdate patch from the first 
> series.

I move the patch to the a/b update patch.

> 
> Jan
> 

-- 
Quirin

[-- Attachment #2: Type: text/plain, Size: 419 bytes --]

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#4848): https://lists.cip-project.org/g/cip-dev/message/4848
Mute This Topic: https://lists.cip-project.org/mt/75103454/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/727948398/xyzzy  [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2020-06-29  9:01 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-25 14:10 [cip-dev] [isar-cip-core RFC 0/7] secureboot with efibootguard Quirin Gylstorff
2020-06-25 14:10 ` [cip-dev] [isar-cip-core RFC 1/7] kernel: add fat for qemu-amd64 Quirin Gylstorff
2020-06-25 14:10 ` [cip-dev] [isar-cip-core RFC 2/7] isar-patch: Add initramfs-config patch Quirin Gylstorff
2020-06-25 14:10 ` [cip-dev] [isar-cip-core RFC 3/7] secure-boot: select boot partition in initramfs Quirin Gylstorff
2020-06-25 14:10 ` [cip-dev] [isar-cip-core RFC 4/7] secure-boot: Add secure boot with unified kernel image Quirin Gylstorff
2020-06-25 14:10 ` [cip-dev] [isar-cip-core RFC 5/7] secure-boot: Add Debian snakeoil keys for ease-of-use Quirin Gylstorff
2020-06-25 14:10 ` [cip-dev] [isar-cip-core RFC 6/7] swupdate: Add luahandler for secureboot Quirin Gylstorff
2020-06-29  8:14   ` Jan Kiszka
2020-06-29  9:01     ` Quirin Gylstorff [this message]
2020-06-25 14:10 ` [cip-dev] [isar-cip-core RFC 7/7] doc: Add README " Quirin Gylstorff
2020-06-29 12:53 ` [cip-dev] [isar-cip-core PATCH v2 0/6] secureboot with efibootguard Quirin Gylstorff
2020-06-29 12:53   ` [cip-dev] [isar-cip-core PATCH v2 1/6] kernel: add fat for qemu-amd64 Quirin Gylstorff
2020-06-29 12:53   ` [cip-dev] [isar-cip-core PATCH v2 2/6] isar-patch: Add initramfs-config patch Quirin Gylstorff
2020-06-29 12:53   ` [cip-dev] [isar-cip-core PATCH v2 3/6] secure-boot: select boot partition in initramfs Quirin Gylstorff
2020-06-29 12:53   ` [cip-dev] [isar-cip-core PATCH v2 4/6] secure-boot: Add secure boot with unified kernel image Quirin Gylstorff
2020-06-29 12:53   ` [cip-dev] [isar-cip-core PATCH v2 5/6] secure-boot: Add Debian snakeoil keys for ease-of-use Quirin Gylstorff
2020-06-29 12:54   ` [cip-dev] [isar-cip-core PATCH v2 6/6] doc: Add README for secureboot Quirin Gylstorff
2020-06-29 13:54     ` Jan Kiszka
2020-07-24 15:01   ` [cip-dev] [isar-cip-core PATCH v3 0/6] secureboot with efibootguard Quirin Gylstorff
2020-07-24 15:01     ` [cip-dev] [isar-cip-core PATCH v3 1/6] kernel: add fat for qemu-amd64 Quirin Gylstorff
2020-07-29 16:47       ` Jan Kiszka
2020-07-30  1:56         ` Daniel Sangorrin
2020-07-30  5:56           ` Jan Kiszka
2020-07-24 15:01     ` [cip-dev] [isar-cip-core PATCH v3 2/6] isar-patch: Add initramfs-config patch Quirin Gylstorff
2020-07-24 15:01     ` [cip-dev] [isar-cip-core PATCH v3 3/6] secure-boot: select boot partition in initramfs Quirin Gylstorff
2020-07-24 15:01     ` [cip-dev] [isar-cip-core PATCH v3 4/6] secure-boot: Add secure boot with unified kernel image Quirin Gylstorff
2020-07-29 17:05       ` Jan Kiszka
2020-07-24 15:01     ` [cip-dev] [isar-cip-core PATCH v3 5/6] secure-boot: Add Debian snakeoil keys for ease-of-use Quirin Gylstorff
2020-07-24 15:01     ` [cip-dev] [isar-cip-core PATCH v3 6/6] doc: Add README for secureboot Quirin Gylstorff

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=81a7b2f1-c80a-9397-92e2-44b6e0d8e500@siemens.com \
    --to=quirin.gylstorff@siemens.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=jan.kiszka@siemens.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.