setup-disk incompatible with sfdisk
I’m trying to install alpine to disk on a Samsung n150 netbook. I downloaded alpine-3.3.1-x86_64.iso and dd’ed it to a usb drive. It booted fine. After I successfully set up wireless networking, I ran setup-alpine. It worked fine until it got to setup-disk. (-m That died rather opaquely with “Failed to add parition: Invalid argument”.
Here is my answerfile:
KEYMAPOPTS="us us" HOSTNAMEOPTS="-n n150" INTERFACESOPTS="auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp hostname n150 auto wlan0 iface wlan0 inet dhcp hostname n150 " DNSOPTS="-d example.com 188.8.131.52" TIMEZONEOPTS="-z UTC" PROXYOPTS=none APKREPOSOPTS="-r" SSHDOPTS="-c dropbear" NTPOPTS="-c chrony" DISKOPTS="-m sys /dev/sda"
After some digging, I discovered that setup-disk is trying to set disk types to “83” and “82” respectively, and that sfdisk does not understand those numbers. (sfdisk is “sfdisk from util-linux 2.27.1”)
I manually ran sfdisk and used the “L” and “S” shortcuts it suggests. That got me past the first bug, but now ‘find_nth_non_boot_parts’ isn’t grepping sfdisk -d for the correct output.
I will continue hacking at this as time allows, but since Googling didn’t turn anything up I wanted to make sure it got reported.
Is it possible to either pin sfdisk to a version that is known to work with setup-disk, or to fix setup-disk to use the long-form partition types?
(from redmine: issue id 5055, created on 2016-01-31)
- alpinelinux-bug5055.fstype.patch Patch to make setup-disk use long-form hexadecimal disk types