From c798b7fa7469022e052b7034e4e0e226b7152615 Mon Sep 17 00:00:00 2001 From: "Roberto A. Foglietta" Date: Fri, 16 Dec 2022 12:17:50 +0100 Subject: [PATCH] In expand last partition recipe udev pacakge added A dependency needed added, this grants that udevd and udevadm will be installed Many systems might not need udevadm settle for expanding last partition but few others which rely on separated couple of bootfs/rootfs where last partition is on a volume connected through a kind of bus which not be fully ready at boot time until udevd will end to populate the /dev tree. Moreover, expanding the last partition is a single time task which runs only on the first machine boot and then will be disabled forever. Thus, even if it would take some time on some systems, it is acceptable in order to grant to the widest variety of systems this service. Alternative is to accept that some system will be left unprovided of the storage space they have been designed for. This patch is for applying on top of the other previous 7 patches - In expand last partition few improvements and a bugfix - In expand last partition trap exitnlog EXIT logs with simpler code - The expand last partition might support full volumes also, to test - In expand last partition checking the size is useless - If expand last partition fails, unsupervised systems reboot - In expand last partition script btrfs support added - In expand last partition wait for udev have finished or their combination: - The expand last partition rework and generalisation Signed-off-by: Roberto A. Foglietta --- .../expand-on-first-boot/expand-on-first-boot_1.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.2.bb b/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.2.bb index fe7b72b..de4a9bb 100644 --- a/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.2.bb +++ b/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.2.bb @@ -10,7 +10,7 @@ inherit dpkg-raw DESCRIPTION = "This service grows the last partition to the full medium during first boot" MAINTAINER = "isar-users " -DEBIAN_DEPENDS = "systemd, sed, grep, coreutils, mount, e2fsprogs, fdisk (>=2.29.2-3) | util-linux (<2.29.2-3), util-linux, btrfs-progs" +DEBIAN_DEPENDS = "systemd, sed, grep, coreutils, mount, e2fsprogs, fdisk (>=2.29.2-3) | util-linux (<2.29.2-3), util-linux, btrfs-progs, udev" SRC_URI = " \ file://expand-on-first-boot.service \ -- 2.34.1