Skip to content

Instantly share code, notes, and snippets.

@goneri
Last active March 24, 2019 06:00
Show Gist options
  • Save goneri/d9af23a44349df542e832ced77f2e6bc to your computer and use it in GitHub Desktop.
Save goneri/d9af23a44349df542e832ced77f2e6bc to your computer and use it in GitHub Desktop.
# pkg install py27-cloud-init
# cd /usr/local/lib/python2.7/site-packages/cloudinit
# curl -L https://code.launchpad.net/~goneri/cloud-init/+git/cloud-init/+merge/364997/+preview-diff/867430/+files/preview.diff | patch -u -p2
# Use the following branch: https://github.com/goneri/cloud-init/tree/freebsd_apply_network
# Add the blkid fake binary:
root@localhost:/mnt # cat /usr/local/bin/blkid
#!/bin/sh
if [ "-tLABEL=cidata" = "$1" ]; then
echo /dev/cd0
fi
if [ "-tTYPE=iso9660" = "$1" ]; then
echo /dev/cd0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment