diff --git a/rhel-10.1-installer b/rhel-10.1-installer index 4eb067f..06eed57 100644 --- a/rhel-10.1-installer +++ b/rhel-10.1-installer @@ -1 +1,80 @@ +# vim: set ft=dockerfile: +# -*- mode: dockerfile-mode -*- +# code: language=dockerfile insertSpaces=true tabSize=4 + FROM registry.redhat.io/rhel10/rhel-bootc:10.1 + +ARG TARGETARCH + +# Packages needed for Anaconda; and build dependencies +RUN dnf install -y \ + anaconda \ + anaconda-install-img-deps \ + anaconda-dracut \ + dracut-config-generic \ + dracut-network \ + net-tools \ + grub2-efi-x64-cdboot \ + plymouth \ + default-fonts-core-sans \ + default-fonts-other-sans \ + google-noto-sans-cjk-fonts \ + xorriso \ + squashfs-tools \ + && dnf clean all + +# XXX: https://github.com/osbuild/bootc-foundry/issues/50 +#RUN mkdir -p /boot/efi \ +# && cp -rva /usr/lib/efi/*/*/EFI /boot/efi + + +RUN mkdir -p /usr/lib/image-builder/bootc + +COPY <> /etc/passwd && \ + echo "install::14438:0:99999:7:::" >> /etc/shadow && \ + passwd -d root + +RUN mv /usr/share/anaconda/list-harddrives-stub /usr/bin/list-harddrives && \ + mv /etc/yum.repos.d /etc/anaconda.repos.d && \ + ln -s /lib/systemd/system/anaconda.target /etc/systemd/system/default.target && \ + rm -v /usr/lib/systemd/system-generators/systemd-gpt-auto-generator + +RUN rm /usr/lib/systemd/system/autovt@.service \ + && ln -s /usr/lib/systemd/system/anaconda-shell@.service /usr/lib/systemd/system/autovt@.service + +RUN mkdir /usr/lib/systemd/logind.conf.d +COPY <