Boot Process Flashcards
Boot process
1) boot device
2) boot loader (grub2)
3) kernel / initramfs -> systemd -> initrd.target mount to /sysroot -> switch
4) systemd -> default target
What is RHEL boot loader?
grub2: Grand Unified Boot Loader
What is a systemd target?
A set of related systemd units
Determine default systemd target
systemctl get-default
Find all targets available on your system
systemctl list-units -t target
What are dependecies of a given target
systemctl list-dependencies graphical.target
what does it mean to isolate a target
Make that target the top most target
isolate target multi-user.target
systemctl isolate multi-user.target
set a target as default
systemctl set-default multi-user.target
How do I access the grub config?
Type letter e during boot process
How do I look at the kernel params of my last boot
cat /proc/cmdline
Inside my grub config, how do I set a systemd target?
at the end of the line starting with linux, add: systemd.unit=graphical.target
How do you exit the grub config so that it considers your changes
Ctrl X
In maintenance mode, how do you exit and continue the boot process?
Ctrl D
What is the maintenance mode systemd target
rescue.target