User Tools

Site Tools


linux:boot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:boot [2017/01/18 17:24]
frank created
linux:boot [2018/04/20 15:36] (current)
frank
Line 1: Line 1:
 +====== Boot ======
 +
 === Grub === === Grub ===
  
-  * Grub 2 - Setting default entry +  * Grub 2 - Setting default entry <​code ​bash>
-    ​<​code>​+
 Open /​etc/​default/​grub and ensure this line exists: Open /​etc/​default/​grub and ensure this line exists:
 GRUB_DEFAULT=saved GRUB_DEFAULT=saved
Line 19: Line 20:
 </​code>​ </​code>​
  
-=== Systemd === +grubby
-  * Enable rc-local in OL7+
 <​code>​ <​code>​
 +# grubby --default-kernel
 +# grubby --set-default=/​boot/​vmlinuz-3.10.0-514.el7.x86_64 ​
 +</​code>​
 +=== Systemd ===
 +  * Enable rc-local in OL7<code bash>
 cat >> /​usr/​lib/​systemd/​system/​rc-local.service <<EOF cat >> /​usr/​lib/​systemd/​system/​rc-local.service <<EOF
  
Line 35: Line 40:
 </​code>​ </​code>​
  
 +=== Initramfs ===
 +<​code>​
 +# extract initramfs in RHEL7/​Centos7
 +/​usr/​lib/​dracut/​skipcpio initramfs-3.10.0-229.el7.x86_64.img | zcat | cpio -idv
 +</​code>​
 +
 +=== Debug ===
 +<​code>​
 +kernel cmd line: debug initcall_debug systemd.log_target=console systemd.journald.forward_to_console=1
 +serial console in grub:
 +serial --unit=0 --speed=115200
 +terminal --timeout=10 console serial
 +kernel cmd line: console=tty1 console=ttyS0,​115200n8
 +</​code>​
linux/boot.1484789078.txt.gz · Last modified: 2017/01/18 17:24 by frank