Re: build.sh live-image
On 30/05/21 8:55 am, Rhialto wrote: Another thing I noticed is that /etc/rc.d/resize_disklabel looks at the wrong MBR partition to check for NetBSD: it looks at partition 1 but should look at partition 0. resize_disklabel is designed for use on the Raspberry Pi where the NetBSD partition comes after the FAT boot partition and so it is partition 1. When building amd64 images, I've resorted to rewriting the resize_disklabel script from scratch. Cheers, Lloyd
build.sh live-image
I wanted to try if I can easily create a disk image to run in an OpenStack cloud. That differs a bit from EC2 cloud, but there is a sort of compatible metadata server (169.254.169.254) that can be used as well. So I tried the result from build.sh live-image. So /etc/rc.d/ec2_init should be able to work with OpenStack (although putting the ssh key in root's authorized_keys may be a bit useless since it seems that ssh root logins are not allowed). But the detection in /etc/rc.conf.d/ec2_init would need to be adjusted (OpenStack is not ec2 but does have the metadata service). Another thing I noticed is that /etc/rc.d/resize_disklabel looks at the wrong MBR partition to check for NetBSD: it looks at partition 1 but should look at partition 0. At least on this image (from build.sh live-image). Maybe it is also used on other types of live images? It can't be about skipping the EFI partition because those occur on GPT disks only. -Olaf. -- ___ Q: "What's an anagram of Banach-Tarski?" -- Olaf "Rhialto" Seibert \X/ A: "Banach-Tarski Banach-Tarski." -- rhialto at falu dot nl signature.asc Description: PGP signature