Skip to content

Commit

Permalink
build: keep the boot partition with label COS_GRUB
Browse files Browse the repository at this point in the history
    When we repack, we mkfs.vfat for the new boot partition.
    That would break the original partition label, so we need to keep
    the label (means COS_GRUB) as before.

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
  • Loading branch information
Vicente-Cheng committed Sep 12, 2023
1 parent ed0b781 commit 825a709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/package-harvester-os
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cp "${extract_dir}/rootfs.squashfs" "${ARTIFACTS_DIR}/${PROJECT_PREFIX}-rootfs-$
# and copy EFI files to it to make it UEFI bootable
uefi_img="${extract_dir}/boot/uefi.img"
dd if=/dev/zero of="${uefi_img}" bs=1k count=4096 status=progress
mkfs.vfat "${uefi_img}"
mkfs.vfat "${uefi_img}" -n COS_GRUB
mcopy -s -i "${uefi_img}" "${extract_dir}/EFI" ::

# Remove original ISO, and repack it using xorriso
Expand Down

0 comments on commit 825a709

Please sign in to comment.