-
Notifications
You must be signed in to change notification settings - Fork 53
Network stack boot time optimization: decouple from DATA partition #638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
951b136
2022a51
b3b2a98
651023c
dd845f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,20 @@ | ||
| [Unit] | ||
| Description=Write network status | ||
| DefaultDependencies=no | ||
| # Block manual interactions with this service, since it could leave the system in an | ||
| # unexpected state | ||
| RefuseManualStart=true | ||
| RefuseManualStop=true | ||
| Before=early-boot-config.service | ||
| Before=early-boot-config.service network-online.target | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to add this explicit With this change, the write-network-status.service happens before the network-online.target. |
||
| # This service creates a symlink to the resolv.conf systemd-resolved creates | ||
| # and we would like it to exist first | ||
| RequiresMountsFor=/.bottlerocket /run/netdog | ||
| After=systemd-networkd-wait-online.service systemd-resolved.service | ||
| Wants=systemd-networkd-wait-online.service systemd-resolved.service | ||
|
|
||
| [Service] | ||
| Type=oneshot | ||
| ExecStart=mkdir -p /etc/sysctl.d | ||
| ExecStart=/usr/bin/netdog write-primary-interface-status | ||
| RemainAfterExit=true | ||
| StandardError=journal+console | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| [Unit] | ||
| Description=Private Directory (/.bottlerocket) | ||
| DefaultDependencies=no | ||
| Conflicts=umount.target | ||
| Before=local-fs.target umount.target | ||
| After=dev-disk-by\x2dpartlabel-BOTTLEROCKET\x2dPRIVATE.device selinux-policy-files.service | ||
| Requires=dev-disk-by\x2dpartlabel-BOTTLEROCKET\x2dPRIVATE.device | ||
| Wants=selinux-policy-files.service | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not making this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I used |
||
| RefuseManualStart=true | ||
| RefuseManualStop=true | ||
|
|
||
| [Mount] | ||
| What=/dev/disk/by-partlabel/BOTTLEROCKET-PRIVATE | ||
| Where=/.bottlerocket | ||
| Options=defaults,noexec,nosuid,nodev,noatime,private,context=system_u:object_r:private_t:s0 | ||
| StandardError=journal+console | ||
|
|
||
| [Install] | ||
| WantedBy=local-fs.target | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| [Unit] | ||
| # Ensure D-Bus is fully initialized before network services start. | ||
| # This prevents a race condition where network services could attempt | ||
| # to use D-Bus functionality (like networkctl commands) before the D-Bus | ||
| # broker service is fully ready to handle requests. | ||
| DefaultDependencies=no | ||
| After=dbus.service | ||
| Requires=dbus.service | ||
| Before=shutdown.target | ||
| Conflicts=shutdown.target |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,14 +2,14 @@ | |
| Description=Private Directory (/var/lib/bottlerocket) | ||
| DefaultDependencies=no | ||
| Conflicts=umount.target | ||
| RequiresMountsFor=/var | ||
| RequiresMountsFor=/var /.bottlerocket | ||
| Before=local-fs.target umount.target | ||
|
|
||
| [Mount] | ||
| What=/dev/disk/by-partlabel/BOTTLEROCKET-PRIVATE | ||
| What=/.bottlerocket | ||
| Where=/var/lib/bottlerocket | ||
| Type=ext4 | ||
| Options=defaults,nosuid,nodev,noexec,noatime,private,context=system_u:object_r:private_t:s0 | ||
| Type=none | ||
| Options=rbind,rshared | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you have to make this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Linking @bcressey 's comments - #638 (comment)
|
||
|
|
||
| [Install] | ||
| WantedBy=preconfigured.target | ||
Uh oh!
There was an error while loading. Please reload this page.