Skip to content

Commit 1e218c7

Browse files
committed
docs: RL9 migration in-place updates
1 parent 0fc39a0 commit 1e218c7

File tree

1 file changed

+44
-11
lines changed

1 file changed

+44
-11
lines changed

doc/source/operations/rocky-linux-9.rst

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,7 @@ Potential issues
617617
Full procedure
618618
--------------
619619

620-
- It's good to inspect existing DNF packages and determine whether they are
621-
really required.
620+
- Inspect existing DNF packages and determine whether they are really required.
622621

623622
- Use the `migrate2rocky.sh
624623
<https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh>`__
@@ -630,7 +629,9 @@ Full procedure
630629
631630
sudo dnf module disable "*"
632631
633-
- Migrate to NetworkManager:
632+
- Migrate to NetworkManager. This can be done using a manual process or with Kayobe.
633+
634+
The manual process is as follows:
634635

635636
- Ensure that all network interfaces are managed by Network Manager:
636637

@@ -659,6 +660,16 @@ Full procedure
659660
660661
nmcli con mod System\ brextmgmt.3003 ipv4.dns "10.41.4.4 10.41.4.5 10.41.4.6"
661662
663+
The following Kayobe process for migrating to NetworkManager has not yet been tested.
664+
665+
- Set ``interfaces_use_nmconnection: true`` as a host/group variable for the relevant hosts
666+
667+
- Run the appropriate host configure command. For example, for the seed hypervisor:
668+
669+
.. code:: console
670+
671+
kayobe seed hypervisor host configure -t network -kt none
672+
662673
- Make sure there are no funky udev rules left in
663674
``/etc/udev/rules.d/70-persistent-net.rules`` (e.g. from cloud-init run on
664675
Rocky 9.1).
@@ -669,14 +680,36 @@ Full procedure
669680

670681
.. https://forums.rockylinux.org/t/dnf-warning-message-after-upgrade-from-rocky-8-to-rocky-9/8319/2
671682
672-
.. code:: console
683+
- Install Rocky Linux 9 repositories and GPG keys:
684+
685+
.. code:: console
686+
687+
sudo dnf install -y https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys-9.2-1.6.el9.noarch.rpm \
688+
https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-release-9.2-1.6.el9.noarch.rpm \
689+
https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-repos-9.2-1.6.el9.noarch.rpm
690+
691+
- Remove the RedHat logos package:
692+
693+
.. code:: console
694+
695+
sudo rm -rf /usr/share/redhat-logos
696+
697+
- Synchronise all packages with current versions
698+
699+
.. code:: console
700+
701+
sudo dnf --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync -y
702+
703+
- Rebuild RPB database:
704+
705+
.. code:: console
706+
707+
sudo rpm --rebuilddb
708+
709+
- Remove all EL8 packages:
710+
711+
.. code:: console
673712
674-
sudo dnf install -y https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys-9.2-1.6.el9.noarch.rpm \
675-
https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-release-9.2-1.6.el9.noarch.rpm \
676-
https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-repos-9.2-1.6.el9.noarch.rpm
677-
sudo rm -rf /usr/share/redhat-logos
678-
sudo dnf --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync -y
679-
sudo rpm --rebuilddb
680-
sudo rpm -qa | grep el8 | xargs dnf remove
713+
sudo rpm -qa | grep el8 | xargs dnf remove
681714
682715
- You will need to re-create *all* virtualenvs afterwards due to system Python version upgrade.

0 commit comments

Comments
 (0)