Skip to content

Commit

Permalink
Merge pull request #1513 from jpculp/variant-specific-consoles
Browse files Browse the repository at this point in the history
Move kernel console settings to variant tomls
  • Loading branch information
jpculp authored Apr 23, 2021
2 parents 32e4a7b + 5eddb57 commit 5d3db5e
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/rpm2img
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ set default="0"
set timeout="0"
menuentry "${PRETTY_NAME} ${VERSION_ID}" {
linux (\$root)/vmlinuz \\
linux (\$root)/vmlinuz root=/dev/dm-0 \\
${KERNEL_PARAMETERS} \\
root=/dev/dm-0 rootwait ro \\
console=tty0 console=ttyS0 random.trust_cpu=on selinux=1 enforcing=1 \\
rootwait ro \\
random.trust_cpu=on selinux=1 enforcing=1 \\
systemd.log_target=journal-or-kmsg systemd.log_color=0 net.ifnames=0 \\
biosdevname=0 dm_verity.max_bios=-1 dm_verity.dev_wait=1 \\
dm-mod.create="root,,,ro,0 $VERITY_DATA_512B_BLOCKS verity $VERITY_VERSION PARTUUID=\$boot_uuid/PARTNROFF=1 PARTUUID=\$boot_uuid/PARTNROFF=2 \\
Expand Down
4 changes: 4 additions & 0 deletions variants/aws-dev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ build = "build.rs"
exclude = ["README.md"]

[package.metadata.build-variant]
kernel-parameters = [
"console=tty0",
"console=ttyS0",
]
included-packages = [
# core
"release",
Expand Down
4 changes: 4 additions & 0 deletions variants/aws-ecs-1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ publish = false
build = "build.rs"

[package.metadata.build-variant]
kernel-parameters = [
"console=tty0",
"console=ttyS0",
]
included-packages = [
# core
"release",
Expand Down
4 changes: 4 additions & 0 deletions variants/aws-k8s-1.16/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ build = "build.rs"
exclude = ["README.md"]

[package.metadata.build-variant]
kernel-parameters = [
"console=tty0",
"console=ttyS0",
]
included-packages = [
"aws-iam-authenticator",
"cni",
Expand Down
4 changes: 4 additions & 0 deletions variants/aws-k8s-1.17/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ build = "build.rs"
exclude = ["README.md"]

[package.metadata.build-variant]
kernel-parameters = [
"console=tty0",
"console=ttyS0",
]
included-packages = [
"aws-iam-authenticator",
"cni",
Expand Down
4 changes: 4 additions & 0 deletions variants/aws-k8s-1.18/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ build = "build.rs"
exclude = ["README.md"]

[package.metadata.build-variant]
kernel-parameters = [
"console=tty0",
"console=ttyS0",
]
included-packages = [
"aws-iam-authenticator",
"cni",
Expand Down
4 changes: 4 additions & 0 deletions variants/aws-k8s-1.19/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ build = "build.rs"
exclude = ["README.md"]

[package.metadata.build-variant]
kernel-parameters = [
"console=tty0",
"console=ttyS0",
]
included-packages = [
"aws-iam-authenticator",
"cni",
Expand Down
4 changes: 4 additions & 0 deletions variants/vmware-dev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ exclude = ["README.md"]
[package.metadata.build-variant]
image-format = "vmdk"
supported-arches = ["x86_64"]
kernel-parameters = [
"console=ttyS0",
"console=tty1",
]
included-packages = [
# core
"release",
Expand Down

0 comments on commit 5d3db5e

Please sign in to comment.