#!/bin/bash # CONFIGURED BY ANSIBLE echo rc.local PATH is $PATH {% if storage == 'zfs' %} echo -n loading zfs ... modprobe zfs && echo done echo -n loading smith pool ... zpool import smith -N && echo done echo found zvols: find /dev/zvol/ -mindepth 2 | grep '\-part' {% endif %} ## self-verbose #drbdadm up -v all /etc/init.d/drbd start