add waydroid intel gpu selection service
This commit is contained in:
parent
b52dd8d8ab
commit
b2228f0b77
2 changed files with 18 additions and 2 deletions
|
|
@ -31,10 +31,11 @@ RUN rpm -Uvh --nodeps https://mullvad.net/da/download/app/rpm/latest
|
||||||
# Add rule to SELinux allowing modules to be loaded into custom kernel
|
# Add rule to SELinux allowing modules to be loaded into custom kernel
|
||||||
RUN setsebool -P domain_kernel_load_modules on
|
RUN setsebool -P domain_kernel_load_modules on
|
||||||
|
|
||||||
COPY etc/environment /etc/environment
|
COPY etc /etc
|
||||||
COPY etc/systemd/zram-generator.conf /etc/systemd/zram-generator.conf
|
|
||||||
COPY usr /usr
|
COPY usr /usr
|
||||||
|
|
||||||
|
RUN systemctl enable waydroid-choose-intel-gpu.service
|
||||||
|
|
||||||
RUN cd /usr/bin && wget https://raw.githubusercontent.com/CachyOS/CachyOS-Settings/refs/heads/master/usr/bin/kerver && chmod +x kerver
|
RUN cd /usr/bin && wget https://raw.githubusercontent.com/CachyOS/CachyOS-Settings/refs/heads/master/usr/bin/kerver && chmod +x kerver
|
||||||
|
|
||||||
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||||
|
|
|
||||||
15
etc/systemd/system/waydroid-choose-intel-gpu.service
Normal file
15
etc/systemd/system/waydroid-choose-intel-gpu.service
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Waydroid Intel GPU Selection Service
|
||||||
|
After=multi-user.target
|
||||||
|
Wants=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=waydroid-choose-intel-gpu.sh
|
||||||
|
RemainAfterExit=yes
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
User=root
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue