⚡ ~/naveed Interview Prep
⚡ Portfolio Home ✍️ Engineering Blog Deep Dives 🎯 Interview Hub 998+ Scenarios ☸️ Kubernetes Mastery Hub 24 Modules 🎮 DevOps Arcade & Quizzes Subnet Blitz ⚡ 🗺️ DevOps Roadmaps PDFs & Guides 🤖 Morpheus Analysis AI Quant ↗ 🛠️ Developer Tools Utilities 🧪 Labs & Experiments 📄 Interactive CV & Certs 🔗 All Links & Socials ⚡ Join The Dispatch (Weekly SRE Newsletter) →
Junior / Associate DevOps [L1] Linux Allow user 'deploy' to restart nginx and read syslog only Core Fundamentals [L1]

Q: After a kernel upgrade, the server boots into the old kernel instead of the new one. How do you fix this?

The GRUB bootloader controls which kernel is loaded at boot. After a kernel upgrade, the default boot entry may still point to the old ke...

#Linux #Allow user 'deploy' to restart nginx and read syslog only #L1 #SRE #Systems #Troubleshooting
🎙️ Candidate Opening & Architectural Context
""In an interview, I explain my systematic Linux troubleshooting methodology using Brendan Gregg's USE method. The interviewer is testing: GRUB bootloader configuration, default kernel selection.. I structure my answer around systematic triage first, root cause analysis second, and permanent remediation third.""
Advertisement

🛠️ Production Runbook & Step-by-Step Resolution

1️⃣

Initial Diagnostics & Root Cause Analysis

The GRUB bootloader controls which kernel is loaded at boot. After a kernel upgrade, the default boot entry may still point to the old kernel.

  • List installed kernels:
  • Set the new kernel as default:
  • Regenerate GRUB config (if needed):
2️⃣

Remediation & Permanent Safeguards

To fix: Or by menu index: After reboot, confirm with uname -r that the new kernel is running.

grubby --default-kernel    # Shows current default
   awk -F\' '/menuentry/ {print $2}' /boot/grub2/grub.cfg    # Lists all entries
  • Verify and reboot:
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: List installed kernels:."
⚡ 60-Second Elevator Pitch Talking Points
  • List installed kernels:
  • Set the new kernel as default:
  • Regenerate GRUB config (if needed):
Advertisement
Want more Linux scenarios?
Explore our complete collection of scenario-based Linux interview runbooks.
Browse All Linux Questions →

📚 Related Production Scenarios in Linux