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.
main
Luflosi 2 years ago
parent 7beebb590d
commit deed4a3d6c
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0
  1. 6
      nixos/modules/system/boot/stage-1-init.sh

@ -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

Loading…
Cancel
Save