You have the alpine linux boot image already running.
I skip this step here.
Best is to test it with a 2nd partition on USB stick.
- boot into alpine linux on usb stick
- login as root
- Use disk "none" during setup-alpine
setup-alpine # do it now, later is trouble
apk add e2fsprogs # install mkfs.ext4
mkfs.ext4 -L ALPINELINUX /dev/sdb2 # empty alpine partition
mount /dev/sdb2 /mnt/ # mount the partition for install
sed "s/acct linux-\$KERNEL_FLAVOR//" < /sbin/setup-disk > my-setup-disk
we need no acct and linux-kernel, quick & dirty remove it
chmod +x my-setup-disk # make script executable
./my-setup-disk /mnt/ # install alpine into mounted partition
you can ignore the warnings about syslinux and extlinux
cp -a /dev/console /mnt/dev # devices need to boot
umount /mnt # we are ready
- download my uRamdisk from https://github.com/Johns-Q/wdmc-gen2
mount -o remount,rw /media/usb/ # make DOS partition writeable
cp /media/usb/boot/uRamdisk /media/usb/boot/uRamdisk.alpine # backup ramdisk
cp uRamdisk /media/usb/boot
To install on the hard drive, prepare it like you want.
Important is that the 3rd partition is the boot/root partition.
The 3rd paritition type must be "Linux" and ext4 and it must
contain /boot/uRamdisk and /boot/uImage.
You can install alpine into it just use "/dev/sda3".