Advertisement
Guest User

Untitled

a guest
Mar 14th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. /etc/default/grub, /etc/sysconfig/grub は同一ファイル(スタティックリンクされてる)
  2.  
  3. - VGA(物理コンソール)@ tty0
  4. - 物理シリアル@ ttyS0 ← systemd@gettyで待ち受けるようにする
  5. - 仮想シリアル@ ttyS1 ← grob,boot,systemd@getty
  6.  
  7. - GRUB_SERIAL_COMMAND
  8. boot menuはこっちの設定が使われるので何もしないと9600で出力されることになりもっさりする?)
  9. - GRUB_CMDLINE_LINUX
  10. カーネルに渡す設定
  11.  
  12. [root@dev0 ~]# cat /etc/sysconfig/grub
  13. GRUB_TIMEOUT=5
  14. GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
  15. GRUB_DEFAULT=saved
  16. GRUB_DISABLE_SUBMENU=true
  17. GRUB_TERMINAL="console serial"
  18. GRUB_SERIAL_COMMAND="serial --unit=1"
  19. GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap console=tty0 console=ttyS1,1152000"
  20. GRUB_DISABLE_RECOVERY="true"
  21.  
  22. #※従来のBIOSなので
  23. # grub2-mkconfig -o /boot/grub2/grub.cfg
  24.  
  25.  
  26. # ログインプロンプト
  27. systemctl enable serial-getty@ttyS0.service
  28. systemctl enable serial-getty@ttyS1.service
  29.  
  30. systemctl start serial-getty@ttyS0.service
  31. systemctl start serial-getty@ttyS1.service
  32.  
  33. systemctl status serial-getty@ttyS0.service
  34. systemctl status serial-getty@ttyS1.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement