Skip to content
Snippets Groups Projects
Unverified Commit b12302c5 authored by Caleb Connolly's avatar Caleb Connolly :recycle:
Browse files

postmarketos-initramfs: use dd to allocate logs image


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: default avatarCaleb Connolly <caleb@postmarketos.org>
parent 8def1665
No related branches found
No related tags found
No related merge requests found
......@@ -823,7 +823,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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment