File tree 1 file changed +7
-4
lines changed 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function cleanup() {
32
32
rm -f boot.conf
33
33
rm -f disk.raw
34
34
rm -f disklabel.template
35
- rm -f etc/rc.local
35
+ rm -f etc/{installurl, rc.local}
36
36
rm -f install.site
37
37
rm -f random.seed
38
38
rm -f site${RELNO} .tgz
@@ -48,12 +48,15 @@ trap cleanup EXIT INT
48
48
mkdir -p etc
49
49
cat > install.site << EOF
50
50
#!/bin/sh
51
- env PKG_PATH=http:// ${MIRROR} /pub/OpenBSD/ ${VERSION} /packages/ ${ARCH} \
52
- pkg_add -iv bash curl git
51
+ syspatch
52
+ pkg_add -iv bash curl git
53
53
54
54
echo 'set tty com0' > boot.conf
55
55
EOF
56
56
57
+ cat > etc/installurl << EOF
58
+ https://${MIRROR} /pub/OpenBSD
59
+ EOF
57
60
cat > etc/rc.local << EOF
58
61
(
59
62
set -x
@@ -80,7 +83,7 @@ cat >etc/rc.local <<EOF
80
83
)
81
84
EOF
82
85
chmod +x install.site
83
- tar -zcvf site${RELNO} .tgz install.site etc/rc.local
86
+ tar -zcvf site${RELNO} .tgz install.site etc/{installurl, rc.local}
84
87
85
88
# Autoinstall script.
86
89
cat > auto_install.conf << EOF
You can’t perform that action at this time.
0 commit comments