Skip to content
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

05core: add support for root on iSCSI #2702

Merged
merged 6 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ if test -n "$(cmdline_arg rd.iscsi.firmware)" || test -n "$(cmdline_arg netroot)
# activate ignition-fetch.service
mkdir -p /run/ignition
touch /run/ignition/neednet

# With iSCSI, configuring networking via kargs is a hard requirement
# since it can't be picked up from the bootfs (i.e. injected via
# `--copy-network`). So neuter `coreos-copy-firstboot-network.service`.
ln -sf /dev/null "${EARLY_DIR}/ignition-complete.target.requires/coreos-copy-firstboot-network.service"
jlebon marked this conversation as resolved.
Show resolved Hide resolved
fi

# create symlink for udev rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Before=systemd-fsck-root.service
Before=ignition-diskful.target

# Have some ordering with this service since it also wants to access the bootfs.
# We run after it since that service runs early and is skipped if we're on
# iSCSI, but we still run.
After=coreos-copy-firstboot-network.service

Requires=dev-disk-by\x2dlabel-boot.device
Expand Down