setup-disk failure on ppc64le
Installing Alpine on a qemu ppc64le architecture fails with:
...
Creating file systems...
mkswap: can't open '/dev/sda3': No such file or directory
swapon: /dev/sda3: No such file or directory
The file /dev/sda4 does not exist and no size was specified.
mount: mounting /dev/sda4 on /mnt failed: No such file or directory
Indeed partitions created earlier in the process aren't visible in /dev/sda*
while they are with fdisk
.
How to reproduce
ISO=alpine-standard-3.20.0_rc2-ppc64le.iso
wget http://dl-cdn.alpinelinux.org/alpine/v3.20/releases/ppc64le/$ISO
qemu-img create alpine_disk.img 50G
qemu-system-ppc64 \
-machine pseries \
-cpu power8 \
-nodefaults \
-nographic \
-serial stdio \
-cdrom $ISO \
-hda alpine_disk.img \
-nic user
# log as "root"
# then: setup-alpine
Analysis
I've tracked it down to this change: 3663ef3d
Re-adding the removed mdev -s
call in setup-disk
fixed the issue for me.
Edited by Sylvain Henry