Systemd automatic serial console detection #1442
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I encounter an issue last time when trying to migrate a VM from oVirt on POWER to PowerVM.
After booting the LPAR (PowerVM guest) on the ReaR recue image, I can't log into the console.
To solve that issue I had to connect via SSH and start
agetty
onhvc0
manually (or run again/etc/scripts/system-setup
).oVirt VM use VNC console (
tty1
) while PowerVM partition need to usehvc0
serial console.Because backup was done on oVirt VM,
hvc0
was not present, but this means that hvc0 was not automatically detected by ReaR =>serial console detection
is not working.(This was working in the past.... may be a possible regression ... #1398)
Anyway, I dig a bit this and realized that this problem only exist on
systemd
based OS (RHEL7 or SLES12); and discover that/usr/lib/systemd/system-generators/systemd-getty-generator
was responsible to detect console and serial console to activate them automatically.I propose then to add this file to
COPY_AS_IS
variable when running on asystemd
OS.After doing that, my
hvc0
console was automatically detected and activated withagetty
when booting in recovery.I also propose some cleanup by removing unnecessary KERNEL_CMDLINE option (this could may be satisfy #1420)
tested successfully with:
The next question is:
/usr/lib/systemd/system-generators/
, we may be need to check if there is some other script we should add.