NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build.sh install to a remote machine with sshfs




Hi Van,

I am familiar with the netboot concept, i did it quite some years ago
on Soekris machines and some switches.

This would be the ideal procedure for testing just compiled software in CURRENT.

Though it requires some work in setup:
- tftp server
- mac address of the device
- inform the device you want to tftp boot (if it lets you)
- serial console on the device to check what is going on

It is ok if you keep device-A on the table next to your pc and hammer on it frequently.

For the moment i am just starting with CURRENT and i am experimenting
with different boards so i guess it would be an overkill superstructure
for my case.

Though i will keep the option it in mind for the future, i was not considering this way, thanks!


bye
Nicola





On Thu-10-Oct-2024 08:38, Van Ly wrote:
"Dr. Nicola Mingotti" <nmingotti%gmail.com@localhost> writes:

On Wed-09-Oct-2024 23:05, Benny Siegert wrote:

Am 09.10.24 um 22:57 schrieb Dr. Nicola Mingotti:
- some important files are overwritten : rc.conf, /etc/passwd ...
    once [a few hours ago] i lost /etc/fstab (but i was copying one
set at a time and
    rebooting to see what happens)
You can use sysupgrade from pkgsrc for this. Just point it at the
directory containing the sets. It is careful not to overwrite your
configuration files when unpacking stuff.

Haha ! I will definitely try that tomorrow.

I've not done a netboot myself but maybe this approach works for your needs

=> https://www.netbsd.org/docs/network/netboot/

I have this sysupgrade.sh script to single step the process

  1 #!/bin/sh
  2
  3
  RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-10/latest/$(uname
  -m)"
  4
  5
  6 #doas sysupgrade fetch $RELEASEDIR
  7 #doas sysupgrade modules
  8 #doas sysupgrade kernel
  9 #doas sysupgrade sets
10
11 #doas sysupgrade etcupdate
12 #doas sysupgrade postinstall
13 doas sysupgrade clean





Home | Main Index | Thread Index | Old Index