Information about resolving sysroot error

This commit is contained in:
Mark David 2022-01-29 17:58:56 -05:00 committed by GitHub
parent ac17f28e0e
commit f723b75516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,22 @@ package for the repo that you need):
rpm2cpio <(curl http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-gluster9-1.0-1.el8.noarch.rpm) | cpio -iD/ \*.repo rpm2cpio <(curl http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-gluster9-1.0-1.el8.noarch.rpm) | cpio -iD/ \*.repo
``` ```
#### Error "specified switch root path /sysroot does not seem to be an os tree"
This issue is caused by a GRUB issue after installation. Has been seen on Hetzner Dedicated Server upgrades from CentOS 8.4 -> Rocky 8.X
In order to resolve this issue, boot your dedicated server into a rescue system (for example, hetzner rescue system)
From here, you need to locate your partitions via `fdisk -l` and mount your `/` partition into a directory of your choosing (or `/mnt`).
Run the following commands (be sure to change the "mnt" to the directory of your mounted drives).
```
mount --rbind /dev /mnt/dev
mount --rbind /proc /mnt/proc
mount --rbind /sys /mnt/sys
chroot /mnt
grub2-mkconfig -o /boot/grub2/grub.cfg
```
### Latest Version ### Latest Version
The latest version of this script can be found [here](https://github.com/rocky-linux/rocky-tools/). The latest version of this script can be found [here](https://github.com/rocky-linux/rocky-tools/).