From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 23 Jan 2025 08:51:11 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f61.google.com (mail-pj1-f61.google.com [209.85.216.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 50N7p8rs005705 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Jan 2025 08:51:09 +0100 Received: by mail-pj1-f61.google.com with SMTP id 98e67ed59e1d1-2ef6ef9ba3fsf1503567a91.2 for ; Wed, 22 Jan 2025 23:51:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1737618662; cv=pass; d=google.com; s=arc-20240605; b=aYKlr1Xwni8rzgaJnHs/Id4d49Ks0ja2QHdic4RPSIVVdc8nryCg49yr0huZCNQ8H8 G3EPCIDSqnsRnCTfPhSx/Nv3V8NPmq6BdbnZICGsjfA9AIZLRLqy0UWrPqoQRalT+bIs uBZ83XdgY9NWdRi4t0REsryoxUePctAqAkhEEhO/kxxbLheED0WVTMpk5AJnNNgS7T5X +p1T4gouDHlFWQPxWqiRHj9MfcpMtE4q3PLVuKWbrvEeg2/qgJiuVM1BGmQZrSXpuhlf 7BNOBCkhKtDqnDIZI106+OThbFrQa42CzSRelqjc6f38L725QtkGAiNHGFIgIjwwvecu opVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=MDHjF3vWTMoK/OhAfFtTj9hBlsGGUJ69WMNI/otnqOQ=; fh=FxsSSoBBEE/cJgClRSI/vFm7MmCB6XHVOMlvq2KP+bo=; b=AY/XpbgDKWhnJlEHbsTtNhawKbC2axs7Ap78tLeTa6x4APFobogLzl2fA7tJk/0hIg jcPuvQJapfd4vdUNqZFd5fyYgUaidD1NbJ/MIZZu7AqKqb9RxqRxNDkIT9PtFi5XNfkS BFcqPPADk9G9sA48UMiDAnSJ5ZqaZZW4WMtxwZI6FpjjNHNqRAoxYjEaCgY9ppw1U1tv IS5Am5zatgkD3bt+BSed1cK4gEPEqfLOmFRCjEb4ThGwSBdt4kxruIdngCq6Rrh8ehBG FS9LtYd47TsM37tyhfGgRmBOcIx0CsV4PWo0FNsa1KItxjzL3GdOVkAZuEVKIUo7R5ms K8dA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="jH85Q/fm"; spf=pass (google.com: domain of stephenecker240@gmail.com designates 2001:4860:4864:20::2a as permitted sender) smtp.mailfrom=stephenecker240@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1737618662; x=1738223462; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:sender:from:to:cc:subject:date:message-id :reply-to; bh=MDHjF3vWTMoK/OhAfFtTj9hBlsGGUJ69WMNI/otnqOQ=; b=qMX/gbw+eCExoLvSDg/tuPx/0CNbXxxRWklUZfBLaeHz+MnCYod8ckXB9EV8HEUbnH SFy+NzhDBdr4Vx+OWWTPG7MGAErQJdb0shIO3+9GS3BBlXb5u5Im8XI8fMWKWAVZEUf4 46b/5nEKcBprWof9+Woz/o3ndzWG4wYe6H95Ni+9YK/jAyiG0A4VQpkjRF0Yl7L4EEDE nlLHH8TUSnonYsjeOwGQuG4HgaSMnhSR/SByaB0yqPmZycppxXPHELJZaMwQpKncyU84 Q8EEvJJdZapF44V8BiMlWjyynd4hHANus8l+DDuYbwsMtYEko7QLJJPpojYAcZmoH4g4 K6pw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737618662; x=1738223462; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MDHjF3vWTMoK/OhAfFtTj9hBlsGGUJ69WMNI/otnqOQ=; b=PAFvpHwCgH6coYZMitCxCYaiSsgmGCDR6wId6e6va+DvdAyBJPJ+xr5MS9G1Mrw5J2 KtbX6UToAQ3VYPpwQ0qmzwLD1XKuJB08ZBaM4hhWsOV69HrIE4za6siK83+2pepYupa3 gWk1vtZGZEcSPSLnlCewHOrqpOTCIBpt4Y4w8RlsddQ+uu/zaJ7BUY+2QXNA53KcuQdt +EnxGMGdKiUrE7YVj9iuhPAzPywVnQReT7MvlFBzeIS2Dj0+Dy59/odDDJ7fM7uiKwBi y4IGXtDVkNqWys/YpxW9TwbRFZstVcg253HQEpKUdvs3uc0FC1RqcmnrXsthp7xRDtCk Fa/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737618662; x=1738223462; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=MDHjF3vWTMoK/OhAfFtTj9hBlsGGUJ69WMNI/otnqOQ=; b=hS7CMMyNlUgMP9xbcqzPGohNLEV/JBIJlaTuNo9g2EyTvoaEeHO8xOH7eWbSyZIflt zlzB1oCQ+gxKFaAjLTM36i8Pejy/uBBbMl1umdduNLvEuKV9GvpxsxIGJgtiw9axN1zx Iy4w7mN3bOEtzgq+Tr7KUHUxtI/2AXwI6BLycmpp+1xJMQYWr97LeX5kfMA6MiU0aFmE 1pW73N/woZkkOUqVR9AyDytwzDN8UwFOCBQnZ2719B0JwFxipqopteOh2XG63lwRpCNs swLGzUoQor0SH+N/3WzqZ1RXVXI838ypPSeyAuI8LZVgY6ZuM1B+LOFyphxOSAJZgO/4 uaMQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCW2e3X/rt2zGxRHizQizSUuBvy1dhc+DcavlrS8ljjedcDFvL15EMCI/ACqBXp74w3GOIaW@ilbers.de X-Gm-Message-State: AOJu0YwIFcjt5p3tqlVSroYtIsbsMx6piEjoi+4ofj+yPGjh4UgJoIYT QbfrsL9TT0tUz90fEF0+DHGLniP4OR7W+h2s31QYe7a4Okoowcwh X-Google-Smtp-Source: AGHT+IHCIArSTOj+VT+gEqrKp+FU+VLglupCq7yxmf5QDKLLwhr0gKTUUzQjgQ/LFYelWvEzBMhqNA== X-Received: by 2002:a17:90b:2703:b0:2ee:ab29:1a57 with SMTP id 98e67ed59e1d1-2f782c6298emr39093375a91.2.1737618662428; Wed, 22 Jan 2025 23:51:02 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90b:2f44:b0:2ef:6f09:6f86 with SMTP id 98e67ed59e1d1-2f7f15b11dfls229879a91.1.-pod-prod-05-us; Wed, 22 Jan 2025 23:51:01 -0800 (PST) X-Received: by 2002:a17:90b:2d88:b0:2ee:964e:67ce with SMTP id 98e67ed59e1d1-2f782c61bddmr33943157a91.3.1737618661126; Wed, 22 Jan 2025 23:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737618661; cv=none; d=google.com; s=arc-20240605; b=FgBgeYUOYTajmo1P+hyM+fAVFMmjY8Gu9UpCb+N64+8H2HAa4oCVGFO+mjYrzr1QqP JxHQB142/oQs/YyRCPKVQxVGl77IY1t79yIC6ZV0HurEX3UZFYcnCLZkevUh+3kyVEsG fjzHvHn4PmDOVZNV0GMS+CYb6RcRlwPvF6U1+Y70cm3MPKqojpNWLFzETpNkdqrpt4di FtftZiQrVHsBe6kFoAXgASfqLWdvysBFdo7nf+c+hgD1gq5uMR9xapjis6mrcoaktZ8R paAPtH3jdBZsqF2xCksrxeQTbFh6aK2ieQK19zxKTDqIEvpeyrcsQQ2HbWym1nFPzafk naCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=9D9H0WdjcsDUcO5cUlRoDOR4p1HTDlv2DYnjag/bGHk=; fh=H1uX1jI0sY5ML9TV18wh+VcdmeEt8J5wU9DB7rqb+Yw=; b=VyebQfSeSRcv3OVaAxfRodoBddaU/n+01C43sLhsnQC0f8Dmm+rXGhjaAINkx6MrJC mmiCgnTFhizSjn1ZyuI1iwXziKDxBY3Sj77sUcxgrKHqCNa+CjgMFsyRiO0m/jpi/s0Z mMJYp7QluSWAtd7/IybtVEXteKw3pc8REoqAg88JbKBA3mJtYk7GhMxX6Haa1VRfIsvC BnLvaROOE1VWGpFvpOtXl2B6xebnWGFcebFP4F2ddC562Z/h2ydNrqdJcaLa5wNeTeuD iCph2HjjpQt5fLhNWc0gPyfHI5lAqsL820RCb0gkMD8R+w2egqjWGTXQCpvi1L5KEG99 JqOQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="jH85Q/fm"; spf=pass (google.com: domain of stephenecker240@gmail.com designates 2001:4860:4864:20::2a as permitted sender) smtp.mailfrom=stephenecker240@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com. [2001:4860:4864:20::2a]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2f7e6a6f918si205135a91.2.2025.01.22.23.51.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jan 2025 23:51:01 -0800 (PST) Received-SPF: pass (google.com: domain of stephenecker240@gmail.com designates 2001:4860:4864:20::2a as permitted sender) client-ip=2001:4860:4864:20::2a; Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-2b1f7406e49so344075fac.3 for ; Wed, 22 Jan 2025 23:51:01 -0800 (PST) X-Gm-Gg: ASbGncuSEPk9s7xxcIF4koC/MpN3PDJF5osrBDaiJGyBZQXN6SPVYfEiVjS5mVBGhA/ kccjy1rxHxuy5FrVHNQuI3Ar8XM+NrxE0d0krTGfYSDWG5dgLhsbtkBrEdY+b X-Received: by 2002:a05:6870:6e14:b0:2a3:c59d:f09d with SMTP id 586e51a60fabf-2b1c0a2935fmr13942551fac.14.1737618660335; Wed, 22 Jan 2025 23:51:00 -0800 (PST) MIME-Version: 1.0 References: <3652dfef-495c-431c-b91b-9ff1e6735157n@googlegroups.com> <510274b28f1ae5fc4f4d61a269f7441befdcc116.camel@ilbers.de> In-Reply-To: <510274b28f1ae5fc4f4d61a269f7441befdcc116.camel@ilbers.de> From: Stephen Ecker Date: Thu, 23 Jan 2025 01:50:47 -0600 X-Gm-Features: AbW1kvZPnIKO-4jUUv9JRJ3-e0yuaiRSZM10CTrLFZPJqrFCtSY-mwW8H_ngE2M Message-ID: Subject: Re: expand-on-first-boot broken with btrfs subvolume To: Uladzimir Bely Cc: isar-users Content-Type: multipart/alternative; boundary="000000000000012a63062c5adf32" X-Original-Sender: stephenEcker240@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="jH85Q/fm"; spf=pass (google.com: domain of stephenecker240@gmail.com designates 2001:4860:4864:20::2a as permitted sender) smtp.mailfrom=stephenecker240@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: Wkp7GQEdpUGW --000000000000012a63062c5adf32 Content-Type: text/plain; charset="UTF-8" Well, that's what I did... But I don't understand why it's not something to be changed in isar... I presumed anyone would want their code to reasonably support as many scenarios as possible. On Thu, Jan 23, 2025, 1:38 AM Uladzimir Bely wrote: > On Wed, 2025-01-22 at 18:21 -0800, Stephen Ecker wrote: > > I have an initramfs script that moves the root filesystem to btrfs > > subvolume on first boot. This breaks the expand-last-partition.sh > > script for the oddest reason: > > > > line 4: findmnt / -o source -n > > > > normally this line outputs something like: /dev/name, > > but when on a btrfs subvolume, it outputs: /dev/name[@subvol] > > > > This leads to the error: "Boot device equals root device - no > > partitioning found" > > not exactly sure why, as I didn't dissect every line. I found that > > changing the command in line 4 to: findmnt / -o sources -n > > fixed the problem... I tried this after I noticed running findmnt / - > > -output-all, the device name alone was listed under SOURCES, where > > SOURCE had the subvol appended. > > > > I don't really like this solution, partly because 1) an ubuntu > > installation I have doesn't even have the sources output (though it > > was added 3 years ago, > > see: https://github.com/util-linux/util-linux/blame/master/misc-utils > > /findmnt.c#L135 )... but mainly because I don't know exactly what > > this will look like for other device / filesystem types. > > > > maybe we could add a sed expression to trim past the device name? > > i.e. > > > > findmnt / -o source -n | sed 's, [\[.*]*,,' > > > > thoughts? > > It doesn't look like something to be changed in Isar. > > But you could simply have custom expand script in you layer that does > things you need. > > | meta-your-layer/recipes-support/expand-on-first-boot/expand-on-first- > boot_%.bbappend: > | > | ``` > | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" > | ``` > | meta-your-layer/recipes-support/expand-on-first-boot/files/expand- > last-partition.sh > > So, bitbake will take the script from your layer while other files of > the recipe will be taken from isar's `meta` layer. > > > thanks, > > Stephen > > -- > > You received this message because you are subscribed to the Google > > Groups "isar-users" group. > > To unsubscribe from this group and stop receiving emails from it, > > send an email to isar-users+unsubscribe@googlegroups.com. > > To view this discussion visit > > > https://groups.google.com/d/msgid/isar-users/3652dfef-495c-431c-b91b-9ff1e6735157n%40googlegroups.com > > . > > -- > Best regards, > Uladzimir. > > > > -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/CAK9C7GDM9juAYg9ewawK0LsHDNzLBX8N3gBeyK%3DT7JShHEUdQA%40mail.gmail.com. --000000000000012a63062c5adf32 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Well, that's what I did... But I don't under= stand why it's not something to be changed in isar... I presumed anyone= would want their code to reasonably support as many scenarios as possible.= =C2=A0

On Thu, Jan 23, 2025, 1:38 AM Uladzimir Bely <ubely@ilbers.de> wrote:
On Wed, 2025-01-22 at 18:21 -0800, Stephen Ecker wrote:
> I have an initramfs script that moves the root filesystem to btrfs
> subvolume on first boot.=C2=A0 This breaks the expand-last-partition.s= h
> script for the oddest reason:
>
> line 4:=C2=A0=C2=A0findmnt / -o source -n
>
> normally this line outputs something like:=C2=A0/dev/name,
> but when on a btrfs subvolume, it outputs: /dev/name[@subvol]=C2=A0 >
> This leads to the error: "Boot device equals root device - no
> partitioning found"
> not exactly sure why, as I didn't dissect every line. I found that=
> changing the command in line 4 to: findmnt / -o sources -n=C2=A0
> fixed the problem... I tried this after I noticed running findmnt / -<= br> > -output-all, the device name alone was listed under SOURCES, where
> SOURCE had the subvol appended.
>
> I don't really like=C2=A0this solution, partly because 1) an ubunt= u
> installation I have doesn't even have the sources=C2=A0output (tho= ugh it
> was added 3 years ago,
> see:=C2=A0https://gi= thub.com/util-linux/util-linux/blame/master/misc-utils
> /findmnt.c#L135 )... but mainly because I don't know exactly what<= br> > this will look like for other device / filesystem types.
>
> maybe we could add a sed expression to trim past the device name?=C2= =A0
> i.e.=C2=A0=C2=A0
>
> findmnt / -o source -n | sed 's, [\[.*]*,,'=C2=A0
>
> thoughts?

It doesn't look like something to be changed in Isar.

But you could simply have custom expand script in you layer that does
things you need.

| meta-your-layer/recipes-support/expand-on-first-boot/expand-on-first-
boot_%.bbappend:
|
| ```
| FILESEXTRAPATHS:prepend :=3D "${THISDIR}/files:"
| ```
| meta-your-layer/recipes-support/expand-on-first-boot/files/expand-
last-partition.sh

So, bitbake will take the script from your layer while other files of
the recipe will be taken from isar's `meta` layer.

> thanks,
> =C2=A0 =C2=A0Stephen
> --
> You received this message because you are subscribed to the Google
> Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to isar-users+unsubscribe@googleg= roups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/isar-users/3652dfef-495c= -431c-b91b-9ff1e6735157n%40googlegroups.com
> .

--
Best regards,
Uladzimir.



--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/= msgid/isar-users/CAK9C7GDM9juAYg9ewawK0LsHDNzLBX8N3gBeyK%3DT7JShHEUdQA%40ma= il.gmail.com.
--000000000000012a63062c5adf32--