#!/bin/bash # Dracut module: boot read-only Btrfs snapshots with a writable overlay in RAM. check() { require_binaries btrfs || return 1 return 0 } depends() { echo btrfs } installkernel() { hostonly='' instmods overlay } install() { inst_multiple btrfs mktemp inst_hook pre-pivot 10 "$moddir/das-snapshot-overlay.sh" }