هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
الهدف
Make the boot messages visible, change the menu timeout, and choose the default kernel.
قبل أن تبدأ
- Work on server1 as root. Take a VM snapshot first: mistakes in GRUB can stop the boot.
المهام
ضع علامة على المهمة عندما تنتهي منها. متصفحك فقط يتذكر ذلك.
- Show the kernel command line of the running kernel and the BLS entries in /boot.
- Remove the options
rhgbandquietfrom all kernels, so you see the boot messages. - Set the GRUB menu timeout to 10 seconds.
- Show the default kernel. If you have more than one kernel, make the older one the default, check it, and set the newest back.
- Reboot. In the GRUB menu, press
eand look at thelinuxline, then boot with Ctrl+X. Check the new command line.
تحقّق من عملك
تلميحات
اعرض التلميحات
grubby --update-kernel=ALL --remove-args="…".- Timeout:
/etc/default/grubandgrub2-mkconfig -o /boot/grub2/grub.cfg. grubby --set-default.
الحل
اعرض الحل
- Look at the current state.
- Remove rhgb and quiet.
grubby --update-kernel=ALL --remove-args="rhgb quiet" - Timeout of 10 seconds.
sed -i 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=10/' /etc/default/grub grub2-mkconfig -o /boot/grub2/grub.cfg - Default kernel.
- Reboot and check.
ملاحظاتي
لا توجد ملاحظات بعد.