blob: e722f145ff5d49565377d652c13a001e0dcefb80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
How to upgrade from one OpenBSD version to another (intern docu)
--------------------------------------------------
sync the template directory with the files found in the vanilla OpenBSD:
the following files can just be copied, they don't have local adaptions:
cp /etc/group template/etc/group
cp /etc/moduli template/etc/moduli
cp /etc/pf.os template/etc/pf.os
cp /etc/login.conf template/etc/login.conf
cp /etc/protocols template/etc/protocols
cp /etc/services template/etc/services
cp /etc/gettytab template/etc/gettytab
cp /etc/master.passwd template/etc/master.passwd
cp /etc/ssh/sshd_config template/etc/ssh/sshd_config
the following files are customized, so adapt the by hand if concepts
change upstream
template/etc/boot.conf
template/etc/resolv.conf
template/etc/syslog.conf
template/etc/fstab
template/etc/newsyslog.conf
template/etc/tabs/root
template/etc/passwd
cp /etc/passwd template/etc/passwd
adapt to keep the root entry and set it to the password you like
template/etc/rc
template/etc/ttys
cp /etc/ttys template/etc/ttys
keep the adapted tty00 entry instead of the vanilla one
sync config directories
cp /etc/network config/firewall-test/network
for other configs sync it and keep your local networks there
cp /etc/network confug/xxx/network
adapt and add your local network(s) at the end
/etc/joe copy and adapt, keep it as minimal as you like
those configs are really yours
config/xxx/dhclient.conf
config/xxx/rc.services
config/xxx/nsd-xxx
config/xxx/relayd.conf
build the image
./build.sh xxx xxx
mount it and test it in the chroot
vnconfig vnd0 xxx.img
mount /dev/vnd0a /mnt/fw
chroot /mnt/fw
you cannot test the router and the config itself, but at least
you can test in the chroot whether all binaries have their corresponding
shared libraries and do actually start.
|