Unverified Commit a8a68c34 authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

Merge pull request #189935 from baloo/baloo/qemu-vm/fixup-efi-partitions

qemu-vm: ensure we do not overwrite the partition table when EFI is in use
parents cc11eea7 7f026cc6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -858,7 +858,8 @@ in
        # If the disk image appears to be empty, run mke2fs to
        # initialise.
        FSTYPE=$(blkid -o value -s TYPE ${cfg.bootDevice} || true)
        if test -z "$FSTYPE"; then
        PARTTYPE=$(blkid -o value -s PTTYPE ${cfg.bootDevice} || true)
        if test -z "$FSTYPE" -a -z "$PARTTYPE"; then
            mke2fs -t ext4 ${cfg.bootDevice}
        fi
      '';