Skip to content

Commit

Permalink
Merge pull request #90 from gardenlinux/fix/makepart/cmdline
Browse files Browse the repository at this point in the history
fix: makepart: don't add rd.break to commandline
  • Loading branch information
nkraetzschmar authored Jul 26, 2024
2 parents 9be7a91 + 4fef0f3 commit 05213fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ RUN git clone --depth=1 -b v0.0.10 https://github.com/gardenlinux/aws-kms-pkcs11
RUN cd aws-kms-pkcs11 && make -j "$(nproc)" AWS_SDK_STATIC=y install
RUN cp "/usr/lib/$(uname -m)-linux-gnu/pkcs11/aws_kms_pkcs11.so" /aws_kms_pkcs11.so

FROM debian:testing AS datefudge
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends build-essential ca-certificates git
RUN git clone --branch debian/1.26 --depth=1 https://salsa.debian.org/debian/datefudge.git
RUN make -C datefudge install

FROM debian:testing

LABEL org.opencontainers.image.source="https://github.com/gardenlinux/builder"
Expand All @@ -24,6 +29,8 @@ RUN cd /tmp \
&& rm openssl.deb
COPY --from=mv_data /usr/bin/mv_data /usr/bin/mv_data
COPY --from=aws-kms-pkcs11 /aws_kms_pkcs11.so /aws_kms_pkcs11.so
COPY --from=datefudge /usr/lib/datefudge/datefudge.so /usr/lib/datefudge/datefudge.so
COPY --from=datefudge /usr/bin/datefudge /usr/bin/datefudge
RUN mv /aws_kms_pkcs11.so "/usr/lib/$(uname -m)-linux-gnu/pkcs11/aws_kms_pkcs11.so"
COPY builder /builder
RUN mkdir /builder/cert
Expand Down
1 change: 0 additions & 1 deletion builder/image.d/makepart
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ if [[ -n "$(find "$dracut_include/etc/repart.d/" -name "1.*.conf")" ]] || { [[ -
fi

read -r _ cmdline < "$rootfs/etc/kernel/cmdline" # hacky assumption that root= is always at start of kernel cmdline. TODO: find better way to handle this
cmdline="rd.break systemd.journald.forward_to_console=1 $cmdline"
if [[ -z "$(cat "$root_hash")" ]]; then
if [[ -z "$(cat "$root_repart")" ]]; then
root_source=$(tail -n 1 "$fstab" | cut -d " " -f 1)
Expand Down
1 change: 0 additions & 1 deletion pkg.list
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ca-certificates
cpio
cryptsetup
curl
datefudge
dosfstools
e2fsprogs
fdisk
Expand Down

0 comments on commit 05213fd

Please sign in to comment.