mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-03 22:17:35 +00:00
osbuilder: fix ubuntu initrd /dev/ttyS0 hang
Guest log is showing a hang on systemd getty start. Adding symlink for /dev/ttyS0 resolves issue. Fixes: #4932 Signed-Off-By: Ryan Savino <ryan.savino@amd.com>
This commit is contained in:
parent
cc5f91dac7
commit
dc32c4622f
@ -520,6 +520,11 @@ EOF
|
||||
chrony_conf_file="${ROOTFS_DIR}/etc/chrony/chrony.conf"
|
||||
chrony_systemd_service="${ROOTFS_DIR}/lib/systemd/system/chrony.service"
|
||||
;;
|
||||
"ubuntu")
|
||||
# Fix for #4932 - Boot hang at: "A start job is running for /dev/ttyS0"
|
||||
mkdir -p "${ROOTFS_DIR}/etc/systemd/system/getty.target.wants"
|
||||
ln -sf "/lib/systemd/system/getty@.service" "${ROOTFS_DIR}/etc/systemd/system/getty.target.wants/getty@ttyS0.service"
|
||||
;;
|
||||
*)
|
||||
chrony_conf_file="${ROOTFS_DIR}/etc/chrony.conf"
|
||||
chrony_systemd_service="${ROOTFS_DIR}/usr/lib/systemd/system/chronyd.service"
|
||||
|
Loading…
Reference in New Issue
Block a user