1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 06:45:13 +01:00

Dockerfile: enable initramfs by default

As we progress the composefs work along this is becoming more of a
general requirement.  I think it still makes sense to leave it as
optional for now, but I think for the bulk of the cases we'll want to
go ahead and build the initramfs support in.

Signed-off-by: John Eckersberg <jeckersb@redhat.com>
This commit is contained in:
John Eckersberg
2025-09-24 14:27:34 -04:00
committed by Colin Walters
parent 5cacf27242
commit b18d5422b1

View File

@@ -39,8 +39,8 @@ EORUN
# bootc binaries in /out. The intention is that the target rootfs is extracted from /out
# back into a final stae (without the build deps etc) below.
FROM base as build
# Flip this on to enable initramfs code
ARG initramfs=0
# Flip this off to disable initramfs code
ARG initramfs=1
# This installs our package dependencies, and we want to cache it independently of the rest.
# Basically we don't want changing a .rs file to blow out the cache of packages. So we only
# copy files necessary