Skip to content

Commit

Permalink
image: only increase file size
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Sanft <[email protected]>
  • Loading branch information
msanft committed Dec 20, 2023
1 parent 54c2fa1 commit ae38bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image/system/mkosi.repart/00-esp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
Type=esp
Format=vfat
CopyFiles=/efi:/
SizeMinBytes=1024M
SizeMaxBytes=2048M
SizeMinBytes=512M
SizeMaxBytes=1024M
2 changes: 2 additions & 0 deletions image/upload/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ pack() {

azure)
echo "📥 Packing Azure image..."
# Disk Images on Azure have to be at least 1GiB in size.
truncate -s \>1GiB "${unpacked_image_dir}/${unpacked_image_filename}"
# Disk Images on Azure have to be a multiple of 1MiB in size.
truncate -s %1MiB "${unpacked_image_dir}/${unpacked_image_filename}"
qemu-img convert -p -f raw -O vpc -o force_size,subformat=fixed "${unpacked_image_dir}/${unpacked_image_filename}" "${packed_image}"
Expand Down

0 comments on commit ae38bde

Please sign in to comment.