postmarketos-initramfs: use dd to allocate logs image (MR 5000)

fallocate seems to cause some strange behaviour where the logs.img file
is treated like it's empty. Given it's small and in a ramdisk let's just
create it with dd instead.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-04-10 04:49:29 +02:00 committed by Clayton Craft
parent 709768214c
commit 5dcb7aab62
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A

View file

@ -849,7 +849,7 @@ create_logs_disk() {
local upload_file=""
echo "Creating logs disk"
fallocate -l 32M /tmp/logs.img
dd if=/dev/zero of=/tmp/logs.img bs=1M count=32
# The log device used is assumed to be $loop_dev
losetup -f /tmp/logs.img
mkfs.vfat -n "PMOS_LOGS" "$loop_dev"