File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
plugins/package/cloud-init/tasks Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ OS_VERSION=$( sysctl -n kern.osrelease)
2+
13git clone -b master http://github.com/goneri/cloud-init $TARGET /tmp/cloud-init
24
35echo ' nameserver 8.8.8.8' > $TARGET /etc/resolv.conf
@@ -16,10 +18,10 @@ pkgs="
1618 sudo--
1719"
1820for pkg in ${pkgs} ; do
19- PKG_PATH=" https://mirror.csclub.uwaterloo.ca/pub/OpenBSD/6.6 /packages/amd64/" chroot $TARGET pkg_add ${pkg}
21+ PKG_PATH=" https://mirror.csclub.uwaterloo.ca/pub/OpenBSD/${OS_VERSION} /packages/amd64/" chroot $TARGET pkg_add ${pkg}
2022done
2123chroot $TARGET ldconfig /usr/local/lib
22- PKG_PATH=" https://mirror.csclub.uwaterloo.ca/pub/OpenBSD/6.6 /packages/amd64/" chroot $TARGET sh -c ' cd /tmp/cloud-init; ./tools/build-on-openbsd'
24+ PKG_PATH=" https://mirror.csclub.uwaterloo.ca/pub/OpenBSD/${OS_VERSION} /packages/amd64/" chroot $TARGET sh -c ' cd /tmp/cloud-init; ./tools/build-on-openbsd'
2325
2426gsed -i " /^echo 'starting network'/i \/usr\/local\/bin\/cloud-init --debug init -l" $TARGET /etc/rc
2527gsed -i " /^reorder_libs$/i \/usr\/local\/bin\/cloud-init --debug init" $TARGET /etc/rc
You can’t perform that action at this time.
0 commit comments