-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: networkd updates for Packet, hostname detection, console kernel arg
fix: bring up bonded interfaces correctly on packet This probably fixes bonding in general if 2nd link in the bond is down. For packet, set additional options for the bonded interface. In networkd, add interfaces filtered out by link status as ignored to make them available as bond subinterfaces. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com> (cherry picked from commit 5325a66) fix: allow 'console' argument in kernel args to be always overridden Fixes #3011 See also siderolabs/go-procfs#8 We don't want to allow all the kernel args to be overridden, as this might compromise KSPP, but we would rather allow some args to be overridden explicitly. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com> (cherry picked from commit d19486a) fix: pick first interface valid hostname (vs. last one) Looks like the code before change in #1578 returned the first hostname found while interating over interfaces and addressing methods, but #1578 supposedly inadvertently flipped that to iterate over all interfaces (so last interface wins). Problem is that both `DHCP` and `Static` addressing methods provide hostnames, while DHCP hostname comes from DHCP server, while `Static` defines hostname as `talos-10-5-0-2` (by IP). If we were to fix it for real, we should build a list of hostname with priorities coming from different sources and pick a hostname with the highest priority, so this fix is more of a bandaid rather than a real fix. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com> (cherry picked from commit af5c34b) refactor: define default kernel flags in machinery instead of procfs That change should make Talos updates more straightforward in any projects that depend on Talos. Signed-off-by: Artem Chernyshev <artem.0xD2@gmail.com> (cherry picked from commit 7b6c4bc)
- Loading branch information
Showing
9 changed files
with
60 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
package kernel | ||
|
||
// DefaultArgs returns the Talos default kernel commandline options. | ||
var DefaultArgs = []string{ | ||
"init_on_alloc=1", | ||
"init_on_free=1", | ||
"slab_nomerge=", | ||
"pti=on", | ||
"consoleblank=0", | ||
// AWS recommends setting the nvme_core.io_timeout to the highest value possible. | ||
// See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nvme-ebs-volumes.html. | ||
"nvme_core.io_timeout=4294967295", | ||
"random.trust_cpu=on", | ||
// Disable rate limited printk | ||
"printk.devkmsg=on", | ||
"ima_template=ima-ng", | ||
"ima_appraise=fix", | ||
"ima_hash=sha512", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters