specified switch root path sysroot does not seem to be an OS tree
Hi There!
I'm a newbie Linux user, I've searched about this on Google before ask, the case is I don't make any idea what I should I search exactly on Google, because I never had any problem like this with Linux before... In advance, there are some files very important to my work, so I did not want to format it. My laptop has dual boot with Fedora 26 and Windows 10.
The case is, today I was installing and configuring KDump on my Fedora 26, and during the final step, I configured the crashkernel as 128M, and the system advised me to reboot, and I did it. But the system isn't load anymore, simply goes to emergency mode, as follow:
Generating "/run/initramfs/rdsosreport.txt"
Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs. You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot after mounting then and attach it to a bug report.
Well, I did it, and analizing the results , I found these lines with this:
"initrd-switch-root.service: Main Process exited, code=exited, status=1/FAILURE Failed to start Switch Root"
Before, I used this command to get more details:
systemctl status initrd-switch-root.service
Analizing the response, I found this lines:
Failed to switch root: Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing initrd-switch-root.service: Main Process exited, code=exited, status=1/FAILURE Failed to start Switch Root. initrd-switch-root.service: Unit entered failed state. initrd-switch-root.service: Triggering OnFailure= dependencies. initrd-switch-root.service: Failed with result 'exit-code'."
During my searches on Web, I found some people with this problems, but some responses indicating (maybe) a dracut problem, so I tryied to run this command:
dmesg|grep dracut
This return to me 5 lines with a lot of informations, but refer about:
dracut-cmdline dracut-pre-udev dracut-pre-pivot dracut-pre-pivot dracut-initqueue
All of these with "res=success" in the end of line
Someone could help me please? What problem could it be? I do not know where to start. Thanks in advance
Your problem seems related to the one here. Try the solution there, and report back.
It looks like you are not alone and your problem (even though on RHEL 7.5) has been reported on Bugzilla