#!/bin/sh preinit_btrfs_scan() { grep -vq btrfs /proc/filesystems || btrfs device scan} boot_hook_add preinit_main preinit_btrfs_scan