#25 Error Creating Image with Multiple Partitions: "Unexpected number of partitions from kpartx"
Opened by lagunapower. Modified

Description

Hello,

I'm facing an issue with appliance-creator when attempting to build an image that requires more than 4 partitions. The error message I receive is as follows:

Unable to create appliance: Failed mount disks: Unexpected number of partitions from kpartx: 4 != 13

Steps to Reproduce

  1. Create a Kickstart file with the following partition configuration:

    Partitioning

    zerombr
    clearpart --all --initlabel
    part /boot --fstype="ext4" --size=512 --ondisk=sda
    part / --fstype="ext4" --size=2700 --grow --maxsize=10240 --ondisk=sda
    part extended --size=1 --grow --ondisk=sda
    part /home --fstype="ext4" --size=5120 --grow --type=logical --ondisk=sda --fsoptions="nosuid,nodev,noexec"
    part /var --fstype="ext4" --size=3072 --grow --type=logical --ondisk=sda --maxsize=15360 --fsoptions="nosuid,nodev,noexec"
    part /var/tmp --fstype="ext4" --size=1024 --grow --type=logical --ondisk=sda --maxsize=10240 --fsoptions="nosuid,nodev,noexec"
    part /var/log --fstype="ext4" --size=3072 --grow --type=logical --ondisk=sda --maxsize=10240 --fsoptions="nosuid,nodev,noexec"
    part /var/log/audit --fstype="ext4" --size=3072 --grow --type=logical --ondisk=sda --maxsize=10240 --fsoptions="nosuid,nodev,noexec"
    part /usr --fstype="ext4" --size=6144 --grow --ondisk=sda --maxsize=15360 --fsoptions="nodev"
    part /opt --fstype="ext4" --size=50 --ondisk=sda --fsoptions="nosuid,nodev,noexec"
    part /srv --fstype="ext4" --size=50 --ondisk=sda --fsoptions="nosuid,nodev,noexec"
    part /opt/toto --fstype="ext4" --size=3072 --grow --ondisk=sda --maxsize=10240 --fsoptions="nodev"
    part /tmp --fstype="ext4" --size=1024 --grow --ondisk=sda --maxsize=10240 --fsoptions="nosuid,nodev,noexec"

  2. Run appliance-creator to build the image using this Kickstart file.

  3. Observe the error.

Error Message

Unable to create appliance: Failed mount disks: Unexpected number of partitions from kpartx: 4 != 13

Additional Information

  • Version of appliance-creator: appliance-tools-011.2-5.fc39.noarch
  • Host System: [Include operating system and version]
  • Target Platform: Raspberry Pi 4B
  • Disk Layout: Using MBR partitioning with one extended partition and multiple logical partitions.

Troubleshooting Steps Taken

  1. Verified that the Kickstart file is correctly formatted.
  2. Simplified the Kickstart file to use fewer partitions, which worked.
  3. Checked for updates to appliance-creator and related tools.

Request

Could someone assist in diagnosing why kpartx is reporting an unexpected number of partitions, or suggest any potential fixes or workarounds?

Thank you!


Log in to comment on this ticket.

Metadata