14.3. Containerfile에 커널 인수 삽입
Red Hat Enterprise Linux Containerfile에 커널 인수를 삽입하여 이미지 빌드 프로세스 중에 부팅 매개 변수를 구성합니다. 이러한 설정을 포함하면 특정 커널 옵션을 컨테이너 이미지의 프로비저닝된 시스템에 일관되게 적용하여 배포 후 구성이 제거됩니다.
사전 요구 사항
- 컨테이너 이미지를 생성하셨습니다.
프로세스
커널 인수를 삽입합니다.
FROM registry.redhat.io/rhel10/rhel-bootc:latest RUN mkdir -p /usr/lib/bootc/kargs.d RUN cat <<EOF >> /usr/lib/bootc/kargs.d/console.toml kargs = ["console=ttyS0,115200n8"] match-architectures = ["x86_64"] EOF RUN cat <<EOF >> /usr/lib/bootc/kargs.d/01-mitigations.toml kargs = ["mitigations=on", "systemd.unified_cgroup_hierarchy=0"] match-architectures = ["x86_64", "aarch64"] EOF