nixos/stage-1: remove dead code
This special case for Btrfs was added in51bc82960a. One year laterbeddd36c95added code to skip the fsck entirely if the filesystem is Btrfs. This made the `if` statement unnecessary.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user