Skip to content

Instantly share code, notes, and snippets.

@sudachi0114
Last active April 21, 2021 05:09
Show Gist options
  • Save sudachi0114/d334e6153291c094688c21d312f1ffc6 to your computer and use it in GitHub Desktop.
Save sudachi0114/d334e6153291c094688c21d312f1ffc6 to your computer and use it in GitHub Desktop.
#!/bin/bash
guestmount -d ${VM_NAME} -i /mnt
ln -s /mnt/lib/systemd/system/getty@.service /mnt/etc/systemd/system/getty.target.wants/getty@ttyS0.service
umount /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment