On Thu, Aug 02, 2018 at 05:47:07AM +0000, Bill Zissimopoulos wrote:
> I am trying to create OpenBSD images for use in Google Compute Engine using 
> an expect script [1]. The expect script is able to drive the OpenBSD 
> installation process successfully, but the created images fail to boot 
> cleanly with a long stream of "Process (pid 1) got signal 11".
> 
> To reproduce try the following (please note that all my tests are on a macOS 
> host with QEMU installed):
> 
> - Clone the GitHub project at [2]
> - Assuming you have QEMU installed and install63.iso downloaded try the 
> command:
>     ./imgtool PATH/TO/install63.iso openbsd/base
> - The openbsd/base expect script will boot the image and you should see the 
> stream of "Process (pid 1) got signal 11". If not, try running the created 
> image:
>     ./imgtool install63-base.tar.gz shared/run
> 
> Thank you for your help.
> 
> Bill
> 
> [1] https://github.com/billziss-gh/pmci.img/blob/master/openbsd/base
> [2] https://github.com/billziss-gh/pmci.img
> 

I see the same thing using your script. A few observations:

1. We've seen this message before (usually on APUs), but only a single time (eg,
just one of the signal lines gets displayed). And IIRC it was a different 
signal.

2. In your case, the stream of messages seems to stop after some time and boot
proceeds normally after that.

3. When I built the image using your script, on the second boot, I saw no
messages.

I'm not sure what's causing the problem, can you try with 6.3 release? (I'm
assuming you are using -current here? that's what I tested also)

Also some more notes:

4. in my test the default install location came up as http, so your script's
pressing of "enter" for install path hung. I had to change the default location
in the script to be cd.

5. Your customization step at the end should probably fixup /etc/ttys or
you won't be able to log in to the machine via serial (since no getty will
be spawned there). I sat there waiting for a while in qemu only to realize
the getty was waiting on the vga console, not serial. YMMV.

-ml

Reply via email to