summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-06-17 21:52:55 +0200
committerGitHub <noreply@github.com>2018-06-17 21:52:55 +0200
commitbb8b1df729adfd556f8237b9f94d49387a837bf6 (patch)
treed3cfa199650fa040ca5f497297ff7c3160826f5f /nixos
parentafbcc2670fca5e9ad0b73bd00d8433f0e237cddd (diff)
parentee4bb9454e1e06e30c1f0396b69a1ae9df1c35dc (diff)
downloadnixlib-bb8b1df729adfd556f8237b9f94d49387a837bf6.tar
nixlib-bb8b1df729adfd556f8237b9f94d49387a837bf6.tar.gz
nixlib-bb8b1df729adfd556f8237b9f94d49387a837bf6.tar.bz2
nixlib-bb8b1df729adfd556f8237b9f94d49387a837bf6.tar.lz
nixlib-bb8b1df729adfd556f8237b9f94d49387a837bf6.tar.xz
nixlib-bb8b1df729adfd556f8237b9f94d49387a837bf6.tar.zst
nixlib-bb8b1df729adfd556f8237b9f94d49387a837bf6.zip
Merge pull request #41511 from vicgc/nilfs2-root-fix
Fixed nilfs2 fsck error at boot because its not needed by the nilfs2 filesystem
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/stage-1-init.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh
index 92e68b72664a..de8451bbe31b 100644
--- a/nixos/modules/system/boot/stage-1-init.sh
+++ b/nixos/modules/system/boot/stage-1-init.sh
@@ -251,6 +251,9 @@ checkFS() {
     # Skip fsck for bcachefs - not implemented yet.
     if [ "$fsType" = bcachefs ]; then return 0; fi
 
+    # Skip fsck for nilfs2 - not needed by design and no fsck tool for this filesystem.
+    if [ "$fsType" = nilfs2 ]; then return 0; fi
+
     # Skip fsck for inherently readonly filesystems.
     if [ "$fsType" = squashfs ]; then return 0; fi