-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2296 from arnaldo2792/kernel-modules-compression
Improvements on boot speed and rootfs size
- Loading branch information
Showing
25 changed files
with
79 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[Unit] | ||
Wants=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service | ||
After=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service |
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,3 @@ | ||
[Unit] | ||
Wants=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service | ||
After=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service |
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,3 @@ | ||
[Unit] | ||
Wants=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service | ||
After=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service |
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,3 @@ | ||
[Unit] | ||
Wants=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service | ||
After=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service |
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,3 @@ | ||
[Unit] | ||
Wants=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service | ||
After=modprobe@ip_vs_sh.service modprobe@ip_vs_rr.service modprobe@ip_vs_wrr.service |
2 changes: 1 addition & 1 deletion
2
packages/systemd/9001-use-absolute-path-for-var-run-symlink.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 4582d854afd5b42fdc952fafd89d762dcb279da9 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Mon, 3 Jan 2022 20:22:17 +0000 | ||
Subject: [PATCH 9001/9010] use absolute path for /var/run symlink | ||
Subject: [PATCH 9001/9011] use absolute path for /var/run symlink | ||
|
||
Otherwise the symlink may be broken if /var is a bind mount from | ||
somewhere else. | ||
|
2 changes: 1 addition & 1 deletion
2
packages/systemd/9002-core-add-separate-timeout-for-system-shutdown.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 71a774ad3c3dfd5f9ddb96f7b08a957144e93323 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Tue, 10 Mar 2020 20:30:10 +0000 | ||
Subject: [PATCH 9002/9010] core: add separate timeout for system shutdown | ||
Subject: [PATCH 9002/9011] core: add separate timeout for system shutdown | ||
|
||
There is an existing setting for this (DefaultTimeoutStopUSec), but | ||
changing it has no effect because `reset_arguments()` is called just | ||
|
2 changes: 1 addition & 1 deletion
2
packages/systemd/9003-machine-id-setup-generate-stable-ID-under-Xen-and-VM.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 95824ee80743b604e4b1757818f1ea7bf2971462 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Mon, 3 Jan 2022 21:57:11 +0000 | ||
Subject: [PATCH 9003/9010] machine-id-setup: generate stable ID under Xen and | ||
Subject: [PATCH 9003/9011] machine-id-setup: generate stable ID under Xen and | ||
VMware | ||
|
||
Signed-off-by: Ben Cressey <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From e02f2a077e97a4f73697ef9a6769e41401b1ca97 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Sat, 28 May 2022 03:52:28 +0000 | ||
Subject: [PATCH 9004/9010] units: mount /tmp with noexec | ||
Subject: [PATCH 9004/9011] units: mount /tmp with noexec | ||
|
||
Signed-off-by: Ben Cressey <[email protected]> | ||
--- | ||
|
2 changes: 1 addition & 1 deletion
2
packages/systemd/9005-mount-setup-apply-noexec-to-more-mounts.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 5a822486905915396d27da85b336f0877e612532 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Sat, 28 May 2022 03:49:46 +0000 | ||
Subject: [PATCH 9005/9010] mount-setup: apply noexec to more mounts | ||
Subject: [PATCH 9005/9011] mount-setup: apply noexec to more mounts | ||
|
||
Signed-off-by: Ben Cressey <[email protected]> | ||
--- | ||
|
2 changes: 1 addition & 1 deletion
2
packages/systemd/9006-mount-setup-mount-etc-with-specific-label.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 2e871585a26b1f107db88a0ec0d9951735a6ec49 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Thu, 9 Jul 2020 20:00:36 +0000 | ||
Subject: [PATCH 9006/9010] mount-setup: mount /etc with specific label | ||
Subject: [PATCH 9006/9011] mount-setup: mount /etc with specific label | ||
|
||
The filesystem is mounted after we load the SELinux policy, so we can | ||
apply the label we need to restrict access. | ||
|
2 changes: 1 addition & 1 deletion
2
packages/systemd/9007-journal-disable-keyed-hashes-for-compatibility.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 81808b8ed1259d4d05052b6825d9b560f93098e5 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Thu, 12 Nov 2020 16:18:15 +0000 | ||
Subject: [PATCH 9007/9010] journal: disable keyed hashes for compatibility | ||
Subject: [PATCH 9007/9011] journal: disable keyed hashes for compatibility | ||
|
||
Otherwise the journal is not readable by older versions of systemd. | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
packages/systemd/9008-pkg-config-stop-hardcoding-prefix-to-usr.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From dc6abce8797a6a2e63c4ae58218588327e73d4cb Mon Sep 17 00:00:00 2001 | ||
From: Erikson Tung <[email protected]> | ||
Date: Mon, 3 Jan 2022 22:07:25 +0000 | ||
Subject: [PATCH 9008/9010] pkg-config: stop hardcoding prefix to /usr | ||
Subject: [PATCH 9008/9011] pkg-config: stop hardcoding prefix to /usr | ||
|
||
While we ensure /usr points to the sys-root at runtime, for Bottlerocket's | ||
packaging we need to be careful to avoid dependencies on the host OS so | ||
|
2 changes: 1 addition & 1 deletion
2
packages/systemd/9009-sysctl-do-not-set-rp_filter-via-wildcard.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 0aee69ee8b337ff50d4f7723e3c93f222bf239b1 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Mon, 21 Jun 2021 20:53:47 +0000 | ||
Subject: [PATCH 9009/9010] sysctl: do not set rp_filter via wildcard | ||
Subject: [PATCH 9009/9011] sysctl: do not set rp_filter via wildcard | ||
|
||
The wildcard matches existing interfaces when `systemd-sysctl` runs | ||
at startup, but also applies to new interfaces when it is invoked by | ||
|
2 changes: 1 addition & 1 deletion
2
packages/systemd/9010-sysusers-set-root-shell-to-sbin-nologin.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 6f28750806a6e25e4f83784e7c29aca8e9c3903b Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Sat, 28 May 2022 04:12:07 +0000 | ||
Subject: [PATCH 9010/9010] sysusers: set root shell to /sbin/nologin | ||
Subject: [PATCH 9010/9011] sysusers: set root shell to /sbin/nologin | ||
|
||
Signed-off-by: Ben Cressey <[email protected]> | ||
--- | ||
|
24 changes: 24 additions & 0 deletions
24
packages/systemd/9011-units-keep-modprobe-service-units-running.patch
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,24 @@ | ||
From 13bf60bf11edf407246176262865c8e93f66c1e8 Mon Sep 17 00:00:00 2001 | ||
From: Ben Cressey <[email protected]> | ||
Date: Sun, 17 Jul 2022 16:21:16 +0000 | ||
Subject: [PATCH 9011/9011] units: keep modprobe service units running | ||
|
||
Otherwise, the units are restarted when the default target changes. | ||
|
||
Signed-off-by: Ben Cressey <[email protected]> | ||
--- | ||
units/[email protected] | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/units/[email protected] b/units/[email protected] | ||
index cf8baf6..a029ab0 100644 | ||
--- a/units/[email protected] | ||
+++ b/units/[email protected] | ||
@@ -17,3 +17,4 @@ ConditionCapability=CAP_SYS_MODULE | ||
[Service] | ||
Type=oneshot | ||
ExecStart=-/sbin/modprobe -abq %I | ||
+RemainAfterExit=true | ||
-- | ||
2.36.1 | ||
|
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