From patchwork Fri Sep 30 11:34:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Roberto A. Foglietta" X-Patchwork-Id: 2157 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 30 Sep 2022 13:34:53 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-yb1-f192.google.com (mail-yb1-f192.google.com [209.85.219.192]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 28UBYpiE006058 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Sep 2022 13:34:52 +0200 Received: by mail-yb1-f192.google.com with SMTP id t6-20020a25b706000000b006b38040b6f7sf3583585ybj.6; Fri, 30 Sep 2022 04:34:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664537686; cv=pass; d=google.com; s=arc-20160816; b=PZk/QO1tAlzn7voKcas2JWkPS/tL75WTC+WPO5IxSTgod3JmgPD2oBGOCPsOSzPVbw pcqaPmeKINFdm1rvWZyLfeIO0miO3gI6BG/044eO4LHv87BddJfaaBsja5xtUToYzz17 9lJDjq+ikqPSgwpn23gjy5soYcmiQVbZB9uTuu0ntK+vhjjO2cS1xwCcFgLDhUHGyF60 3ZmpXqxdNR/RTmr1w/Zx3jHXetq5DIkO+TEwzMn6dRyTsumjSkVwWFm6gO5uCgt5+5/q D+XfA9vQIEZi7Rd4s+l1HptGZM99NqqIgiqjRqdcZWar4/uW2WExCk5S58rcS30Lb//t KDdQ== ARC-Message-Signature: i=2; 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:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=HdahSmc7d3za5jIo5vMZ7SvjY6f6BbAOw0Xy+yx2k/w=; b=KUHVIiEpSgCnjOUZq44VdgmCof5dNAMlFM281hiQXhYS24nMxax7hf/25WYVLt0UtK DrT80yNzRrGYBBX4AmdBj0EOmTA57JX2cKw8xmNIkDPWuBAwTWuaqAehG5V3KtHxtvC6 I00PbJI3WMLInmdI9zo0qVT+jKP8AjZQWMD2m0eDbPHscIRhOIfPyoDUkRoptJOxAbY9 twL+A+686s3ZVsWUrlbfJYldqxEqxKcLM4aeQHSVaqqerd94uAc+U3olWQ9TfU47JngR zQZumnOEuqyFb0+yH6nr+TZ5SXx6i1tOTKWni7Jjq0PO9Ht/oy2yqVzX8iJ9WIg8WFof B+DQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kj93SAz1; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::12a as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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:to:subject:message-id:date:from:in-reply-to :references:mime-version:sender:from:to:cc:subject:date; bh=HdahSmc7d3za5jIo5vMZ7SvjY6f6BbAOw0Xy+yx2k/w=; b=fP6LhpRpFtA8qUF1yQapRbiJMPOEp1nlvJ3jgn9ctnWnGXW8Z5g5RSZM8CIs3wtYCt tNTIirdga1RlrdGOpqd8JXAhzKHUgi2ayr6K8huIcdyjuD1/eSZ6JFEcGu1WAUFEOoqp b33XsdlYg4jxaj2Kg9CuPSaz39zUZurWoOLKH+Od0YDRk3NT7OfIRG5CvmBbyUolbQwf 1yxjZwsCaNQKJ3/K6dUHRqB0YzS8ffMDEL0W0yvFaUhZ6xLeLYfmsmZTffVsovbHuVDr 4mRjq4nSkinAdzXHMI2vY3MVuTkMyGS9b6SHDak4Zh/NrNHtvaNAG0HM/KMqMDtBMVeP VBpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date; bh=HdahSmc7d3za5jIo5vMZ7SvjY6f6BbAOw0Xy+yx2k/w=; b=mgotcDMdrxlhse1M54XbVGQL7imGwDOJwSP5V2EoG+e93UrnQyCMurCgaKQGpRTNPg Vrk7hEsRqYi/VDrwZ1gKrItK2LR/NEnsOv2l5YC/b/hJua9ok0PFRYZpXZtldmdoS5KJ kVeRbLw4o6Xit1ovYz1tjhGLOyBzjuV3vStmoUawzxOHGI3QpJV3waiH6YZo7XAVB11F Cogkv/HGDxqFI8gCzV9BcYDWMV9GBg7lncHcwcYSQ0zG8IrqBkXlPNnCVzJmYos3dsG5 pUUNqHxf/LCRpFb/zQxJyVKEHXlVaNnJht3FYE6eFaGfx7VhawZfXd28J8QPcuS5iyKZ /X7g== 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date; bh=HdahSmc7d3za5jIo5vMZ7SvjY6f6BbAOw0Xy+yx2k/w=; b=zzP3zrfB6mLIId/LDKPDqPfsvlXgFG4qY6Ws3NgJYU9zbA/ikAZOPqZ7NN+xoCRJgb Qe9dmDr31O1AeTA4fivte7idTwNIgsPnHtDch+YP80SOY1/+1FrcrCp3SKDjZrv6JBGA WcphixtLIcjikLgtHCLOTu0Ab3Y/RA7uNXdUazwtMbwVpboSTCvFOHn5UPSXHnDn7zuQ cRzq5JsIveeKlSI5qD3VvZQYTXbMteTMDk3OIlVmsVy302uwMXmsIZrBm2I4mmWRYOjT M86G8nyX9MOsTuZy3xBsunAx9100Sl1bYI+8zN6Plq8CqNa6RDOCiNMQwWOV7X6xn1wA eAQg== Sender: isar-users@googlegroups.com X-Gm-Message-State: ACrzQf0fQOUN0nFkv6P+ntIZEhCptkPyF4G8w0cgG5AgFO35LpifyHfA ZvuODAQanFR+7SfTib9rLio= X-Google-Smtp-Source: AMsMyM5UW23cSnu9KfUeMJxsgGZ9gA004TXirTrciZT94KyeFiI+PGhI3UF83Q4dgZjEyE54j/2GFQ== X-Received: by 2002:a05:6902:10c3:b0:6ae:98b0:b8b1 with SMTP id w3-20020a05690210c300b006ae98b0b8b1mr8201663ybu.231.1664537686411; Fri, 30 Sep 2022 04:34:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a81:9153:0:b0:356:2493:fb2b with SMTP id i80-20020a819153000000b003562493fb2bls815294ywg.1.-pod-prod-gmail; Fri, 30 Sep 2022 04:34:45 -0700 (PDT) X-Received: by 2002:a0d:f685:0:b0:343:bd3d:80b2 with SMTP id g127-20020a0df685000000b00343bd3d80b2mr7835306ywf.485.1664537685786; Fri, 30 Sep 2022 04:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664537685; cv=none; d=google.com; s=arc-20160816; b=wEnRF/BErhfyuvwfSByIiQR+BkGyfVZYskRnXtYG8e2KyjMj5HH8VhUTglW5wpd7tM egdHmHAFU70G9Mblpe5gFwx1/8sv32WhXPo8qtI2Xj+54cyO7uona63GYW8SHR83sQdT ArHThaMiTklo2EBTIwd2FfDv30F9nqecyehSMnTiQmZ5xb4D6hdTabjMqHBdU/Q5wBce cdWhBwwHK4mHgv0SU8479hbs65SpoG1KmOB5GpdZjj5LG0E1kbA4DhgJYgm7mXTS4L1D xjFhybX4ASV6F8q6rsPG1WzSBhFuiDr8Uq8VAVKP9KZmt8uVRECocK5A8xU5dlU+CAuD f+hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8CMWPwX2JMZqWWs/w9a2UWFIsZQfVRTjB50Y4tItFiw=; b=y2BF/jQAZFJUB+J4DDxK/+vLipVJcRU9x9R7bmkOwrffo3iIAGnW5dDBwHR+qdsvON /ivCdvo0Ei8Y9cbo76Kjuz0bBLDDPDNeIU4AIHoFiue7onvjjqi+vYrRQY+kEuThnQ4h HOHftACP4Hmr03jjqgWAX5tGoqMOtFSjDavAY3uR3kxS94ILqoVuQoPXiPnNHsxy9grz cGEJAbzVq/gXtfIBnHirCn7LqGgzqmnTw3cXI2CBCze3kdiwGqWkfsTWlrmgHbE5Qmpt 9ER9wcaykFEFX+tNHQzMs7WB0opiY95qKk2Lrgdin5dBhj97FiWWkdX1Pqapteqnc8+X O+og== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kj93SAz1; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::12a as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com. [2607:f8b0:4864:20::12a]) by gmr-mx.google.com with ESMTPS id i136-20020a81918e000000b003531377378fsi156895ywg.1.2022.09.30.04.34.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Sep 2022 04:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::12a as permitted sender) client-ip=2607:f8b0:4864:20::12a; Received: by mail-il1-x12a.google.com with SMTP id i9so1796665ilv.9 for ; Fri, 30 Sep 2022 04:34:45 -0700 (PDT) X-Received: by 2002:a92:ca4d:0:b0:2f9:3e9e:e566 with SMTP id q13-20020a92ca4d000000b002f93e9ee566mr3178547ilo.165.1664537685151; Fri, 30 Sep 2022 04:34:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Roberto A. Foglietta" Date: Fri, 30 Sep 2022 13:34:33 +0200 Message-ID: Subject: Fwd: [PATCH 1/1] expand last partition supports btrfs (inline 2nd version) To: isar-users@googlegroups.com X-Original-Sender: roberto.foglietta@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kj93SAz1; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::12a as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=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=-0.9 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_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?= Change before the first version: rmdir /tmp/btrfs added to avoid polluting /tmp here hand edited. From 67c4ea67ac96276c5ec0e6b15d035543b99b8e04 Mon Sep 17 00:00:00 2001 From: "Roberto A. Foglietta" Date: Thu, 29 Sep 2022 15:36:48 +0000 Subject: [PATCH] expand last partition btrfs support added improvement, expand-on-first-boot: support for btrfs added Signed-off-by: Roberto A. Foglietta --- .../expand-on-first-boot/expand-on-first-boot_1.1.bb | 2 +- .../expand-on-first-boot/files/expand-last-partition.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) SRC_URI = " \ file://expand-on-first-boot.service \ 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 759ff8b..5b73dc4 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 @@ -61,4 +61,9 @@ partx -u "${LAST_PART}" # when using systemd mount units. export EXT2FS_NO_MTAB_OK=1 -resize2fs "${LAST_PART}" +if ! resize2fs "${LAST_PART}"; then + mkdir -p /tmp/btrfs + mount "${LAST_PART}" /tmp/btrfs + btrfs filesystem resize max /tmp/btrfs + umount /tmp/btrfs && rmdir /tmp/btrfs +fi diff --git a/meta/recipes-support/expand-on-first-boot/ expand-on-first-boot_1.1.bb b/meta/recipes-support/expand-on-first-boot/ expand-on-first-boot_1.1.bb index 1703a64..d41dd83 100644 --- a/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.1.bb +++ b/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.1.bb @@ -9,7 +9,7 @@ inherit dpkg-raw DESCRIPTION = "This service grows the last partition to the full medium during first boot" -DEBIAN_DEPENDS = "systemd, sed, grep, coreutils, mount, e2fsprogs, fdisk, util-linux" +DEBIAN_DEPENDS = "systemd, sed, grep, coreutils, mount, e2fsprogs, fdisk, util-linux, btrfs-progs"