From patchwork Tue Oct 25 13:47:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henning Schild X-Patchwork-Id: 11 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 25 Oct 2022 15:47:53 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f62.google.com (mail-lf1-f62.google.com [209.85.167.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 29PDlqrr019324 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Oct 2022 15:47:53 +0200 Received: by mail-lf1-f62.google.com with SMTP id cf15-20020a056512280f00b004a28ba148bbsf3823769lfb.22; Tue, 25 Oct 2022 06:47:53 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1666705667; cv=pass; d=google.com; s=arc-20160816; b=TbWKF9/iVlTwHtzZy0y1I8f6yIjgG/njQc59Y1s2PvyfK40XaEu2OrIiSb/8/cMbp2 zc8disrNnaYEPjPRTsHeqWo+c1e4cccwnQO8NPbgavAtHpMtHXy9zJwQVDlZAB8PVBrD 4b1ghy633c2fRLGT4abvBilG5GLgjathfPPhKPXsejPQv0H2eZVFoAYiIdOgm39dY3K2 4WLPMBQFwBOLti+n6+5A5oBOCWW8wT6K4j6g7rsBBnliqm3ULgga/Xo90ThFL28fGEkC M3gl3/OMgEiZM1TWnp2eFxQTXu59JE2404XKEGtrrvjP9WCRpRE6aORCXKZfkTNF2STt zDoA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=JDnI8p9HplcXiJuq5zf+RjTaTcU5/bLy6ecupxOfgvw=; b=kiYZ42T1jpMsg5HZPy4uDeElZ0YVOyARnD2w4ugIylb8I/NgGl8G4VCQIv67BfIydo dzTKSISYoVzHEnYnkzKe2cE8nspIQ2BZx1bTa6Tzk7jko0DARbYiIosjAEbwnanO2PO1 bHey0HVXcQs7/yJfAoN6Mz8Xu0K05BBSnldOTx/aEiBupBZSlZ3s/3f8hiWUYvY9ZKTA uphtWBujUUsL6npXekaJQvK+hSyWLAa/zY7rzmjnbr3X7E85jtHJFrchh5JB7544nJmC PohYd4KdWGzXdy1UOog2RTJzpDJrX0lXveeaKGeoRFp+aIsLW9MGGSpRJxLOdddShXK3 ngPg== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=SvCVOTmj; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of henning.schild@siemens.com designates 40.107.7.49 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=JDnI8p9HplcXiJuq5zf+RjTaTcU5/bLy6ecupxOfgvw=; b=Bxxmqt21Um70ou/668BEHp/d/AvyjusYyas6HviG1jT7LXSk0FLF/HL/pFm+9uSZ9B hxmUEvG+9slRld9mu2gKavKy3edkg8gyvzfYtYcC/+3/+z1JqBY7kwz1hQ3hCyNghtTz SsPkb2uTegD9Z76NHfFDwQqnzAFS8Tuh8tPKeKPmUenSil4kiMdLItfClzqXEjLYo2GY 5/e2ToIZz6Fej33YsH0qXUH0pCg38POG1m6GDOw1wKaYeXUhzBLZAZApDGq2ahq4ZfwB 3XyNVa0Mree+looJiv1oylGTTmgbdZd7XYEBVg6MQgtHrq2FcUxPsYZiQQHMED4EWvSb 4IPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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 :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=JDnI8p9HplcXiJuq5zf+RjTaTcU5/bLy6ecupxOfgvw=; b=P/6A8duXxRbjS2uHquSZH83J3WZ8COI9yaKXUQ4d8E44cQkvW7ToQdEWp2sIb0IF5g L3cUz/1jRyQWEpGOsjvHOZjhvixFKRCeib50zm0yDLgnG+rvfyXlWJy1FOLawNLoN63x Cx513OcAimlxw/NsEt/BthCNK9GOlupFA/5gVLMEXKS6YuQPbDnGZBk88Vye3yp10zw2 9l0TeowRMdYcAWbWlGM1ti9d1sPRD5r6imLQqQ4sOwnr6nyj69CG+fDHxL/Y3n+PEA+r iSHCtWmV8J3xH9/b2WEjWXtwRlkJ+nx7yfPTbm9PpCD1P8dUoxgRPtYEqtplh6HZMwYW R2pg== Sender: isar-users@googlegroups.com X-Gm-Message-State: ACrzQf0bz4N3Cj03SoQ68SskEroAqjoTdQBIQAm2cWzVkHyV4IXbDN41 dUg9XNWDVBGDNh5du2Uf7RA= X-Google-Smtp-Source: AMsMyM4AloC8gCBLvAEFdnouUKKmpg1q9kDiRny/blbaBXK+NMymBH5ptHhv5LLtA/Gybajt0Vf65A== X-Received: by 2002:a2e:b88b:0:b0:26f:d03c:8d74 with SMTP id r11-20020a2eb88b000000b0026fd03c8d74mr13899277ljp.285.1666705667301; Tue, 25 Oct 2022 06:47:47 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:1186:b0:4a2:3951:eac8 with SMTP id g6-20020a056512118600b004a23951eac8ls3967946lfr.0.-pod-prod-gmail; Tue, 25 Oct 2022 06:47:46 -0700 (PDT) X-Received: by 2002:ac2:46c6:0:b0:4a4:79c7:2e5a with SMTP id p6-20020ac246c6000000b004a479c72e5amr15258556lfo.632.1666705666144; Tue, 25 Oct 2022 06:47:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666705666; cv=pass; d=google.com; s=arc-20160816; b=g9PEgsVyFycl+SLpw0A05e3fW9giLZ3QR91E2ZgrR+eX5zKlp6Vimk3P4il8nnD1f8 peObmG89BYOuJXMQka9+Z4Nk707BPK/+uo2/ibbeJedx/J9EZyu7a1gSBLFetT1oNP/b lYIeF42dLfHfRRFQYmPswgRdEORdwvyJ2wzRSnALgAPu1ss/ItU9BpBh62rSU2W6a351 +VAgpdKdJHEkMObtMR+W60eGSvIUciRua3j2crTVWxJ/yNjLczq3KbUnBc6ebTUNxuQL +fxYPucwpOqnRTXTc7csSntDHyt8zciBL3vxx59S1XzrL76YgTbxsKww5QWaxlvjkX25 DTHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=z5kRo/LUfTdxoqJukYC0FV3bA4hK9BmckqTum32nuic=; b=tH4PkRK67PsFUsE5cEBY171gH6abf3bT0ppqJ3pHsQszm69TdK3eM7iUwW7ENVTK+4 pQX/fxaYu080VADj8eNCK0jWn5NHXCrTlNrUqh9ho/K8SVoPwXAa9G3JCXLCalgTONra xGrY1o7oFPev4j43Qrb4xPh10FqgJXKLkLa9vbPFxX/SKs1nWPGJOcrSa84x75I1LQm7 2eQ4HOGa88UsFJm+iM+5RsPpIbCa7GKwhoV1F6jA7viGddiUivQOf7YjTYk0S8xJAGbO Azh0MNHKONh6g59h1oXiKLhdnrViCt7BD+U/0gdau9cP8u7jlu9OnmweaAhX10UiPRaH KwLw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=SvCVOTmj; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of henning.schild@siemens.com designates 40.107.7.49 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70049.outbound.protection.outlook.com. [40.107.7.49]) by gmr-mx.google.com with ESMTPS id i15-20020a056512340f00b004abdb5d1128si89177lfr.2.2022.10.25.06.47.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Oct 2022 06:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 40.107.7.49 as permitted sender) client-ip=40.107.7.49; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SMYSm4IPtFk7XZOQEtnVrTdxel2GQYqoV2KQWHv4GwqW5JXeLtsGW+uY2MVB8JRNCYV+xyV/NS2tDX+C9zaXBsTtKPtoWTH/I5Hh0KCqlJvE2zk5QOidfSxfRpL/2dUHjBpdstrv05wiJWQ0KgXN2eSAI5q3eiuaocMqe5zYMkhtrOhk+gd/ja4QShOhazoez9+IyU46wZKSigZ8r6deUzzFzdJmUkZNj3poZwwAZhPz/yfWLEhzgIg85CrkVSvRCICsbE6B50swWsmnQ0n9n59TL7X3KVj1pFUgj27ORr5FoUkdu7PKysZEmSUxsKvc5fEuv1eo7MXVHadw4qBD/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=z5kRo/LUfTdxoqJukYC0FV3bA4hK9BmckqTum32nuic=; b=Am2AFfXztD9UIwsDNekkaURybwe/DjlJUZRj2d/FV8o1uI01IEyz5D7DweQ+JAS4NWD2AEyKqMu3oS5g32USKHian/Ofh9xxOpxzLGsdEAaBY0P4ryd6KAskXCYcgkLPoJiMv/1BLJBuWUmKYiK1IJlJEgrwfGAs1zF+T9eqsprPKt/ySmXYauT4GeWfuaKhHYkWf2esBUxZpYGGBPPj97KKdtqxpdQDlYE9mrKTKULy6r0rxrFy3QOW1nM3QE7m5Z4fWcCeoBsI2mLl3N4fGacHF2kvpzYgrtL2iWyIxKAFkgCV4Rn6D5xW8qUahb+byoZDAGYqvKvECDsS9/5hPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.76) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none Received: from OS6P279CA0066.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:3f::13) by PAWPR10MB7748.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:369::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Tue, 25 Oct 2022 13:47:45 +0000 Received: from HE1EUR01FT062.eop-EUR01.prod.protection.outlook.com (2603:10a6:e10:3f:cafe::35) by OS6P279CA0066.outlook.office365.com (2603:10a6:e10:3f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23 via Frontend Transport; Tue, 25 Oct 2022 13:47:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.76) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.76 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.76; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.76) by HE1EUR01FT062.mail.protection.outlook.com (10.152.1.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.16 via Frontend Transport; Tue, 25 Oct 2022 13:47:44 +0000 Received: from DEMCHDC89XA.ad011.siemens.net (139.25.226.103) by DEMCHDC8VSA.ad011.siemens.net (194.138.21.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.15; Tue, 25 Oct 2022 15:47:44 +0200 Received: from md1za8fc.ad001.siemens.net (139.25.68.172) by DEMCHDC89XA.ad011.siemens.net (139.25.226.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.13; Tue, 25 Oct 2022 15:47:43 +0200 From: Henning Schild To: CC: Joe MacDonald , Henning Schild Subject: [PATCH v6 0/1] expand-on-first-boot: Switch from resize2fs to systemd-growfs Date: Tue, 25 Oct 2022 15:47:19 +0200 Message-ID: <20221025134720.22571-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 X-Originating-IP: [139.25.68.172] X-ClientProxiedBy: DEMCHDC8WBA.ad011.siemens.net (139.25.226.105) To DEMCHDC89XA.ad011.siemens.net (139.25.226.103) X-TM-AS-Product-Ver: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-AS-Result: No-10--12.509500-8.000000 X-TMASE-MatchedRID: d4bU9uND5vBdJyhILdOrVo1sqm2qaZSdbw6bxgWmSFwZca7SN08UZFWt 71aOqpDDt5bYHTs7Q/AY8dfj5o9RIv087vci1Q7BHmnJH8RpT5o04S0evJg+wczSKGx9g8xhqNm mMLp35Z84XREg9Ki1046QyJaY0RMc7AbyIFie9n+vjj99PIjWMS0NNROIHzZKndu3heVAxaOtfY 6YPaw3YS196sn93sBv0LhZOfLbWjwjTR4c0YKL98OFOHoa0LX+rSKKfw/QqNU/QdUh6LEl0Dcy5 Kr1d07TmyiLZetSf8mfop0ytGwvXiq2rl3dzGQ17euxdOndYh/Jh0/mzBQSmYtL5AMl2haJ5o3t 3pZMk6fuRWMjCUeg9g== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--12.509500-8.000000 X-TMASE-Version: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-SNTS-SMTP: ACAD60385085226D5BB0913ECF951626A4286F0F2D974F076596DE0C56F867202000:8 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1EUR01FT062:EE_|PAWPR10MB7748:EE_ X-MS-Office365-Filtering-Correlation-Id: 26d151c6-52c0-46da-8225-08dab68f7eb4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kT/y51DX5kSH+6wMYctuXO5PhQSt4zfiHwXsQSEeumzc2KJcEbAfe79cifk2QfG5q7S9wq6O73h15CPe4ndyUjsyc5ijTccrVQPx1xA6MO0QamBXeMIV4CsFD6HAK0KhtinMcpiDMdVkjIir+le8xSYxGFe/ekOQufDGr0FEPJK3UAoi3YiHpuTIeMFA1CCs0daJTEujKsBYAxwYXPqzvKOhOnxznxGpujsYmGmDx+Jo1DI1PL29EiyT+Y3jpX7k1S9GDEMNmEPgKPgiJ4e0vNgrRbqYo4C0jM3Y/P6ygfHgI3reHB+nDoHzSDGz4j/NfX6xZl5bVEL8KfDcLJTrZmRtjcj0Zz6pN2aWX02z41yhd2Wc8xONcq+au83GhSzexl5+GmjBZhupO+84boW1AvUOtKTF7d1uqXywZIVv+leCvcQxNksE8LRcGp/0MGaSc0UKHIdN0BBdCUU/xOYQ+8i7W2uRMZC5JvoER38sGYioKunM6B5FKFVAiX4BVoYGK4eyNEugdLqlGhHNMtX3OK4JUz//o2fH6H//VNfgkS+KkNeh1LUrKRw+JfXhnCAEDjM7xQdytwMr4PFOP9gwCORPtTCQpKeoqxtI0V5M0ieIx0H05GSAXtmudLNEQBTEfiieDkkXS/Zx54rucemNy496csyoLDWpfjkCJJnVLRWs4Zkljr6gEXYdW3yW+FfAXeqSsSv1B7/zFB4WlbMhFdT99ZZDUcUDk69h4EO31V52r0/o5jCsg6RLcJ0eLi1Li3TLpsdWFjB9QpBhK+ovkCEIL6XP16AnK2BSsz1OwVzWyuRLZkkcR6lKfnvZqe1j X-Forefront-Antispam-Report: CIP:194.138.21.76;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(396003)(136003)(346002)(39860400002)(376002)(451199015)(46966006)(36840700001)(40470700004)(66899015)(82960400001)(478600001)(81166007)(86362001)(356005)(82740400003)(83380400001)(40460700003)(6916009)(40480700001)(82310400005)(44832011)(5660300002)(36860700001)(47076005)(54906003)(70586007)(956004)(70206006)(2616005)(41300700001)(8676002)(316002)(2906002)(186003)(16526019)(1076003)(26005)(336012)(6666004)(36756003)(8936002)(107886003)(4326008)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2022 13:47:44.7590 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26d151c6-52c0-46da-8225-08dab68f7eb4 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.76];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT062.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR10MB7748 X-Original-Sender: henning.schild@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=SvCVOTmj; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of henning.schild@siemens.com designates 40.107.7.49 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.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=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Diff to v5: - keep fallback path for debian stretch simply using old code and rdeps Original Authors log: Diff to v1: - Rewording on patch message ("root partition" --> "last partition", added note to systemd-dependency and its impact) - Added systemd-version dependency - Removed runtime if case that allowed for non-systemd systems Diff to v2: - Version bump to v1.2 - Removed e2fsprogs as dependency Diff to v3: - Omit the explicit call to systemd-growfs if a fstab option has been found - Be able to deal with both mounted and unmounted mountpoints Diff to v4: - Mount the last partition unconditionally to a tmp dir and let systemd-growfs operate there. Tobias Schmidl (1): expand-on-first-boot: Switch from resize2fs to systemd-growfs ...oot_1.1.bb => expand-on-first-boot_1.2.bb} | 3 +- .../files/expand-last-partition.sh | 31 ++++++++++++++++--- 2 files changed, 28 insertions(+), 6 deletions(-) rename meta/recipes-support/expand-on-first-boot/{expand-on-first-boot_1.1.bb => expand-on-first-boot_1.2.bb} (88%)