Skip to content

Commit cf667f8

Browse files
committed
feat: Set SteamOS BTRFS mount flags for all BTRFS partitions
1 parent 6ee74c4 commit cf667f8

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

system_files/deck/usr/share/ublue-os/firstboot/yafti.yml

+5
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ screens:
9494
default: true
9595
packages:
9696
- Create Steam shortcuts: just --unstable create-steam-shortcuts
97+
SteamOS BTRFS Mount Flags:
98+
description: Sets SteamOS BTRFS mount flags
99+
default: true
100+
packages:
101+
- Set SteamOS BTRFS mount flags: sudo -A just --unstable set-btrfs-flags
97102
Use EXT4 for SD Cards:
98103
description: Disable BTRFS support for SD cards for direct compatibility with SD cards formatted on stock SteamOS (Not recommended).
99104
default: false

system_files/deck/usr/share/ublue-os/just/custom.just

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ enable-duperemove:
112112
systemctl enable --now duperemove-weekly@$(systemd-escape $HOME).timer
113113
systemctl enable --now duperemove-weekly@$(systemd-escape /run/media/mmcblk0p1).timer
114114

115+
set-btrfs-flags:
116+
sudo sed -i 's/compress=zstd:1/noatime,lazytime,commit=120,compress-force=zstd:1,space_cache=v2,discard=async/g' /etc/fstab
117+
115118
switch-to-ext4:
116119
sudo sed -i 's@STEAMOS_BTRFS_SDCARD_FORMAT_FS="btrfs"@STEAMOS_BTRFS_SDCARD_FORMAT_FS="ext4"@g' /etc/default/steamos-btrfs
117120

system_files/desktop/usr/share/ublue-os/firstboot/yafti.yml

+5
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ screens:
6666
default: false
6767
packages:
6868
- Enable Big Picture Mode: just --unstable enable-big-picture
69+
SteamOS BTRFS Mount Flags:
70+
description: Sets SteamOS BTRFS mount flags
71+
default: true
72+
packages:
73+
- Set SteamOS BTRFS mount flags: sudo -A just --unstable set-btrfs-flags
6974
System76 Scheduler:
7075
description: Enables System76 scheduler
7176
default: true

system_files/desktop/usr/share/ublue-os/just/custom.just

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ enable-wallpaper-engine:
4646
plasmapkg2 -i /tmp/wallpaper-engine-kde-plugin/plugin
4747
rm -rf /tmp/wallpaper-engine-kde-plugin
4848

49+
set-btrfs-flags:
50+
sudo sed -i 's/compress=zstd:1/noatime,lazytime,commit=120,compress-force=zstd:1,space_cache=v2,discard=async/g' /etc/fstab
51+
4952
zram-on:
5053
#!/usr/bin/env bash
5154
KARGS=$(rpm-ostree kargs)

0 commit comments

Comments
 (0)