업그레이드 후 재부팅 시 Fedora 37/38 커널 패닉 발생

업그레이드 후 재부팅 시 Fedora 37/38 커널 패닉 발생

Fedora를 업그레이드하고 새 커널이 포함될 때마다 후속 재부팅 시 항상 루트 장치를 찾을 수 없다는 커널 패닉이 발생합니다. 업데이트된 버전은 /boot/grub2/grub.cfgUUID 대신 장치 이름을 사용합니다(장치 이름은 정확함).

menuentry 'Fedora Linux (6.2.10-300.fc38.x86_64) 38 (Thirty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.2.10-300.fc38.x86_64-advanced-9aec70be-1bb8-47e9-9be4-be979d9f7ec1' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod btrfs
    set root='hd0,gpt3'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  9aec70be-1bb8-47e9-9be4-be979d9f7ec1
    else
      search --no-floppy --fs-uuid --set=root 9aec70be-1bb8-47e9-9be4-be979d9f7ec1
    fi
    echo    'Loading Linux 6.2.10-300.fc38.x86_64 ...'
    linux   /boot/vmlinuz-6.2.10-300.fc38.x86_64 root=/dev/sda3 ro  
    echo    'Loading initial ramdisk ...'
    initrd  /boot/initramfs-6.2.10-300.fc38.x86_64.img
}

UUID로 재설정하면 시스템이 예상대로 부팅됩니다.

menuentry 'Fedora Linux (6.2.10-300.fc38.x86_64) 38 (Thirty Eight)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.2.10-300.fc38.x86_64-advanced-9aec70be-1bb8-47e9-9be4-be979d9f7ec1' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod btrfs
    set root='hd0,gpt3'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  9aec70be-1bb8-47e9-9be4-be979d9f7ec1
    else
      search --no-floppy --fs-uuid --set=root 9aec70be-1bb8-47e9-9be4-be979d9f7ec1
    fi
    echo    'Loading Linux 6.2.10-300.fc38.x86_64 ...'
    linux   /boot/vmlinuz-6.2.10-300.fc38.x86_64 root=UUID=9aec70be-1bb8-47e9-9be4-be979d9f7ec1 ro  
    echo    'Loading initial ramdisk ...'
    initrd  /boot/initramfs-6.2.10-300.fc38.x86_64.img
}

이제 재부팅하기 전에 수동으로 실행하면 sudo grub2-mkconfig -o /boot/grub2/grub.cfgUUID를 사용하여 부팅 항목도 생성됩니다. 이것이 내 /etc/default/grub설정과 관련이 있을 수 있습니까?

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_CMDLINE_LINUX=""
#GRUB_TERMINAL_OUTPUT="console"

GRUB_GFXMODE=1920x1080x32
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY=true
GRUB_DISABLE_SUBMENU=y
GRUB_DISABLE_OS_PROBER=true
GRUB_ENABLE_BLSCFG=false
GRUB_THEME="/boot/grub2/themes/darkmatter/theme.txt"

Fedora는 업그레이드 프로세스 중에 grub을 어떻게 업데이트합니까?

관련 정보