Adding bootc lint workaround, uhubctl to lenovo

This commit is contained in:
Ben Radey
2026-03-21 21:19:02 -04:00
parent d4f9de23d6
commit 74cad95ba5
4 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ RUN echo "%_without_kmod_nvidia_detect 1" > /etc/rpm/macros.nvidia-kmod && \
# Any more than that means that dnf automatically added a new one, which is shady! # Any more than that means that dnf automatically added a new one, which is shady!
# Then: cleanup image for linting # Then: cleanup image for linting
# Finally: verify image is good # Finally: verify image is good
# FIXME - remove the `--skip nonempty-run-tmp` when it's no longer needed
RUN [[ 4 -eq $(rpm -qa gpg-pubkey* | wc -l) ]] && \ RUN [[ 4 -eq $(rpm -qa gpg-pubkey* | wc -l) ]] && \
rm -rf /var /boot && mkdir /var /boot && \ rm -rf /var /boot && mkdir /var /boot && \
bootc container lint --fatal-warnings --skip baseimage-composefs bootc container lint --fatal-warnings --skip nonempty-run-tmp
+3 -1
View File
@@ -9,6 +9,7 @@ RUN dnf5 install -y \
dkms \ dkms \
python3-pyusb \ python3-pyusb \
radeontop \ radeontop \
uhubctl \
waydroid \ waydroid \
xinput && \ xinput && \
dnf5 clean all dnf5 clean all
@@ -26,6 +27,7 @@ RUN git clone https://github.com/johnfanv2/LenovoLegionLinux.git && \
# Any more than that means that dnf automatically added a new one, which is shady! # Any more than that means that dnf automatically added a new one, which is shady!
# Then: cleanup image for linting # Then: cleanup image for linting
# Finally: verify image is good # Finally: verify image is good
# FIXME - remove the `--skip nonempty-run-tmp` when it's no longer needed
RUN [[ 4 -eq $(rpm -qa gpg-pubkey* | wc -l) ]] && \ RUN [[ 4 -eq $(rpm -qa gpg-pubkey* | wc -l) ]] && \
rm -rf /var /boot && mkdir /var /boot && \ rm -rf /var /boot && mkdir /var /boot && \
bootc container lint --fatal-warnings --skip baseimage-composefs bootc container lint --fatal-warnings --skip nonempty-run-tmp
+2 -1
View File
@@ -102,6 +102,7 @@ RUN test -f /usr/lib/sysusers.d/libvirt.conf || echo -e 'g libvirt 963' > /usr/l
# Any more than that means that dnf automatically added a new one, which is shady! # Any more than that means that dnf automatically added a new one, which is shady!
# Then: cleanup image for linting # Then: cleanup image for linting
# Finally: verify image is good # Finally: verify image is good
# FIXME - remove the `--skip nonempty-run-tmp` when it's no longer needed
RUN [[ 7 -eq $(rpm -qa gpg-pubkey* | wc -l) ]] && \ RUN [[ 7 -eq $(rpm -qa gpg-pubkey* | wc -l) ]] && \
rm -rf /var /boot && mkdir /var /boot && \ rm -rf /var /boot && mkdir /var /boot && \
bootc container lint --fatal-warnings --skip baseimage-composefs bootc container lint --fatal-warnings --skip nonempty-run-tmp
+2 -1
View File
@@ -59,6 +59,7 @@ RUN rpm -q akmod-nvidia && \
# Any more than that means that dnf automatically added a new one, which is shady! # Any more than that means that dnf automatically added a new one, which is shady!
# Then: cleanup image for linting # Then: cleanup image for linting
# Finally: verify image is good # Finally: verify image is good
# FIXME - remove the `--skip nonempty-run-tmp` when it's no longer needed
RUN [[ 4 -eq $(rpm -qa gpg-pubkey* | wc -l) ]] && \ RUN [[ 4 -eq $(rpm -qa gpg-pubkey* | wc -l) ]] && \
rm -rf /var /boot && mkdir /var /boot && \ rm -rf /var /boot && mkdir /var /boot && \
bootc container lint --fatal-warnings --skip baseimage-composefs bootc container lint --fatal-warnings --skip nonempty-run-tmp