Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am simonft on github.
  • I am simonft (https://keybase.io/simonft) on keybase.
  • I have a public key ASCauAu3xq3dRxe8yHAyv0gfk3b3cbpSbaGxCxpUoetZdQo

To claim this, I am signing this object:

@simonft
simonft / gentrusty.sh
Created November 16, 2015 20:05 — forked from zellio/gentrusty.sh
Generate Ubuntu Trusty container that will boot under systemd-nspawn
#!/usr/bin/env bash
function __main
{
local -r path="$(realpath "${1:-.}")"
debootstrap --variant=buildd trusty "$1" http://archive.ubuntu.com/ubuntu/
patch --unified "$path/etc/init/console.conf" <<'EOF'
@@ -3,7 +3,8 @@
# This service maintains a getty on console from the point the system is
# started until it is shut down again.
#!/usr/bin/env bash
### git-coffee --- coffee
## Copyright (c) 2015 Zachary Elliott
##
## Authors: Zachary Elliott <contact@zell.io>
## URL:
## Version: 0.1.0