Skip to content

Commit bc8529e

Browse files
committed
initrd/bin/kexec-iso-init.sh: broaden display driver warning text
Replace technical jargon (DRM/KMS, i915, nouveau, etc.) with plain language: 'ISO has no display driver - screen may be blank after boot' The warning is for minimal distributions like CorePlus/TinyCore that ship no KMS drivers for any GPU hardware.
1 parent c95d468 commit bc8529e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

initrd/bin/kexec-iso-init.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,22 +365,23 @@ if [ -s "$fs_compat_file" ] && ! grep -qF '[OK]' "$fs_compat_file"; then
365365
fi
366366
fi
367367

368-
# If no initrd confirmed a DRM/KMS display driver, warn that the
369-
# display may be blank after kexec. Kernel boots but has no driver.
368+
# If no initrd confirmed a display driver (i915, nouveau, etc.), warn
369+
# that the screen may be blank after kexec — the kernel boots but has
370+
# no way to show output on the display without a KMS or fbdev driver.
370371
fb_compat_file="/tmp/kexec_fb_compat.txt"
371372
if [ -s "$fb_compat_file" ] && ! grep -qF '[OK]' "$fb_compat_file"; then
372373
if [ -x /bin/whiptail ]; then
373374
if ! whiptail_warning --title 'Display Driver Warning' --yesno \
374-
"No Verified Display Driver\n\nNone of this ISO's initramfs images contain\na known DRM/KMS driver (i915, nouveau, amdgpu,\nbochs, etc.).\n\nThe display may be blank after kexec even if\nthe kernel boots successfully.\n\nCorePlus/TinyCore and similar minimal distributions\nare known to lack display drivers.\n\nProceed anyway?" \
375+
"Unverified Display Support\n\nThe ISO's initramfs does not contain a\ndisplay driver for your hardware.\n\nThe screen may be blank after boot even\nif the operating system starts normally.\n\nThis is expected for minimal distributions\nsuch as CorePlus/TinyCore.\n\nProceed anyway?" \
375376
0 80; then
376-
DIE "No display driver - boot cancelled by user"
377+
DIE "Boot cancelled by user"
377378
fi
378379
else
379-
WARN "No DRM/KMS display driver found - display may be blank after kexec"
380-
WARN "CorePlus/TinyCore and similar minimal distributions are known to lack display drivers"
380+
WARN "ISO has no display driver - screen may be blank after boot"
381+
WARN "This is expected for minimal distributions such as CorePlus/TinyCore"
381382
INPUT "Proceed anyway? (y/N):" -n 1 response
382383
if [ "$response" != "y" ] && [ "$response" != "Y" ]; then
383-
DIE "No display driver - boot cancelled by user"
384+
DIE "Boot cancelled by user"
384385
fi
385386
fi
386387
fi

0 commit comments

Comments
 (0)