diff -Nru initramfs-tools-0.137ubuntu11/debian/changelog initramfs-tools-0.137ubuntu12/debian/changelog --- initramfs-tools-0.137ubuntu11/debian/changelog 2020-08-03 18:04:00.000000000 -0300 +++ initramfs-tools-0.137ubuntu12/debian/changelog 2020-08-31 18:04:00.000000000 -0300 @@ -1,3 +1,10 @@ +initramfs-tools (0.137ubuntu12) groovy; urgency=medium + + * d/tests: Add explicit call to partprobe on net test, specially in + prep-image and run-image. (LP: #1893675) + + -- Guilherme G. Piccoli Mon, 31 Aug 2020 18:04:00 -0300 + initramfs-tools (0.137ubuntu11) groovy; urgency=medium * scripts/functions: Prevent printf error carry over if the wrong diff -Nru initramfs-tools-0.137ubuntu11/debian/tests/prep-image initramfs-tools-0.137ubuntu12/debian/tests/prep-image --- initramfs-tools-0.137ubuntu11/debian/tests/prep-image 2020-02-14 11:29:00.000000000 -0300 +++ initramfs-tools-0.137ubuntu12/debian/tests/prep-image 2020-08-31 18:04:00.000000000 -0300 @@ -25,6 +25,7 @@ truncate -s 1G "$IMAGE" parted --script --align optimal "$IMAGE" -- mklabel gpt mkpart primary ext4 1MiB -2048s dev="$(losetup -Pf --show "$IMAGE")" +partprobe mke2fs -q "${dev}p1" blkid --output=value "${dev}p1" | head -n1 > "${IMAGE}-uuid" mkdir -p mnt diff -Nru initramfs-tools-0.137ubuntu11/debian/tests/run-image initramfs-tools-0.137ubuntu12/debian/tests/run-image --- initramfs-tools-0.137ubuntu11/debian/tests/run-image 2020-02-14 11:29:00.000000000 -0300 +++ initramfs-tools-0.137ubuntu12/debian/tests/run-image 2020-08-31 18:04:00.000000000 -0300 @@ -43,6 +43,7 @@ -netdev user,id=net0 -device virtio-net-pci,netdev=net0,bus=pci.0,addr="$NICSLOT" dev=$(losetup -Pf --show "$IMAGE") +partprobe mount "${dev}p1" mnt rm -rf "$OUTPUT" cp -aT mnt/result "$OUTPUT"