File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
plugins/package/cloud-init/tasks Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 2323chroot $TARGET ldconfig /usr/local/lib
2424PKG_PATH=" https://mirror.csclub.uwaterloo.ca/pub/OpenBSD/${OS_VERSION} /packages/amd64/" chroot $TARGET sh -c ' cd /tmp/cloud-init; ./tools/build-on-openbsd'
2525
26- gsed -i " /^echo 'starting network'/i \/usr\/local\/bin\/cloud-init --debug init -l" $TARGET /etc/rc
27- gsed -i " /^reorder_libs$/i \/usr\/local\/bin\/cloud-init --debug init" $TARGET /etc/rc
28- gsed -i " /.*rc.local.*/i \/usr\/local\/bin\/cloud-init --debug modules --mode config" $TARGET /etc/rc
29- gsed -i " /^date/i \/usr\/local\/bin\/cloud-init --debug modules --mode final" $TARGET /etc/rc
30-
31- cat $TARGET /etc/rc
26+ echo " #!/bin/sh" > $TARGET /etc/rc.local
27+ echo " /usr/local/bin/cloud-init init -l" >> $TARGET /etc/rc.local
28+ echo " /usr/local/bin/cloud-init init" >> $TARGET /etc/rc.local
29+ echo " /usr/local/bin/cloud-init modules --mode config" >> $TARGET /etc/rc.local
30+ echo " /usr/local/bin/cloud-init modules --mode final" >> $TARGET /etc/rc.local
31+ cat /var/log/cloud-init.log > /dev/tty00
32+ echo " exit 0" >> $TARGET /etc/rc.local
3233
3334rm -r $TARGET /tmp/cloud-init
You can’t perform that action at this time.
0 commit comments