Menu

Feature request: make 'rEFInd - Booting OS' splash screen optional.

lx07
2020-03-30
2020-04-21
  • lx07

    lx07 - 2020-03-30

    I am using rEFInd to call Arch EFI stub loader and have recently installed Plymouth to tidy boot by displaying spinning circle instead of boot messages.

    The problem is the blue 'rEFInd - Booting OS' box with kernel parameters underneath is displayed before dracut launches plymouth and briefly again (blurred) on reaching desktop after boot completes. It then seems to hang around in the buffer as it is displayed once more when shutting down before Plymouth takes over to show its animations.

    I've tested this change to clear the screen (rather than display the splash screen) which seems to work OK and not affect booting Windows or macOS but perhaps there is a better way.

    diff --git a/refind/launch_efi.c b/refind/launch_efi.c
    index 609803f..4f6600d 100644
    --- a/refind/launch_efi.c
    +++ b/refind/launch_efi.c
    @@ -307,7 +307,10 @@ VOID StartLoader(LOADER_ENTRY *Entry, CHAR16 *SelectionName) {
             DoEnableAndLockVMX();
         }
    
    -    BeginExternalScreen(Entry->UseGraphicsMode, L"Booting OS");
    +    // clear to black background - copied from screen.c DrawScreenHeader
    +    EG_PIXEL DarkBackgroundPixel = { 0x0, 0x0, 0x0, 0 };
    +    egClearScreen(&DarkBackgroundPixel);
    +
         StoreLoaderName(SelectionName);
         StartEFIImage(Entry->Volume, Entry->LoaderPath, Entry->LoadOptions,
                       Basename(Entry->LoaderPath), Entry->OSType, !Entry->UseGraphicsMode, FALSE);
    

    I realize it isn't a big deal but is requested now and again so it would be nice if it could be made optional - see for example: https://askubuntu.com/questions/1161615/how-to-remove-refind-booting-os and https://www.reddit.com/r/linuxquestions/comments/3kyz3p/how_do_i_disable_the_refind_booting_os_splash/

     
  • demostanis

    demostanis - 2020-04-21

    It would be great.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.