diff options
author | William A. Kennington III <william@wkennington.com> | 2014-08-02 17:50:28 -0500 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-05 21:06:51 +0200 |
commit | beddd36c953f98e95164bdff20b0a6ead61ad71c (patch) | |
tree | cc3728d027aec3b3147ed0df2ff78e6e72ea0edd /nixos/modules/system | |
parent | 628df3e4230543cfea8d631f19f31187ab98655e (diff) | |
download | nixlib-beddd36c953f98e95164bdff20b0a6ead61ad71c.tar nixlib-beddd36c953f98e95164bdff20b0a6ead61ad71c.tar.gz nixlib-beddd36c953f98e95164bdff20b0a6ead61ad71c.tar.bz2 nixlib-beddd36c953f98e95164bdff20b0a6ead61ad71c.tar.lz nixlib-beddd36c953f98e95164bdff20b0a6ead61ad71c.tar.xz nixlib-beddd36c953f98e95164bdff20b0a6ead61ad71c.tar.zst nixlib-beddd36c953f98e95164bdff20b0a6ead61ad71c.zip |
nixos/stage-1: Don't check resilient filesystems
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/stage-1-init.sh | 3 |
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 1b51c11e351a..73fc6ce543cf 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -194,6 +194,9 @@ checkFS() { # Don't check ROM filesystems. if [ "$fsType" = iso9660 -o "$fsType" = udf ]; then return 0; fi + # Don't check resilient COWs as they validate the fs structures at mount time + if [ "$fsType" = btrfs -o "$fsType" = zfs ]; then return 0; fi + # If we couldn't figure out the FS type, then skip fsck. if [ "$fsType" = auto ]; then echo 'cannot check filesystem with type "auto"!' |