Skip to content

Commit

Permalink
network: handle autoconnections policy for rhel upstream
Browse files Browse the repository at this point in the history
The added shared service will be run only on rhel systems.

Resolves: RHEL-53196
  • Loading branch information
rvykydal committed Oct 24, 2024
1 parent 3b125ca commit 2d87018
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/systemd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dist_systemd_DATA = anaconda.service \
anaconda-sshd.service \
anaconda-nm-config.service \
anaconda-nm-disable-autocons.service \
anaconda-nm-disable-autocons-rhel.service \
anaconda-pre.service \
anaconda-s390-device-config-import.service \
anaconda-fips.service
Expand Down
1 change: 1 addition & 0 deletions data/systemd/anaconda-generator
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ done

ln -sf "$systemd_dir/anaconda-nm-config.service" "$target_dir/anaconda-nm-config.service"
ln -sf "$systemd_dir/anaconda-nm-disable-autocons.service" "$target_dir/anaconda-nm-disable-autocons.service"
ln -sf "$systemd_dir/anaconda-nm-disable-autocons-rhel.service" "$target_dir/anaconda-nm-disable-autocons-rhel.service"
ln -sf "$systemd_dir/anaconda-pre.service" "$target_dir/anaconda-pre.service"
10 changes: 10 additions & 0 deletions data/systemd/anaconda-nm-disable-autocons-rhel.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
ConditionKernelCommandLine=|ip
ConditionKernelCommandLine=|inst.ks
ConditionOSRelease=ID=rhel
Description=NetworkManager autoconnections configuration for Anaconda installation environment for RHEL
Before=NetworkManager.service

[Service]
Type=oneshot
ExecStart=/usr/bin/anaconda-nm-disable-autocons

0 comments on commit 2d87018

Please sign in to comment.