This commit is contained in:
Kyle Gospodnetich 2024-05-20 22:07:13 -07:00
parent cae8d96985
commit ba9ac73bc3
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# Originally from https://serverfault.com/a/767079
# Mount drives labeled "steamgames" to support FrameworkComputer's steam-drive-mounter
# https://github.com/FrameworkComputer/steam-drive-mounter
ENV{ID_FS_USAGE}!="filesystem", GOTO="steamos_automount_end"
ENV{ID_FS_LABEL}!="steamgames", GOTO="steamos_automount_end"
# The service expects to be asynchronous and shouldn't block udev rules
ACTION=="add", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh add %k"
ACTION=="remove", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh remove %k"
LABEL="steamos_automount_end"

View File

@ -11,6 +11,7 @@ URL: https://github.com/ublue-os/bazzite
Source: https://gitlab.com/evlaV/%{packagename}/-/archive/%{packagever}/%{packagename}-%{packagever}.tar.gz
Source2: bazzite.png
Source3: 99-framework-steam-automount.rules
Patch0: fedora.patch
Patch1: selinux.patch
Patch2: btrfs-automount.patch
@ -71,6 +72,7 @@ cp -rv usr/lib/udev %{buildroot}%{_prefix}/lib/udev
cp -rv usr/bin/* %{buildroot}%{_bindir}
cp -rv usr/lib/systemd/system/* %{buildroot}%{_unitdir}
cp %{SOURCE2} %{buildroot}%{_datadir}/plymouth/themes/steamos/bazzite.png
cp %{SOURCE3} %{buildroot}%{_prefix}/lib/udev/rules.d/99-framework-steam-automount.rules
xcursorgen usr/share/steamos/steamos-cursor-config %{buildroot}%{_datadir}/icons/steam/cursors/default
# Remove unneeded files
rm %{buildroot}%{_datadir}/jupiter_bios_updater/h2offt-g

View File

@ -12,6 +12,7 @@ URL: https://github.com/ublue-os/bazzite
Source: https://gitlab.com/evlaV/%{packagename}/-/archive/%{packagever}/%{packagename}-%{packagever}.tar.gz
Source1: 99-sdcard-rescan.rules
Source2: 99-steamos-automount.rules
Source3: 99-framework-steam-automount.rules
Patch0: fedora.patch
Patch1: selinux.patch
Patch2: btrfs-automount.patch
@ -51,6 +52,7 @@ cp usr/lib/hwsupport/common-functions %{buildroot}%{_libexecdir}/hwsupport/commo
cp usr/lib/hwsupport/block-device-event.sh %{buildroot}%{_libexecdir}/hwsupport/block-device-event.sh
cp %{SOURCE1} %{buildroot}%{_prefix}/lib/udev/rules.d/99-sdcard-rescan.rules
cp %{SOURCE2} %{buildroot}%{_prefix}/lib/udev/rules.d/99-steamos-automount.rules
cp %{SOURCE3} %{buildroot}%{_prefix}/lib/udev/rules.d/99-framework-steam-automount.rules
# This lists all the files that are included in the rpm package and that
# are going to be installed into target system where the rpm is installed.