LES BSD Thread!

1101112131416»

Comments

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    I updated the NetBSD-current sources on my @linveo VPS. Thanks @linveo!

    linveo# date
    linveo# cd /usr/src
    linveo# export CVS_RSH="ssh"
    linveo# cvs update -A -dP
    linveo# cd ../xsrc
    linveo# cvs update -A -dP
    linveo# cd /usr/src
    linveo# less UPDATING
    

    I also rebuilt the NetBSD-current userland.

    make distribution started at:  Thu Jan  9 20:34:10 UTC 2025
    make distribution finished at: Thu Jan  9 22:06:48 UTC 2025
    ===> Successful make distribution
    ===> build.sh ended:      Thu Jan  9 22:06:48 UTC 2025
    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -r -T ../tools -U distribution
             build.sh started:    Thu Jan  9 20:34:03 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             Bootstrapping nbmake
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Removing /usr/src/../tools
             Removing /usr/src/../obj/destdir.amd64
             Created /usr/src/../tools/bin/nbmake
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Successful make distribution
             build.sh ended:      Thu Jan  9 22:06:48 UTC 2025
    ===> .
    

    Next up is rebuilding the kernel and the X Window System. Then backup, install the new kernel, and reboot,

    Finally, install the new userland and the new X. Then a final reboot to make sure that it can.

    What am I missing? :)

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Here is the Summary of the kernel rebuild.

    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -T ../tools -U kernel=GENERIC
             build.sh started:    Fri Jan 10 01:06:48 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Building kernel without building new tools
             Building kernel:     GENERIC
             Build directory:     /usr/src/../obj/sys/arch/amd64/compile/GENERIC
             Kernels built from GENERIC:
              /usr/src/../obj/sys/arch/amd64/compile/GENERIC/netbsd
             build.sh ended:      Fri Jan 10 01:13:39 UTC 2025
    ===> .
    

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    edited January 10

    build.sh command: ./build.sh -j 2 -O ../obj -r -T ../tools -U distribution

    Nope! :)

    I forgot the -x flag to add X Windows!

    So, probably, something like

    build.sh command: ./build.sh -j 2 -O ../obj -r -T ../tools -U -x distribution

    might work.

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Okay, done with the X Window System enabled distribution build.

    I think I wouldn't have to rebuild the kernel again, right?

    ===> Successful make distribution
    ===> build.sh ended:      Fri Jan 10 04:18:03 UTC 2025
    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -r -T ../tools -U -x distribution
             build.sh started:    Fri Jan 10 01:46:09 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             Bootstrapping nbmake
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Removing /usr/src/../tools
             Removing /usr/src/../obj/destdir.amd64
             Created /usr/src/../tools/bin/nbmake
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Successful make distribution
             build.sh ended:      Fri Jan 10 04:18:03 UTC 2025
    ===> .
    

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Well . . . I did build the kernel again. . . .

    I'm not sure whether having the "-x" flag in the kernel build changes anything. But it might.

    Tomorrow, maybe we will see if the VPS reboots with the newly updated and recompiled kernel.

    Thanks to @linveo for lots of NetBSD fun, :star: and for very fast builds! <3

    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -T ../tools -U -x kernel=GENERIC
             build.sh started:    Fri Jan 10 05:13:51 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Building kernel without building new tools
             Building kernel:     GENERIC
             Build directory:     /usr/src/../obj/sys/arch/amd64/compile/GENERIC
             Kernels built from GENERIC:
              /usr/src/../obj/sys/arch/amd64/compile/GENERIC/netbsd
             build.sh ended:      Fri Jan 10 05:20:55 UTC 2025
    ===> .
    

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    edited January 11

    Welp, what do you think? Did the reboot work?

    Rebuilding and updating NetBSD-current seems more suspense-filled than I remember from the old days. . . .

    Here is moving the new kernel into place:

    linveo# mv /netbsd /netbsd.old
    linveo# mv /usr/obj/sys/arch/amd64/compile/GENERIC/netbsd /
    linveo# ls -l /netbsd*
    -rwxr-xr-x  1 root  wheel  29583936 Jan 10 05:20 /netbsd
    -rwxr-xr-x  1 root  wheel  29574592 Dec  1 19:29 /netbsd.old
    linveo# date; shutdown -r now
    Sat Jan 11 05:16:12 UTC 2025
    Shutdown NOW!
    shutdown: [pid 20432]
    linveo#                                                                                
    *** FINAL System shutdown message from [email protected] ***          
    System going down IMMEDIATELY                                                  
                                                                                   
                                                                                   
    
    System shutdown time has arrived
    
    About to run shutdown hooks...
    Stopping cron.
    Stopping inetd.
    Saved entropy to /var/db/entropy-file.
    Forcibly unmounting /tmp
    Forcibly unmounting /var/shm
    Removing block-type swap devices
    swapctl: removing /dev/dk1 as swap device
    Sat Jan 11 05:16:15 UTC 2025
    
    Done running shutdown hooks.
    Connection to xxx.xxx.xxx.xxx closed by remote host.
    Connection to xxx.xxx.xxx.xxx closed.
    chronos@penguin:~/servers/linveo$ 
    

    And here is . . . what . . . happened . . . after I tried to reboot. . . .

    chronos@penguin:~/servers/linveo$ `head -n 1 login`
    Last login: Sat Jan 11 05:13:07 2025 from xxx.xxx.xxx.xxx
    NetBSD 10.99.12 (GENERIC) #3: Fri Jan 10 05:20:35 UTC 2025
    
    Welcome to NetBSD!
    
    We recommend that you create a non-root account and use su(1) for root access.
    linveo# date
    Sat Jan 11 05:19:35 UTC 2025
    linveo# uptime
     5:19AM  up 3 mins, 1 user, load averages: 0.00, 0.00, 0.00
    linveo# 
    

    Aaannd. . . .

    Thanks @Linveo for the really nice, really fast server! Thanks @cmeerw for the NetBSD 10 image which got me started!

    Also. . . .

    I probably will post about updating the NetBSD-current distribution userland and also about updating the pkgsrc extras. After that, I expect to stop posting about "routine" updates, even if they are magnificent, amazing, and wonderful each and every time!

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    I installed all the newly compiled userland binaries, and then rebooted again.

    It seems to have worked. I'm cautiously optimistic!

    Install

    ===> Successful installworld to /
    ===> build.sh ended:      Mon Jan 13 01:52:30 UTC 2025
    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -T ../tools -U -x install=/
             build.sh started:    Mon Jan 13 01:51:03 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Successful installworld to /
             build.sh ended:      Mon Jan 13 01:52:30 UTC 2025
    ===> .
    

    Reboot

    chronos@penguin:~/servers/linveo$ `head -n 1 login`
    Last login: Mon Jan 13 01:47:49 2025 from xxx.xxx.xxx.xxx
    NetBSD 10.99.12 (GENERIC) #3: Fri Jan 10 05:20:35 UTC 2025
    
    Welcome to NetBSD!
    
    We recommend that you create a non-root account and use su(1) for root access.
    linveo# date
    Mon Jan 13 01:59:38 UTC 2025
    linveo# uptime
     1:59AM  up 2 mins, 1 user, load averages: 0.02, 0.01, 0.00
    linveo# 
    

    Now we seem to be running NetBSD-current on our newly updated and self-compiled kernel and base system userland binaries! These all were built with our newly updated and compiled build tools. That's pretty cool, I think!

    Just for fun, let's check the dates of the files in /bin. :)

    linveo# ls -l /bin
    total 1934
    -r-xr-xr-x  2 root  wheel   22056 Jan 10 04:14 [
    -r-xr-xr-x  1 root  wheel   22024 Jan 10 04:14 cat
    lrwxr-xr-x  1 root  wheel      11 Jan 10 04:14 chgrp -> /sbin/chown
    -r-xr-xr-x  1 root  wheel   22232 Jan 10 04:14 chio
    -r-xr-xr-x  1 root  wheel   17584 Jan 10 04:14 chmod
    -r-xr-xr-x  1 root  wheel   33528 Jan 10 04:14 cp
    -r-xr-xr-x  1 root  wheel   57720 Jan 10 04:13 cpio
    -r-xr-xr-x  1 root  wheel  190888 Jan 10 04:14 csh
    -r-xr-xr-x  1 root  wheel   27264 Jan 10 04:14 date
    -r-xr-xr-x  1 root  wheel   41384 Jan 10 04:14 dd
    -r-xr-xr-x  1 root  wheel   22744 Jan 10 04:14 df
    -r-xr-xr-x  1 root  wheel   17024 Jan 10 04:14 domainname
    -r-xr-xr-x  1 root  wheel   16832 Jan 10 04:14 echo
    -r-xr-xr-x  1 root  wheel   66048 Jan 10 04:14 ed
    -r-xr-xr-x  1 root  wheel   26088 Jan 10 04:14 expr
    -r-xr-xr-x  1 root  wheel   17808 Jan 10 04:14 getfacl
    -r-xr-xr-x  1 root  wheel   17064 Jan 10 04:14 hostname
    -r-xr-xr-x  1 root  wheel   17632 Jan 10 04:14 kill
    -r-xr-xr-x  1 root  wheel  290256 Jan 10 04:14 ksh
    -r-xr-xr-x  1 root  wheel   17688 Jan 10 04:14 ln
    -r-xr-xr-x  1 root  wheel   37824 Jan 10 04:14 ls
    -r-xr-xr-x  1 root  wheel   17360 Jan 10 04:14 mkdir
    -r-xr-xr-x  1 root  wheel   27288 Jan 10 04:14 mt
    -r-xr-xr-x  1 root  wheel   26776 Jan 10 04:14 mv
    -r-xr-xr-x  1 root  wheel  165216 Jan 10 04:14 pax
    -r-xr-xr-x  1 root  wheel   71160 Jan 10 04:14 ps
    -r-xr-xr-x  1 root  wheel   17168 Jan 10 04:14 pwd
    -r-sr-xr-x  1 root  wheel   22536 Jan 10 04:14 rcmd
    -r-xr-xr-x  1 root  wheel   32096 Jan 10 04:14 rcp
    -r-xr-xr-x  1 root  wheel   26848 Jan 10 04:14 rm
    -r-xr-xr-x  1 root  wheel   16984 Jan 10 04:14 rmdir
    -r-xr-xr-x  1 root  wheel   41832 Jan 10 04:14 rump.dd
    -r-xr-xr-x  1 root  wheel   32296 Jan 10 04:14 setfacl
    -r-xr-xr-x  1 root  wheel  239776 Jan 10 04:14 sh
    -r-xr-xr-x  1 root  wheel   17536 Jan 10 04:14 sleep
    -r-xr-xr-x  1 root  wheel   36496 Jan 10 04:14 stty
    -r-xr-xr-x  1 root  wheel   16568 Jan 10 04:14 sync
    -r-xr-xr-x  1 root  wheel   85432 Jan 10 04:13 tar
    -r-xr-xr-x  2 root  wheel   22056 Jan 10 04:14 test
    linveo# 
    

    Next up is to try to figure out the etcupdate, which I almost certainly should have run before rebooting. Maybe etcupdate should have been run before installing.

    After etcupdate it's probably time to check whether any of the pkgsrc programs have been updated and therefore need rebuilding.

    I plan to stop posting routine NetBSD build updates to this thread when etcupdate and pkgsrc are done. We will have upgraded NetBSD 10 to NetBSD-current, installed X Windows and Wireshark, then done another upgrade as time progressed. Maybe there will be enough here so that anyone interested can try self-compiling NetBSD-current!

    Yeah, all self-compiled, except for our initial NetBSD 10 image kindly provided by @cmeerw. <3 Thanks @linveo for the nice, fast VPS! <3 Thanks NetBSD! <3 Thanks LESbians! <3

    If anyone catches my mistakes, please do let me know! <3

    Best wishes!

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Already found a mistake! :)

    I needed to run postinstall. In the output of the successful install, it says:

    obsolete check:
            Remove obsolete file /usr/lib/libcurses.so.9.1
            Remove obsolete file /usr/lib/i386/libcurses.so.9.1
    postinstall checks passed: atf autofsconfig blocklist bluetooth catpages ddbonpanic defaults dhcpc
    d dhcpcdrundir envsys fontconfig gid gpio hosts iscsi manconf motd named opensslcertsconf opensslc
    ertsrehash pam periodic pf ptyfsoldnodes pwd_mkdb ssh tcpdumpchroot uid varrwho varshm wscons x11 
    xkb
    postinstall checks failed: makedev mtree rc obsolete
    To fix, run:
        /bin/sh /usr/src/../obj/usr.sbin/postinstall/postinstall -s /usr/src -x /usr/xsrc -d / fix mak
    edev mtree rc obsolete
    Note that this may overwrite local changes.
    

    And here's what happened when I ran the suggested fix:

    linveo# /bin/sh /usr/src/../obj/usr.sbin/postinstall/postinstall -s /usr/src -x /usr/xsrc -d / fix makedev mtree rc obsolete
    Source directory: /usr/src
    Target directory: /
    makedev fix:
            Copied /tmp/_postinstall.1085.0/MAKEDEV to /dev/MAKEDEV
    mtree fix:
    rc fix:
            Copied /usr/src/etc/rc.shutdown to /etc/rc.shutdown
    obsolete fix:
            Removed obsolete file /usr/lib/libcurses.so.9.1
            Removed obsolete file /usr/lib/i386/libcurses.so.9.1
    postinstall fixes passed: makedev mtree rc obsolete
    postinstall fixes failed:
    linveo# 
    

    I hope everyone gets the servers they want!

Sign In or Register to comment.