KiwiMappedDeviceError: Device /dev/loop0p1 does not exist #2

Closed
opened 2024-06-23 19:25:04 +00:00 by biobluehat · 1 comment

Dear I tried to use kiwi to build an azure image just following the readme,

But I encounter a strange error

Thanks for your insight

cd mock-rocky-configs/
bash deploy.sh 
cd ..
mock -r rl-9-x86_64-core-infra --init
mock -r rl-9-x86_64-core-infra --install kiwi-cli  \
                                  git   \
                                  dracut-kiwi-live    \
                                  kiwi-systemdeps-{bootloaders,containers,core,disk-images,filesystems,image-validation,iso-media}   \
                                  epel-release    \
                                  rocky-release-core
mock -r rl-9-x86_64-core-infra  --copyin rocky-kiwi-descriptions/ /root/rocky-kiwi-descriptions 
mock -r rl-9-x86_64-core-infra  --enable-network  --shell "/root/rocky-kiwi-descriptions/cloud-build.sh --output-dir /tmp/azure-lvm --cloud-image Azure-LVM"

...

[ INFO    ]: 20:37:51 | Creating system image
[ INFO    ]: 20:37:51 | Preparing boot system
[ INFO    ]: 20:37:51 | Precalculating required disk size
[ INFO    ]: 20:37:51 | --> system data with filesystem overhead needs 1587 MB
[ INFO    ]: 20:37:51 | --> LVM overhead adding 80 MB
[ INFO    ]: 20:37:51 | --> volume(s) size setup adding 7443 MB
[ INFO    ]: 20:37:51 | --> legacy bios boot partition adding 2 MB
[ INFO    ]: 20:37:51 | --> boot partition adding 1000 MB
[ INFO    ]: 20:37:51 | --> EFI partition adding 100 MB
[ INFO    ]: 20:37:51 | Using configured disk size: 10240 MB
[ INFO    ]: 20:37:51 | Creating raw disk image /tmp/azure-lvm/Rocky.x86_64-9.raw
[ INFO    ]: 20:37:52 | --> creating EFI CSM(legacy bios) partition
[ INFO    ]: 20:37:54 | --> creating EFI partition
[ INFO    ]: 20:37:57 | --> creating boot partition [with 0 clone(s)]
[ INFO    ]: 20:38:00 | --> Using all_freeMB for the root(rw) partition if present
[ INFO    ]: 20:38:00 | --> creating root(LVM) partition [with 0 clone(s)]
[ INFO    ]: 20:38:03 | Cleaning up Disk instance
[ ERROR   ]: 20:38:03 | cleanup of partition maps on /dev/loop0 failed with: partx: stderr: partx: /dev/loop0: error deleting partition 1
, stdout: (no output on stdout)
[ ERROR   ]: 20:38:03 | KiwiMappedDeviceError: Device /dev/loop0p1 does not exist
Finish: shell
Finish: run

Dear I tried to use kiwi to build an azure image just following the readme, But I encounter a strange error Thanks for your insight ``` cd mock-rocky-configs/ bash deploy.sh cd .. mock -r rl-9-x86_64-core-infra --init mock -r rl-9-x86_64-core-infra --install kiwi-cli \ git \ dracut-kiwi-live \ kiwi-systemdeps-{bootloaders,containers,core,disk-images,filesystems,image-validation,iso-media} \ epel-release \ rocky-release-core mock -r rl-9-x86_64-core-infra --copyin rocky-kiwi-descriptions/ /root/rocky-kiwi-descriptions mock -r rl-9-x86_64-core-infra --enable-network --shell "/root/rocky-kiwi-descriptions/cloud-build.sh --output-dir /tmp/azure-lvm --cloud-image Azure-LVM" ... [ INFO ]: 20:37:51 | Creating system image [ INFO ]: 20:37:51 | Preparing boot system [ INFO ]: 20:37:51 | Precalculating required disk size [ INFO ]: 20:37:51 | --> system data with filesystem overhead needs 1587 MB [ INFO ]: 20:37:51 | --> LVM overhead adding 80 MB [ INFO ]: 20:37:51 | --> volume(s) size setup adding 7443 MB [ INFO ]: 20:37:51 | --> legacy bios boot partition adding 2 MB [ INFO ]: 20:37:51 | --> boot partition adding 1000 MB [ INFO ]: 20:37:51 | --> EFI partition adding 100 MB [ INFO ]: 20:37:51 | Using configured disk size: 10240 MB [ INFO ]: 20:37:51 | Creating raw disk image /tmp/azure-lvm/Rocky.x86_64-9.raw [ INFO ]: 20:37:52 | --> creating EFI CSM(legacy bios) partition [ INFO ]: 20:37:54 | --> creating EFI partition [ INFO ]: 20:37:57 | --> creating boot partition [with 0 clone(s)] [ INFO ]: 20:38:00 | --> Using all_freeMB for the root(rw) partition if present [ INFO ]: 20:38:00 | --> creating root(LVM) partition [with 0 clone(s)] [ INFO ]: 20:38:03 | Cleaning up Disk instance [ ERROR ]: 20:38:03 | cleanup of partition maps on /dev/loop0 failed with: partx: stderr: partx: /dev/loop0: error deleting partition 1 , stdout: (no output on stdout) [ ERROR ]: 20:38:03 | KiwiMappedDeviceError: Device /dev/loop0p1 does not exist Finish: shell Finish: run ```
Owner

Using mock is not a requirement; it is there as an example. You can install kiwi on a Rocky Linux 9 system or any Fedora system and run a kiwi build without the use of mock if you are having issues.

You can run this on a running system, in a mock root, or a podman container. In fact, most builds may fail in mock due to loop devices being unusable.

Using mock is not a requirement; it is there as an example. You can install kiwi on a Rocky Linux 9 system or any Fedora system and run a kiwi build without the use of mock if you are having issues. >You can run this on a running system, in a mock root, or a podman container. In fact, **most builds may fail in mock due to loop devices being unusable.**
label closed this issue 2024-06-24 00:45:48 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sig_core/rocky-kiwi-descriptions#2
No description provided.