Skip to content

Commit

Permalink
Temorarily use linux-5.4.15
Browse files Browse the repository at this point in the history
Fixes #53
  • Loading branch information
johnramsden committed Feb 29, 2020
1 parent e024b31 commit cad5a23
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM archlinux/base
ARG ALEZ_BUILD_DIR='/opt/alez'
ARG ARCHZFS_KEY='F75D9D76'

RUN pacman -Syu --noconfirm --needed base base-devel git archiso reflector curl
RUN pacman -Syu --noconfirm --needed base base-devel git archiso reflector curl wget

RUN mkdir ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf
RUN pacman-key --init && pacman-key --populate archlinux && \
Expand All @@ -23,12 +23,28 @@ RUN sed -i '/^\[core\]/i [archzfs]\n\
Server = http://archzfs.com/$repo/x86_64\n' \
"${ALEZ_BUILD_DIR}/iso/pacman.conf"

RUN printf 'git\nzfs-linux-lts\nreflector\nwget\nlinux-lts\nlinux-firmware\ndhcpcd\nless\nmdadm' >> \
RUN printf 'git\narchzfs-linux\nreflector\nwget\nlinux\nlinux-firmware\ndhcpcd\nless\nmdadm' >> \
"${ALEZ_BUILD_DIR}/iso/packages.x86_64"

RUN printf '\nsystemctl enable dhcpcd' >> \
"${ALEZ_BUILD_DIR}/iso/airootfs/root/customize_airootfs.sh"

## In case of kernel mismatch ##

RUN mkdir -p "${ALEZ_BUILD_DIR}/iso/airootfs/root/customrepo/x86_64" && \
cd "${ALEZ_BUILD_DIR}/iso/airootfs/root/customrepo/x86_64" && \
wget "https://archive.archlinux.org/packages/l/linux/linux-5.4.15.arch1-1-x86_64.pkg.tar.zst" && \
repo-add "${ALEZ_BUILD_DIR}/iso/airootfs/root/customrepo/x86_64/customrepo.db.tar.gz" "${ALEZ_BUILD_DIR}/iso/airootfs/root/customrepo/x86_64/linux-5.4.15.arch1-1-x86_64.pkg.tar.zst"

RUN sed -i '/^\[core\]/i [customrepo]\n\
SigLevel = Optional TrustAll\n\
Server = file:///opt/alez/iso/airootfs/root/customrepo/$arch\n' \
"${ALEZ_BUILD_DIR}/iso/pacman.conf"

RUN pacman -Syy

## ##

COPY motd "${ALEZ_BUILD_DIR}/iso/airootfs/etc/"

# Copy in current directory to allow git tag checking
Expand Down

0 comments on commit cad5a23

Please sign in to comment.