2011-12-15 00:25:51 +01:00
|
|
|
#!/bin/bash -e
|
2012-03-05 16:09:24 +01:00
|
|
|
#%stage: filesystem
|
2011-11-09 15:49:06 +01:00
|
|
|
#%if: "$rootfstype" = "btrfs"
|
2011-12-15 00:25:51 +01:00
|
|
|
#%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
|
|
|
|
|
2012-03-12 14:25:53 +01:00
|
|
|
if [ -x /usr/sbin/btrfs ]; then
|
|
|
|
/usr/sbin/btrfs dev scan >& /dev/null
|
2011-12-15 00:25:51 +01:00
|
|
|
fi
|