public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: Quirin Gylstorff <Quirin.Gylstorff@siemens.com>,
	johnxw@amazon.com, isar-users@googlegroups.com
Subject: Re: [PATCH] expand-on-first-boot: follow symbolic before search slave device
Date: Mon, 03 Jun 2024 09:36:29 +0300	[thread overview]
Message-ID: <10252d0201a8385ec50a77b41907cd81dd40298c.camel@ilbers.de> (raw)
In-Reply-To: <20240524141223.2364631-1-Quirin.Gylstorff@siemens.com>

On Fri, 2024-05-24 at 16:11 +0200, 'Quirin Gylstorff' via isar-users
wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> 
> The entry in /dev/mapper/... is symbolic link to /dev/dm-<X>.
> 
> This solves they following error:
> ```
> Boot device equals root device - no partitioning found
> ```
> in case of the following disk layout
> root@demo:~# lsblk
> NAME                   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
> sda                      8:0    0   2.5G  0 disk
> ├─sda1                   8:1    0  47.4M  0 part  /boot
> └─sda2                   8:2    0 447.9M  0 part
>   └─encrypted_platform 252:0    0 431.9M  0 crypt /
> 
> Reported-by: Wang, John <johnxw@amazon.com>
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> ---
>  .../expand-on-first-boot/files/expand-last-partition.sh         | 2
> +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-support/expand-on-first-boot/files/expand-
> last-partition.sh b/meta/recipes-support/expand-on-first-
> boot/files/expand-last-partition.sh
> index 0cb2ee21..8770677c 100755
> --- a/meta/recipes-support/expand-on-first-boot/files/expand-last-
> partition.sh
> +++ b/meta/recipes-support/expand-on-first-boot/files/expand-last-
> partition.sh
> @@ -9,7 +9,7 @@
>  
>  set -e
>  
> -ROOT_DEV="$(findmnt / -o source -n)"
> +ROOT_DEV="$(readlink -f "$(findmnt / -o source -n)")"
>  ROOT_DEV_NAME=${ROOT_DEV##*/}
>  ROOT_DEV_SLAVE=$(find /sys/block/"${ROOT_DEV_NAME}"/slaves -mindepth
> 1 -print -quit 2>/dev/null || true)
>  while [ -d "${ROOT_DEV_SLAVE}/slaves" ]; do
> -- 
> 2.43.0
> 

Applied to next, thanks.

-- 
Best regards,
Uladzimir.




      reply	other threads:[~2024-06-03  6:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24 14:11 Quirin Gylstorff
2024-06-03  6:36 ` Uladzimir Bely [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=10252d0201a8385ec50a77b41907cd81dd40298c.camel@ilbers.de \
    --to=ubely@ilbers.de \
    --cc=Quirin.Gylstorff@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=johnxw@amazon.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