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 03:21:45 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f61.google.com (mail-qv1-f61.google.com [209.85.219.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 50N2LhCH004444 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Jan 2025 03:21:44 +0100 Received: by mail-qv1-f61.google.com with SMTP id 6a1803df08f44-6dd43b16631sf6067586d6.2 for ; Wed, 22 Jan 2025 18:21:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1737598898; x=1738203698; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-sender:mime-version :subject:message-id:to:from:date:sender:from:to:cc:subject:date :message-id:reply-to; bh=1MsAhX4J72ht8JVt1BYVtCK2AaVARb8pGh/BfGfW2Ao=; b=PkZ8qQ+F9v9XAauF16X/DlZpLgasAzj9RKbu48gIDA6fWbofeCX3CY45dzleW9T4zs D9u62wt6pshzKtR8gaJwvQ5nZUhyJQPUjDJriu93QagePofZnukJMLVhEWjjY/7rxBt3 WD0PouzQ5cJ9/OG92Ifjf9XVRBsE3qg1yhVjRMnshYsiRt54MxCh3RxeAT5r900wrtFO wiQijzYEpKo41jGzgAH7ERjBJkQqLXA97dgOr0ebBc58MRK+9T3GgWzuJXd0pQeCFuRH lZLLq0wj5okcWI71GnTXWCyyyYEgvgkQXyy/ZELSd8C6Ek+JmTzlGuD1oPdNlVS8j9Xq Xcqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737598898; x=1738203698; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-sender:mime-version :subject:message-id:to:from:date:from:to:cc:subject:date:message-id :reply-to; bh=1MsAhX4J72ht8JVt1BYVtCK2AaVARb8pGh/BfGfW2Ao=; b=RalPpjTFy79vWnpQiWDqzfsdnNAv/IWe6JYyA1Ddl9HW/qTbkjHkmDO/HjTzeHDY1c ufhcjVG+3c/hlDH4JBT09R+acFXaf8FxNN8QAOrSHqEHYtpGvi2cMpHXJjjJ9xchUO5P bD2k5wH8V52t69WhtaJwSQ/4Yj7HOYstwDpuodKrTGxZxaLPqmdcvfJ+fhICzholsQDy C1rOMc58/11ny6pGPR1rzembx5XX6E6JtzriFu+PrDzOvr84MJOEQESWm+h2MQF4Jv/0 Y0p4ygkP3DTU0Qbodnbyrxt2bzNS1rFIyn+b0BXr8nCtPaTwK5l7JBxwmrfsKsYaQQYD S3+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737598898; x=1738203698; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=1MsAhX4J72ht8JVt1BYVtCK2AaVARb8pGh/BfGfW2Ao=; b=SLECTHQQ1dtzfq4wBJAVwIUS7O8J8ZUzD0msxdAlv+cW9P7zjyVVSOV04ZUxX/UQqc n4ea+OpjpRh/neI4cqMIzArpn4Ail1dNITzr1wYuF2RELldipH/Cl2TRn7BIQ7SicU9q w1ZFAy5DBPqlwtlLHBr+pHaJTOvsaYwEHSzzixtRRcLvIbVVdHx+CUTL1yQ3dWsiw+qj SvLQg3rshLsL3ms3eXKZtiyC0L6whXyV9jCtjXHcdT82c1zx1hhSGAl0CfaAOTsduyV3 a1SyS+769D9a34l8n/dV5GuuH1onmCGpq7OB7ZF84+sdUDq7uU1n+xVH/4HD1g4Zse4N C7uQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=1; AJvYcCUdCF20qzcrHhn05DPUeYIKvYWdSVgXARXPwbprys0mGLoclsKwpd4ZJnz8vvy3QLCNH8OF@ilbers.de X-Gm-Message-State: AOJu0Yz6o0DAhTPOJ3XDHtQWEIde5o18VFe9nzK3lns7lc3nRY6/K5wj zGp3CXMc/D3TZ6VseFpSs3A7FVXrZmdYmEHvBsW+JfSTQ09O9ucL X-Google-Smtp-Source: AGHT+IG9OzZN7UOJiWm3jYmupP86zzRL/bYaeeFB5okmqL82dEPCKa/jNUcSDcohxdoZpJiVEfzc9w== X-Received: by 2002:a05:6214:4401:b0:6e1:a5c1:d52d with SMTP id 6a1803df08f44-6e1b21c46bdmr367286646d6.31.1737598897894; Wed, 22 Jan 2025 18:21:37 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6214:a91:b0:6cb:be88:c825 with SMTP id 6a1803df08f44-6e1fa0246eels5779716d6.0.-pod-prod-05-us; Wed, 22 Jan 2025 18:21:37 -0800 (PST) X-Received: by 2002:a05:620a:19a1:b0:7b6:6701:7a4d with SMTP id af79cd13be357-7be6328a7e0mr4153317485a.56.1737598896937; Wed, 22 Jan 2025 18:21:36 -0800 (PST) Date: Wed, 22 Jan 2025 18:21:36 -0800 (PST) From: Stephen Ecker To: isar-users Message-Id: <3652dfef-495c-431c-b91b-9ff1e6735157n@googlegroups.com> Subject: expand-on-first-boot broken with btrfs subvolume MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_28970_1749614483.1737598896318" X-Original-Sender: stephenEcker240@gmail.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_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-TUID: imrg88Ay5kmo ------=_Part_28970_1749614483.1737598896318 Content-Type: multipart/alternative; boundary="----=_Part_28971_93789245.1737598896318" ------=_Part_28971_93789245.1737598896318 Content-Type: text/plain; charset="UTF-8" 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? 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. ------=_Part_28971_93789245.1737598896318 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have an initramfs script that moves the root filesystem to btrfs subvolum= e on first boot.=C2=A0 This breaks the expand-last-partition.sh 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 subvol= ume, it outputs: /dev/name[@subvol]=C2=A0

This leads to the error: "Boot device equals root device - no pa= rtitioning found"
not exactly sure why, as I didn't dissect e= very 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 no= ticed running findmnt / --output-all, the device name alone was list= ed under SOURCES, where SOURCE had the subvol appended.

I don't really like=C2=A0this solution, partly because 1) an= ubuntu installation I have doesn't even have the sources=C2=A0outpu= t (though it was added 3 years ago, see:=C2=A0https://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 t= rim past the device name?=C2=A0 i.e.=C2=A0=C2=A0

findmnt / -o source -n | sed 's, [\[.*]*,,'=C2=A0

thoughts?

thanks,
=C2= =A0 =C2=A0Stephen

--
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-use= rs/3652dfef-495c-431c-b91b-9ff1e6735157n%40googlegroups.com.
------=_Part_28971_93789245.1737598896318-- ------=_Part_28970_1749614483.1737598896318--