nixos/stage-1: implemented separate check for f2fs filesystems in need of resizing
This commit is contained in:
parent
0b9b7be5bf
commit
577483738c
@ -126,8 +126,11 @@ let
|
|||||||
${optionalString (any (fs: fs.autoResize) fileSystems) ''
|
${optionalString (any (fs: fs.autoResize) fileSystems) ''
|
||||||
# We need mke2fs in the initrd.
|
# We need mke2fs in the initrd.
|
||||||
copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs
|
copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs
|
||||||
# Copy also f2fs-tools' fsck and resize
|
''}
|
||||||
# TODO: separate these in case no f2fs fs are present
|
|
||||||
|
# Copy f2fs-tools' fsck and resize if needed
|
||||||
|
${optionalString (any (fs: fs.autoResize) (filter (x: x.fsType == "f2fs") fileSystems)) ''
|
||||||
|
# We need f2fs-tools' tools to resize filesystems
|
||||||
copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/fsck.f2fs
|
copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/fsck.f2fs
|
||||||
copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/resize.f2fs
|
copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/resize.f2fs
|
||||||
''}
|
''}
|
||||||
|
Loading…
Reference in New Issue
Block a user