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:
parent
9b4991d3f4
commit
51bc82960a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue