diff options
author | Simon Rettberg | 2018-11-12 14:14:12 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-11-12 14:14:12 +0100 |
commit | d24aa69f135ba2af52063caf295438ea6461f87c (patch) | |
tree | b32879f59a12e5f3b7c95486c3fc65cfef76fe8b /core | |
parent | [xscreensaver] Add style.qss (diff) | |
download | mltk-d24aa69f135ba2af52063caf295438ea6461f87c.tar.gz mltk-d24aa69f135ba2af52063caf295438ea6461f87c.tar.xz mltk-d24aa69f135ba2af52063caf295438ea6461f87c.zip |
[rfs-stage32] Don't run fstrim on mkfs as it can slow down things
Maybe add an asynchronous fstrim run as a separate systemd job later on,
but for now let's discard the discard. It ain't that bad on halfway
modern SSDs with more sophisticated wear leveling.
Diffstat (limited to 'core')
-rwxr-xr-x | core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions index 9b5abbe7..76afadf0 100755 --- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions +++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions @@ -74,14 +74,17 @@ format_disk () { fi if which "mkfs.$fs" ; then case "$fs" in - xfs|reiserfs) + reiserfs) fopt=("-f") ;; + xfs) + fopt=("-f" "-K") + ;; ext2|ext3) fopt=("-F") ;; ext4) - fopt=(-F -b 4096 -O "extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize,quota" -E "quotatype=usrquota:prjquota" -I 256) + fopt=(-F -b 4096 -O "extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize,quota" -E "nodiscard,quotatype=usrquota:prjquota" -I 256) ;; jfs) fopt=() |