The config is /etc/default/grub (don't edit the generated grub.cfg directly):
sudo nano /etc/default/grub
sudo update-grub
sudo grub-install /dev/sda
Common kernel parameters in GRUB_CMDLINE_LINUX: quiet splash (quiet boot),
remove them to see boot messages; nomodeset (video issues);
systemd.unit=rescue.target; fsck.mode=force (force a filesystem check). In
the GRUB menu, the e key edits the kernel line for one boot (e.g. to add
single or init=/bin/bash).
systemctl get-default
sudo systemctl set-default multi-user.target
systemctl isolate rescue.target
systemctl isolate emergency.target
systemd-analyze
systemd-analyze blame
systemd-analyze critical-chain
systemd-analyze plot > boot.svg
| Target |
What it is |
multi-user.target |
a server with no graphics (normal) |
graphical.target |
+ GUI |
rescue.target |
single-user, root mounted, minimal services |
emergency.target |
only root (ro), almost nothing |
More on targets, rescue and emergency — boot-targets; the boot time
breakdown — systemd-analyze.