btrfsprogs/boot-btrfs.sh

11 lines
363 B
Bash
Raw Normal View History

#!/bin/bash -e
#%stage: block
#%if: "$rootfstype" = "btrfs"
#%programs: /sbin/btrfs /sbin/btrfs-zero-log /sbin/btrfs-convert /sbin/btrfs-select-super /sbin/btrfs-image /sbin/btrfstune /sbin/btrfs-restore /sbin/btrfs-find-root /sbin/btrfsck /sbin/mkfs.btrfs /sbin/btrfs-dump-super
modprobe btrfs
if [ -x /sbin/btrfs ]; then
/sbin/btrfs dev scan >& /dev/null
fi