1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

btrfsck doesn't respect any flags

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-05-13 14:25:48 -04:00
parent 9b4991d3f4
commit 51bc82960a

View file

@ -219,7 +219,11 @@ checkFS() {
echo "checking $device..."
fsck -V -a "$device"
fsckFlags=
if test "$fsType" != "btrfs"; then
fsckFlags="-V -a"
fi
fsck $fsckFlags "$device"
fsckResult=$?
if test $(($fsckResult | 2)) = $fsckResult; then