diff options
author | Victor Shlein <kisik21@users.noreply.github.com> | 2018-06-19 01:25:00 +0300 |
---|---|---|
committer | Victor Shlein <kisik21@users.noreply.github.com> | 2018-06-19 01:25:00 +0300 |
commit | c24e91732598f088acdb49129002fa437ec33192 (patch) | |
tree | b368ee968b011534f7a4e789ffb27eff043e6121 /nixos | |
parent | 8807039549da21535dfbe57d148fdf0f6f434ac7 (diff) | |
download | nixpkgs-c24e91732598f088acdb49129002fa437ec33192.tar nixpkgs-c24e91732598f088acdb49129002fa437ec33192.tar.gz nixpkgs-c24e91732598f088acdb49129002fa437ec33192.tar.bz2 nixpkgs-c24e91732598f088acdb49129002fa437ec33192.tar.lz nixpkgs-c24e91732598f088acdb49129002fa437ec33192.tar.xz nixpkgs-c24e91732598f088acdb49129002fa437ec33192.tar.zst nixpkgs-c24e91732598f088acdb49129002fa437ec33192.zip |
nixos/stage-1: added F2FS resizing
F2FS is used on Raspberry Pi-like devices to enhance SD card performance. Allowing F2FS resizing would help in automatic deploying of SD card images without a Linux box to resize the file system offline.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/stage-1-init.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index de8451bbe31..227ab450002 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -336,6 +336,10 @@ mountFS() { echo "resizing $device..." e2fsck -fp "$device" resize2fs "$device" + else [ "$fsType" = f2fs ]; then + echo "resizing $device..." + fsck.f2fs -fp "$device" + resize.f2fs "$device" fi ;; esac |