1
1
diff --git a/etc/systemd/system/steamos-automount@.service b/etc/systemd/system/steamos-automount@.service
2
- index dd700da..152e231 100644
2
+ index 96e8818..33038bc 100644
3
3
--- a/etc/systemd/system/steamos-automount@.service
4
4
+++ b/etc/systemd/system/steamos-automount@.service
5
- @@ -14,6 +14,7 @@
5
+ @@ -14,5 +14,6 @@ Description=Mount removable drive %i
6
6
[Service]
7
7
Type=oneshot
8
8
RemainAfterExit=true
9
9
+ EnvironmentFile=/etc/default/steamos-btrfs
10
- ExecStart=-/usr/libexec/steamos-automount add %i
11
- ExecStop=-/usr/libexec/steamos-automount remove %i
12
- ExecReload=-/usr/libexec/steamos-automount retrigger %i
13
-
10
+ ExecStart=/usr/lib/hwsupport/steamos-automount.sh add %i
11
+ ExecStop=/usr/lib/hwsupport/steamos-automount.sh remove %i
14
12
diff --git a/usr/lib/hwsupport/format-device.sh b/usr/lib/hwsupport/format-device.sh
15
- index b136413..d3cbb16 100755
13
+ index 566eea2..d6803ff 100755
16
14
--- a/usr/lib/hwsupport/format-device.sh
17
15
+++ b/usr/lib/hwsupport/format-device.sh
18
16
@@ -2,6 +2,8 @@
@@ -24,26 +22,27 @@ index b136413..d3cbb16 100755
24
22
# If the script is not run from a tty then send a copy of stdout and
25
23
# stderr to the journal. In this case stderr is also redirected to stdout.
26
24
if ! tty -s; then
27
-
25
+ diff --git a/usr/lib/hwsupport/steamos-automount.sh b/usr/lib/hwsupport/steamos-automount.sh
26
+ index 6dd3a2f..ca1c5ca 100755
28
27
--- a/usr/lib/hwsupport/steamos-automount.sh
29
28
+++ b/usr/lib/hwsupport/steamos-automount.sh
30
- @@ -77 ,6 +77 ,7 @@
29
+ @@ -66 ,6 +66 ,7 @@ do_mount()
31
30
dev_json=$(lsblk -o PATH,LABEL,FSTYPE --json -- "$DEVICE" | jq '.blockdevices[0]')
32
31
ID_FS_LABEL=$(jq -r '.label | select(type == "string")' <<< "$dev_json")
33
32
ID_FS_TYPE=$(jq -r '.fstype | select(type == "string")' <<< "$dev_json")
34
33
+ FSTYPE_PREFIX=""
35
34
36
35
#### SteamOS Btrfs Begin ####
37
36
if [[ -f /etc/default/steamos-btrfs ]]; then
38
- @@ -120 ,6 +121 ,7 @@
37
+ @@ -109 ,6 +110 ,7 @@ do_mount()
39
38
UDISKS2_ALLOW='uid=$UID,gid=$GID,umask,dmask,fmask,locale,norecover,ignore_case,windows_names,compression,nocompression,big_writes,nls,nohidden,sys_immutable,sparse,showmeta,prealloc'
40
39
OPTS="${STEAMOS_BTRFS_SDCARD_NTFS_MOUNT_OPTS:-rw,noatime,lazytime,uid=1000,gid=1000,big_writes,umask=0022,ignore_case,windows_names}"
41
40
FSTYPE="lowntfs-3g"
42
41
+ FSTYPE_PREFIX="ntfs:"
43
42
if [[ ! -f /etc/filesystems ]] || ! grep -q '\b'"${FSTYPE}"'\b' /etc/filesystems; then
44
43
echo "${FSTYPE}" >> /etc/filesystems
45
44
fi
46
- @@ -132 ,7 +134 ,7 @@
45
+ @@ -121 ,7 +123 ,7 @@ do_mount()
47
46
if [[ -f "${udisks2_mount_options_conf}" && ! -f "${udisks2_mount_options_conf}.orig" ]]; then
48
47
mv -f "${udisks2_mount_options_conf}"{,.orig}
49
48
fi
0 commit comments