99fs-lib: add btrfsck

master
Harald Hoyer 2011-08-11 16:56:03 +02:00
parent d6770cf001
commit 1afa0cb674
2 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,11 @@ fsck_able() {
_drv="_drv=reiserfsck fsck_drv_com" && _drv="_drv=reiserfsck fsck_drv_com" &&
return 0 return 0
;; ;;
btrfs)
type btrfsck >/dev/null 2>&1 &&
_drv="_drv=btrfsck fsck_drv_com" &&
return 0
;;
*) *)
type fsck >/dev/null 2>&1 && type fsck >/dev/null 2>&1 &&
_drv="_drv=fsck fsck_drv_std" && _drv="_drv=fsck fsck_drv_std" &&

View File

@ -15,6 +15,7 @@ install() {
dracut_install -o e2fsck dracut_install -o e2fsck
dracut_install -o jfs_fsck dracut_install -o jfs_fsck
dracut_install -o reiserfsck dracut_install -o reiserfsck
dracut_install -o btrfsck
dracut_install -o /sbin/fsck* dracut_install -o /sbin/fsck*


inst "$moddir/fs-lib.sh" "/lib/fs-lib.sh" inst "$moddir/fs-lib.sh" "/lib/fs-lib.sh"