nixos/stage-1: remove dead code

This special case for Btrfs was added in 51bc82960a. One year later beddd36c95 added code to skip the fsck entirely if the filesystem is Btrfs. This made the `if` statement unnecessary.
This commit is contained in:
Luflosi 2022-05-03 16:15:51 +02:00
parent 7beebb590d
commit deed4a3d6c
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

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