summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1-init.sh
diff options
context:
space:
mode:
authorLuflosi <luflosi@luflosi.de>2021-02-10 00:37:24 +0100
committerLuflosi <luflosi@luflosi.de>2022-01-27 15:18:45 +0100
commit26a695399a0e8bc40c502655c3d147f1791e774f (patch)
tree66ccbde6a0d419408e00cfc432efec3b15cadcb4 /nixos/modules/system/boot/stage-1-init.sh
parenta4e916ad037be7c36c4b2381b8b522233e5ab939 (diff)
downloadnixpkgs-26a695399a0e8bc40c502655c3d147f1791e774f.tar
nixpkgs-26a695399a0e8bc40c502655c3d147f1791e774f.tar.gz
nixpkgs-26a695399a0e8bc40c502655c3d147f1791e774f.tar.bz2
nixpkgs-26a695399a0e8bc40c502655c3d147f1791e774f.tar.lz
nixpkgs-26a695399a0e8bc40c502655c3d147f1791e774f.tar.xz
nixpkgs-26a695399a0e8bc40c502655c3d147f1791e774f.tar.zst
nixpkgs-26a695399a0e8bc40c502655c3d147f1791e774f.zip
nixos/apfs: init
Add the final missing pieces for full APFS support.
Diffstat (limited to 'nixos/modules/system/boot/stage-1-init.sh')
-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 f86d4641228..8fcc1f02972 100644
--- a/nixos/modules/system/boot/stage-1-init.sh
+++ b/nixos/modules/system/boot/stage-1-init.sh
@@ -282,6 +282,9 @@ checkFS() {
     # Don't check resilient COWs as they validate the fs structures at mount time
     if [ "$fsType" = btrfs -o "$fsType" = zfs -o "$fsType" = bcachefs ]; then return 0; fi
 
+    # Skip fsck for apfs as the fsck utility does not support repairing the filesystem (no -a option)
+    if [ "$fsType" = apfs ]; 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