dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit ce23384d1c2751713492cd512e8f31d956f3f2d0
parent c1371cefa144843a03a931c8d0e73a43dd819d13
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon, 26 Jun 2017 03:38:26 +0000

Add .bin/mdl-style-container

Diffstat:
.bin/mdl-style-container | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)

diff --git a/.bin/mdl-style-container b/.bin/mdl-style-container @@ -0,0 +1,30 @@ +#!/bin/sh + +PWD=`pwd` +CONTAINER_DIR=$HOME'/.containers' +CONTAINER_NAME='mdl-style' +CONTAINER=$CONTAINER_DIR'/'$CONTAINER_NAME +SCRIPT=`basename "$0"` + +TERMINFO_SRC='/usr/share/terminfo/r/rxvt-256color:' +TERMINFO_BIND=$TERMINFO_SRC'/root/.terminfo/r/rxvt-256color' + +if [ "$1" = "bootstrap" ]; then + echo 'debootstrap' + sudo debootstrap --arch=amd64 testing $CONTAINER + sudo systemd-nspawn -D ./$CONTAINER \ + --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + /root/$SCRIPT install +elif [ "$1" = "install" ]; then + # this is run inside the container + apt-get update +elif [ "$1" = "start" ]; then + # start slack inside the container + sudo systemd-nspawn --setenv=DISPLAY=:0.0 \ + -D ./$CONTAINER \ + --bind-ro=$TERMINFO_BIND +else + echo 'Dunno what to do' + exit 1 +fi +