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
"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
--
vl
Home |
Main Index |
Thread Index |
Old Index