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:38:31 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f184.google.com (mail-lj1-f184.google.com [209.85.208.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 50N7cUwX005511 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Jan 2025 08:38:30 +0100 Received: by mail-lj1-f184.google.com with SMTP id 38308e7fff4ca-306007d101dsf2255401fa.2 for ; Wed, 22 Jan 2025 23:38:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1737617905; cv=pass; d=google.com; s=arc-20240605; b=ckvq+8vcP7NEdxKBh+nFef9J8j4i2UrIv7S6ZSs2JczE6u6E8Vr6eB3vGVyB9hv4BK 8JivJEAY0R1SDNJT6YLu8NVNnou5CQTBn58Nik5KxgfIoKgwDr8QhFlVVzslSGE4muQV zbiAk6M9yfhy5AHVP8GIezkOpthWmeh+k14F0dJhlYGgLy2T9y70qelkP83sg6EDh7Pb jjHiWE2tHXExunVm/UR+7ARHPQYY8ld+Dv0job9Jhd8i32BdNciq3f4ohG7sMKtDWkMu BScZjdGh68LcnXM/GzChX2QzD+AAGXDKwBDzOuvf0tRyRRVGlVw03lOy7fhMkgeRq0Ol TBWA== 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:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:to :from:subject:message-id:sender:dkim-signature; bh=C67SsS2a0rsv0GkaWE1IM7DvpoK28yWavZD91TRPLYY=; fh=RX7Bxa/ts/C0K8OiswnbdfYGJyYRv0A/+RjE07Rd4WE=; b=a6R0X2gALcfX9vd1CfYHLxNqFAe3TSMKsUQckj7EupBsn1oJqcoS012xGk50+Qjr83 3vcLUTZdrgfPvmIcgOJ4orPapUZ60/dNeHyqyVa5lt9EVVnVyydUSXQPy7tw0Vv5Ht2G eA4QvSzBsp3slhTOd7icZ3ifijlOFfDCeKyabEhREXOuQqeS+cFYJO9g5i/rAKvi9/3b 8ANiTq8REQjbPMrkb4wvr1BRCEo/NT1t+iViWPahqM6pke7gGIwOhe/0sFnyjYsYnn0z oioRKVk67RKJAHhipVF9XA+EqVRpadeiG6mqgza1acmObmjABOqst7VkcUsvyI7O+gHz YkHA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1737617905; x=1738222705; 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:mime-version:user-agent:content-transfer-encoding :autocrypt:references:in-reply-to:date:to:from:subject:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=C67SsS2a0rsv0GkaWE1IM7DvpoK28yWavZD91TRPLYY=; b=nF8Is6rIWcNpiBX0BKQi0PZtgT1xnMc8qO7QfWrC1lHxsMKBhx3HvnSYjYRIugEP8o qumtoQbnh4aY6orzjtk49Q6KcxqwJdqKEwNfl53xX8bZgLZrsam1C8+jXT6/x96hiiFX HEuEC/I+AKJ2lYXlnHH0Vrh95dq23ztdBrr30FF2HT6XZeJKEqFAsKI/2HmdPZ74zbKA IIcMZ7rSU4pLsVA7sJ1ETvFamkHl/pwJJ3C+isk6sSdkHXTvnDPS7kXekItU2V39sryR wuAO4efai8y8MAFBJcXCoyevVWGSjEr0ZPEjoHmZraUHLIQSYvdYeGF7reMVbz5c8hFI cKpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737617905; x=1738222705; 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:mime-version :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:to:from:subject:message-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=C67SsS2a0rsv0GkaWE1IM7DvpoK28yWavZD91TRPLYY=; b=CpA98JAJSfOg5j9bgzv7zTUijF33X4b399+NRtp8gs7xQCr/ABtnCmijbRGbdOZlUR pBde1mtLNEOMO3TrVxsNqTP1YkDwIlcyupY0qRTro3msfPEWwyDk9dKo8wfRcVcwnPMM wC++jgYGoZUK7vWD08RpNFKAZR9n1ycvtyztrBiI0bOEm9Ve+DrBjIWUDeHk3N4ajxz9 X99/8H6z7H8c2JKgPdInGNJjtZm7U2cGgxeRsMwOBFrMqr5TskxxKWvWYtdTpmnI1F5Q UUjq/cRSiF+xgEwyCH/m/ya6aZ46WOyur6aa3iaMLHmziCW/WZYbsI2hN8Vv6Jyprh82 mLEw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVm97tcYU88AI9MhvZfl56R+d/j3Z2+mjxJUDql1TuKR4witMYwirt/xkC8xvrTD5/F0uPe@ilbers.de X-Gm-Message-State: AOJu0YzIEh+vXhD+gQlRg5mSLXI81YJR2qZJLXAT4QhQzAdFUqhGQOGL 7oNcuIedfnSafwv1lwQp9HPZHmkJp2+9CDjrQ57XUYePzgccepSt X-Google-Smtp-Source: AGHT+IHH5rWLXyAKfLQJ2vrUfbC4rq4+BRqMV6ztBvrVDvptYHkxGJ2YdBD+r7Y4w93JBBd6G5kpUQ== X-Received: by 2002:a05:651c:887:b0:2ff:caf8:3007 with SMTP id 38308e7fff4ca-3072ca9c230mr96041821fa.19.1737617904049; Wed, 22 Jan 2025 23:38:24 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:54a:b0:300:1923:a0b5 with SMTP id 38308e7fff4ca-30761c68bc6ls1916251fa.0.-pod-prod-07-eu; Wed, 22 Jan 2025 23:38:21 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW7+n3xPOUmbGCoTEpdA5sBOtyQnR3jYNQPUhv8teTNWnBLbTfGr+eeVnYUkZf2IG+UJxpgBukIQGAw@googlegroups.com X-Received: by 2002:a2e:a449:0:b0:302:17e7:e18a with SMTP id 38308e7fff4ca-3072cb22460mr80409871fa.26.1737617901304; Wed, 22 Jan 2025 23:38:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737617901; cv=none; d=google.com; s=arc-20240605; b=cDbZyQXSsGWDJ7WiSPlQ1crikDcHqRCdzDZBwwj3qy6h6RlyMQ6ux4PLkofPoPBf6+ Q9X8/0qYwnv/vf7oZ7s0orCS49ZALN1r1k2gce8v78S1srtlujHtjw1K6NEQcOTV3KLY 3odSGft6wdgr/RIlDA5UszIG+iaelk7cG90i8RMnGcXIqDsBq9S1QOz9wLQ8Ijo4ly8v /Edk9mf5C+X9diF0s9FiajAVW59lRdUaODvUOZrCxZm1ruXcnjCz0Y9BxSmMef3AEJ6r 3YEZ5gpWXLIS01bJw7AkcB9hNg5VUe2VCm81lWlZbOe9aUdCUP5z0yhYeLCZqqV/yq9s 4G+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:to:from:subject:message-id; bh=Wu9lWWMMDeyTitFAfQ4j15Ti5ceTiiBm6I9ZnDnJQyg=; fh=FIHmbgFAjn+X4xsODpICRoklF9jlL9u0/B6TibXS1Is=; b=L5yNsPmVSUt8Pszzpx4KlPeS6oPJrL70al194YBNs7WHqmfK4p27uNJAxMW09nTqHm 2FndJx7e+G1QWYFxm3Fz+/nE1dEAORwLFEy9yoBgTvuPkStMU53LkPf/+WcIhmmtbO0U JgRsFVSw/BfG+q03ZNXWL60nWUFLrWA1W5j+P3JlIm31KCGTF7R4SzB1V1iC/CShF75t uFKopsntB2kqV3NuU3d7vRotcnVMSCFEByoZkk8/mbX83SgIk6C6Uwd1mSSNY1BcGiY5 IzaOVX3AdPPQWbHaz1K6raoxugjwTv/QfmyJYcWrm5bouvadiQCzHbrXDXXdukOvk3RR wHYw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-3072a4b31c6si2812651fa.8.2025.01.22.23.38.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Jan 2025 23:38:21 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [IPv6:::1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 50N7cHDO005503 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Jan 2025 08:38:19 +0100 Message-ID: <510274b28f1ae5fc4f4d61a269f7441befdcc116.camel@ilbers.de> Subject: Re: expand-on-first-boot broken with btrfs subvolume From: Uladzimir Bely To: Stephen Ecker , isar-users Date: Thu, 23 Jan 2025 10:38:17 +0300 In-Reply-To: <3652dfef-495c-431c-b91b-9ff1e6735157n@googlegroups.com> References: <3652dfef-495c-431c-b91b-9ff1e6735157n@googlegroups.com> Autocrypt: addr=ubely@ilbers.de; prefer-encrypt=mutual; keydata=mQENBGO2eUkBCACtT+T3OrPVSExBmqfgXT3lp9XcdxRzjYp26wezkgYjjBXaf36bxtaAf S471VoQtpar0RVeFfW7WDDdfX9ZclSj36zBQe+RVSJzoNoNQfjOXWuSHb5Z+cpAFtqBY4muxK4+ia IlLJd6CN3ejOsLHATtCeHHq8wi0z2T+KdLQO+wQRgo2hjj0Lp9pGTrKJry50HP/o7Vbdu14dOx2xq r8+wPc6SQbBIrcqaa4MqCQC00vQG7eXvo+k2MOw59FDdpMH0KR9mHgp3u/s4I+4YRBArukt9G9xz/ rsEFmxAIBC6N/a6Hzwg4puc91n7ABDsPg8Vp+X3MDraujN0dvR6OKVNtABEBAAG0IFVsYWR6aW1pc iBCZWx5IDx1YmVseUBpbGJlcnMuZGU+iQFOBBMBCAA4FiEEJqPNVhVGyk12Eh+PAUQYBM/2FkoFAm O2eUkCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQAUQYBM/2FkprlAgAmuna8Hm9EyoEtTl DBGDg6Zm4ZLp5ffvZBE946h92jepDrteoxsJ7pSzJVC2HmDLa4iZUao7lLLbDsUj5x45/iLJcqBZK k3YnAxP2r6a+kI+1VVQY1pxdG1nlJAbdNzoojm/qmezNPSrqni61KVMQKsXBCWhIjSXDSM9CsBj21 a+9qaVqfxovJGTn9lgrZO+xzKQNMKZeOouJlscVuFj21P0ww3/YENiU/nMeTSuYypO76mDtAd08Jo nc3yuHa9MJGei5ixN3wT+IrGR2aL2hdw2M6NgH7sYbL2Zi4ugD6RXHJai1Bh2yvFSVqSQ+M6QOInT 4ud7wslm1XRB065dXtA== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, 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-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de 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-TUID: gAkylUm4Y2KS 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.sh > script for the oddest reason: >=20 > line 4:=C2=A0=C2=A0findmnt / -o source -n >=20 > normally this line outputs something like:=C2=A0/dev/name, > but when on a btrfs subvolume, it outputs: /dev/name[@subvol]=C2=A0 >=20 > 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 / - > -output-all, the device name alone was listed under SOURCES, where > SOURCE had the subvol appended. >=20 > I don't really like=C2=A0this solution, partly because 1) an ubuntu > installation I have doesn't even have the sources=C2=A0output (though it > was added 3 years ago, > see:=C2=A0https://github.com/util-linux/util-linux/blame/master/misc-util= s > /findmnt.c#L135 )... but mainly because I don't know exactly what > this will look like for other device / filesystem types. >=20 > maybe we could add a sed expression to trim past the device name?=C2=A0 > i.e.=C2=A0=C2=A0 >=20 > findmnt / -o source -n | sed 's, [\[.*]*,,'=C2=A0 >=20 > 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: |=20 | ``` | 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 > --=20 > 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-9ff1= e6735157n%40googlegroups.com > . --=20 Best regards, Uladzimir. --=20 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 e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 510274b28f1ae5fc4f4d61a269f7441befdcc116.camel%40ilbers.de.