@@ -198,6 +198,7 @@ add-user-to-input-group:
198
198
sudo usermod -a -G input $USER
199
199
200
200
# Enables automounting of labeled BTRFS/EXT4 partitions under /run/media/system
201
+ [group("automounting")]
201
202
enable-automounting :
202
203
# !/usr/bin/pkexec /usr/bin/bash
203
204
set -eo pipefail
@@ -207,6 +208,7 @@ enable-automounting:
207
208
fi
208
209
209
210
# Disables automounting of labeled BTRFS/EXT4 partitions under /run/media/system
211
+ [group("automounting")]
210
212
disable-automounting :
211
213
# !/usr/bin/pkexec /usr/bin/bash
212
214
set -eo pipefail
@@ -215,6 +217,40 @@ disable-automounting:
215
217
systemctl disable ublue-os-media-automount.service
216
218
fi
217
219
220
+ # Enable framework automounting udev rules.
221
+ [group("automounting")]
222
+ enable-framework-automount :
223
+ # !/usr/bin/pkexec /usr/bin/bash
224
+ set -eo pipefail
225
+ rm -f /etc/udev/rules.d/99-framework-steam-automount.rules
226
+
227
+ # Disable framework automounting udev rules.
228
+ [group("automounting")]
229
+ disable-framework-automount :
230
+ # !/usr/bin/pkexec /usr/bin/bash
231
+ set -eo pipefail
232
+ ln -sf /dev/null /etc/udev/rules.d/99-framework-steam-automount.rules
233
+
234
+ # Disable SteamOS automount, this fixes ntfs partitions getting mounted.
235
+ [group("automounting")]
236
+ disable-steamos-automount :
237
+ @pkexec ln -sf /dev/null /etc/udev/rules.d/99-steamos-automount.rules
238
+
239
+ # Enable SteamOS automount.
240
+ [group("automounting")]
241
+ enable-steamos-automount :
242
+ @pkexec rm -f /etc/udev/rules.d/99-steamos-automount.rules
243
+
244
+ # Disable all partition automounting. This might increase boot times.
245
+ [group("automounting")]
246
+ disable-automount-all :
247
+ @pkexec --keep-cwd ujust disable-framework-automount disable-automounting disable-steamos-automount
248
+
249
+ # Enable all automounting.
250
+ [group("automounting")]
251
+ enable-automount-all :
252
+ @pkexec --keep-cwd ujust enable-framework-automount enable-automounting enable-steamos-automount
253
+
218
254
# Enable support for Tailscale
219
255
enable-tailscale :
220
256
systemctl enable --now tailscaled.service
0 commit comments