Skip to content

Commit

Permalink
osbuilder: fix ubuntu initrd /dev/ttyS0 hang
Browse files Browse the repository at this point in the history
Guest log is showing a hang on systemd getty start.
Adding symlink for /dev/ttyS0 resolves issue.

Fixes: kata-containers#4932

Signed-Off-By: Ryan Savino <[email protected]>
  • Loading branch information
ryansavino committed Aug 26, 2022
1 parent cc5f91d commit dc32c46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/osbuilder/rootfs-builder/rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]" "${ROOTFS_DIR}/etc/systemd/system/getty.target.wants/[email protected]"
;;
*)
chrony_conf_file="${ROOTFS_DIR}/etc/chrony.conf"
chrony_systemd_service="${ROOTFS_DIR}/usr/lib/systemd/system/chronyd.service"
Expand Down

0 comments on commit dc32c46

Please sign in to comment.