daily CVS update output

2021-05-31 Thread NetBSD source update


Updating src tree:
P src/distrib/i386/installimage/Makefile
P src/doc/HACKS
P src/external/gpl3/gdb/lib/libgdb/Makefile
P src/external/gpl3/gdb.old/lib/libgdb/Makefile
P src/external/mit/xorg/server/drivers/Makefile.xf86-driver
P src/external/mit/xorg/server/drivers/xf86-video-amdgpu/Makefile
P src/lib/libcurses/newwin.c
P src/share/man/man9/delay.9
P src/sys/arch/aarch64/include/param.h
P src/sys/arch/alpha/alpha/pmap.c
P src/sys/arch/alpha/include/param.h
P src/sys/arch/alpha/include/pmap.h
P src/sys/arch/arm/vfp/vfp_init.c
P src/sys/arch/cats/include/param.h
P src/sys/arch/hppa/include/param.h
P src/sys/arch/i386/include/param.h
P src/sys/arch/ia64/include/param.h
P src/sys/arch/m68k/include/param.h
P src/sys/arch/macppc/include/param.h
P src/sys/arch/mips/include/mips_param.h
P src/sys/arch/powerpc/include/param.h
P src/sys/arch/powerpc/include/ibm4xx/cpu.h
P src/sys/arch/riscv/include/param.h
P src/sys/arch/sgimips/include/param.h
P src/sys/arch/sh3/include/param.h
P src/sys/arch/sparc64/include/param.h
P src/sys/arch/sun2/include/param.h
P src/sys/arch/sun3/include/param.h
P src/sys/arch/vax/include/param.h
P src/sys/arch/x68k/include/param.h
P src/sys/external/bsd/drm2/include/asm/processor.h
P src/sys/external/bsd/drm2/include/linux/delay.h
P src/sys/lib/libunwind/Registers.hpp
P src/sys/lib/libunwind/unwind_registers.S
P src/sys/stand/efiboot/boot.c
P src/sys/uvm/uvm_extern.h

Updating xsrc tree:
P xsrc/external/mit/xf86-video-amdgpu/dist/src/drmmode_display.h
P xsrc/external/mit/xf86-video-ati-kms/dist/src/drmmode_display.h
P xsrc/external/mit/xf86-video-chips/dist/util/AsmMacros.h
P xsrc/external/mit/xf86-video-geode/dist/src/geode.h
P xsrc/external/mit/xf86-video-geode/dist/src/gx_video.c
P xsrc/external/mit/xf86-video-geode/dist/src/lx_driver.c
P xsrc/external/mit/xf86-video-geode/dist/src/panel.c
P xsrc/external/mit/xf86-video-geode/dist/src/panel/panel.c
P xsrc/external/mit/xf86-video-intel/dist/src/legacy/i810/i810.h
P xsrc/external/mit/xf86-video-intel-2014/dist/src/legacy/i810/i810.h
P xsrc/external/mit/xf86-video-openchrome/dist/src/via_driver.h
P xsrc/external/mit/xf86-video-openchrome/dist/src/via_sii164.h
P xsrc/external/mit/xf86-video-openchrome/dist/src/via_vt1632.h
P xsrc/external/mit/xorg-server/dist/hw/xfree86/common/compiler.h
P xsrc/external/mit/xorg-server.old/dist/hw/xfree86/common/compiler.h


Killing core files:




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  40817992 Jun  1 03:03 ls-lRA.gz


Re: build.sh live-image

2021-05-31 Thread Rhialto
On Mon 31 May 2021 at 13:22:50 +0200, Rhialto wrote:
> Would the change below be ok? I'll be looking at some more things to
> improve for OpenStack but this is a good start.

I was expecting that the metadata-querying script at
src/distrib/utils/embedded/files/ec2_init could easily have some
attributes added to it. But going by
https://docs.openstack.org/nova/latest/user/metadata.html there aren't
really that many that make sense to add.

There is another helper script, openstack_init.py from
pkgsrc/sysutils/openstack_init/files/openstack_init.py. But it assumes
the config-drive option (which is not default) instead of fetching the
data from http://169.254.169.254/openstack/latest/meta_data.json .
That script requires Python (used to parse the JSON format) which I find
a bit heavyweight.
But the "random_seed" from his data would be nice to get, if it were
easier to parse. Maybe I could just feed the whole json data string to
rndctl, it would include the "random_seed" value if it's in there :)

I was looking if there is something like "cloudinit" available in
pkgsrc. That has some ways to specify creation of users, installation of
packages, that sort of thing. But it doesn't seem to be there.

-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


Re: build.sh live-image

2021-05-31 Thread Rhialto
On Sat 29 May 2021 at 22:55:33 +0200, Rhialto wrote:
> 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).

Contrary to my expectation, login via ssh as root (using an ssh key)
actually worked.

-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


Re: build.sh live-image

2021-05-31 Thread Rhialto
On Sun 30 May 2021 at 16:32:30 +1200, Lloyd Parkes wrote:
> 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.

When I tried it today, resizing the root partition did actually work.
Apparently the fdisk partition isn't that relevant for that.

However when extracting the pkgsrc tar file, it hung on disk I/O.
When I retried, the same happened.
After that, even the fsck got blocked on disk I/O.

Then I added the "log" option, and somehow then the extraction ran
successfully to the end.

The VM had only 4 GB of RAM; maybe that was an issue and the log option
somehow caused less memory to be required? Or it could actually be a
problem in the virtio disk driver.

Would the change below be ok? I'll be looking at some more things to
improve for OpenStack but this is a good start.

murthe.8:.../amd64/liveimage/emuimage$ netbsd-cvs diff
X11 forwarding request failed on channel 0
cvs diff: Diffing .
Index: ec2_init
===
RCS file: /cvsroot/src/distrib/amd64/liveimage/emuimage/ec2_init,v
retrieving revision 1.2
diff -u -r1.2 ec2_init
--- ec2_init9 Sep 2020 13:25:48 -   1.2
+++ ec2_init31 May 2021 11:20:13 -
@@ -13,6 +13,10 @@
*amazon*)
val=YES
;;
+   # OpenStack is not EC2 but it does have a metadata 
service.
+   *openstack*)
+   val=YES
+   ;;
esac
fi
done


Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
2018, 2019, 2020, 2021 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.

NetBSD 9.99.82 (GENERIC) #0: Sat May 29 22:05:15 CEST 2021
rhia...@murthe.falu.nl:/tmpfs/obj.amd64/sys/arch/amd64/compile/GENERIC
total memory = 4095 MB
avail memory = 3941 MB
entropy: entering seed from bootloader with 256 bits of entropy
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
OpenStack Foundation OpenStack Nova (17.0.12)
mainbus0 (root)
ACPI: RSDP 0x000F6820 14 (v00 BOCHS )
ACPI: RSDT 0xBFFE1563 2C (v01 BOCHS  BXPCRSDT 0001 BXPC 
0001)
ACPI: FACP 0xBFFE13F7 74 (v01 BOCHS  BXPCFACP 0001 BXPC 
0001)
ACPI: DSDT 0xBFFE0040 0013B7 (v01 BOCHS  BXPCDSDT 0001 BXPC 
0001)
ACPI: FACS 0xBFFE 40
ACPI: APIC 0xBFFE14EB 78 (v01 BOCHS  BXPCAPIC 0001 BXPC 
0001)
ACPI: 1 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 0: pa 0xfec0, version 0x11, 24 pins
cpu0 at mainbus0 apid 0
cpu0: Use lfence to serialize rdtsc
cpu0: Intel Core Processor (Broadwell, IBRS), id 0x306d2
cpu0: node 0, package 0, core 0, smt 0
acpi0 at mainbus0: Intel ACPICA 20210331
acpi0: X/RSDT: OemId , AslId 
LNKS: ACPI: Found matching pin for 0.1.INTA at func 3: 9
LNKD: ACPI: Found matching pin for 0.1.INTD at func 2: 11
LNKC: ACPI: Found matching pin for 0.3.INTA at func 0: 11
LNKD: ACPI: Found matching pin for 0.4.INTA at func 0: 11
LNKA: ACPI: Found matching pin for 0.5.INTA at func 0: 10
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
FDC0 (PNP0700) at acpi0 not configured
COM1 (PNP0501) at acpi0 not configured
qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b
qemufwcfg0: 
ACPI: Enabled 2 GPEs in block 00 to 0F
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI and Memory Controller 
(rev. 0x02)
pcib0 at pci0 dev 1 function 0: Intel 82371SB (PIIX3) PCI-ISA Bridge (rev. 0x00)
piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 
0x00)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14