Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-45465

part-get-gpt-attributes fails to get the correct attributes

    • libguestfs-1.52.1-6.el10
    • Normal
    • sst_virtualization
    • ssg_virtualization
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Pass
    • None
    • None

      What were you trying to do that didn't work?

      On RHEL10 host:

      # guestfish -N part:2G:gpt quit
      # sfdisk --part-attrs test1.img 1 RequiredPartition,50
      The partition table has been altered.
      # sfdisk --dump test1.img
      label: gpt
      label-id: B31D5305-E5BF-4F63-8A09-D48AFB1C5EA0
      device: test1.img
      unit: sectors
      first-lba: 34
      last-lba: 4194270
      sector-size: 512
      test1.img1 : start=         128, size=     4194049, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=5262FDB3-F818-421E-B1B5-976CE757C7DE, name="p1", attrs="RequiredPartition GUID:50"
      # guestfish -a test1.img run : part-get-gpt-attributes /dev/sda 1
      libguestfs: error: part_get_gpt_attributes: int_of_string
      

      Please provide the package NVR for which bug is seen:

      libguestfs-1.52.1-5.el10.x86_64

      How reproducible:

      100%

      Expected results

      part-get-gpt-attributes can get the correct attributes.

            rhn-eng-rjones Richard Jones
            yoguo@redhat.com Yongkui Guo
            virt-maint virt-maint
            Yongkui Guo Yongkui Guo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: