Live data from Hacker News

A Grub theme in the style of Minecraft

github.com

51–60 of 76 posts

Re: A Grub theme in the style of Minecraft

#51

Maybe a bit off topic, but does anyone know about themes or GUIs for LUKS password entry? The command line version has pretty unintuitive behaviour for family members which are used to modern GUIs.

Not something you could script up using https://help.gnome.org/users/zenity/3.32/password.html.en or similar?

That would require a full GTK installation in initramfs, which would be a bit heavy.

Re: A Grub theme in the style of Minecraft

#54
Friendly reminder that grub-mkconfig generates unnecessarily complicated grub.cfg files and that they can be as simple as this (which allows me to boot custom kernel, default kernel with initrd, and Windows):

    default=0
    timeout=3

    menuentry 'Custom Kernel' {
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt6'
        echo    'Loading Linux 5.10.172zeus ...'
        linux   /boot/vmlinuz-5.10.172zeus ro quiet rootfstype=ext4 root=/dev/sda6
    }

    menuentry 'Devuan GNU/Linux, with Linux 5.10.0-21-amd64' {
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt6'
        echo    'Loading Linux 5.10.0-21-amd64 ...'
        linux   /boot/vmlinuz-5.10.0-21-amd64 root=UUID=a788be97-7ba6-4c15-ad6e-e91d38604c39 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-5.10.0-21-amd64
    }

    menuentry 'Windows Boot Manager' {
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  4828-3FFF
        else
          search --no-floppy --fs-uuid --set=root 4828-3FFF
        fi
        chainloader /efi/Microsoft/Boot/bootmgfw.efi
    }

Re: A Grub theme in the style of Minecraft

#55
post #54

Friendly reminder that grub-mkconfig generates unnecessarily complicated grub.cfg files and that they can be as simple as this (which allows me to boot custom kernel, default kernel with initrd, and Windows): default=0 timeout=3 menuentry 'Custom Kernel' { insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 set root='hd0,gpt6' echo 'Loading Linux 5.10.172zeus ...…

Aside from the complexity of the autogenerated configuration file, is there any benefit to maintaining it yourself? I recall when I used to have a Windows partition, the 'update-grub' script included with Debian would find all kernels (including custom ones) and other OSes as well.

I'd much rather have to maintain nothing rather than something.

Re: A Grub theme in the style of Minecraft

#58
post #44

Naturally, the project couldn't miss having a "bug" report which asks to move the code to a different Git host . https://github.com/Lxtharia/minegrub-theme/issues/18 I get the ideals are on point, but it doesn't look like the place to campaign about it. Hopefully the author doesn't have any anxiety or issue about politely saying " The issue description doesn't look to me like a bug in my code. " and closing it.

I'm reminded of the time when some kid wrote a script to crawl GitHub and create issues[1] about using inclusive language... except it was really dumb, for example: https://github.com/trekhleb/javascript-algorithms/pull/875/f...

[1] E.g.: https://github.com/EbookFoundation/free-programming-books/pu...

Re: A Grub theme in the style of Minecraft

#59
post #55
post #54

Friendly reminder that grub-mkconfig generates unnecessarily complicated grub.cfg files and that they can be as simple as this (which allows me to boot custom kernel, default kernel with initrd, and Windows): default=0 timeout=3 menuentry 'Custom Kernel' { insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 set root='hd0,gpt6' echo 'Loading Linux 5.10.172zeus ...…

Aside from the complexity of the autogenerated configuration file, is there any benefit to maintaining it yourself? I recall when I used to have a Windows partition, the 'update-grub' script included with Debian would find all kernels (including custom ones) and other OSes as well. I'd much rather have to maintain nothing rather than something.

Ditto, I'm not really worried about the complexity of my GRUB config - just that it works. It tends to if I don't go poking/looking directly at it.

Leaving them to manage the config has worked a-okay for me, even with a cmdline that would cause shudders in most. grubby has been a frustrating introduction

If I were to invest any effort in my bootloader at all, it would be to get closer to the 'metal' through systemd-boot/efibootmgr

TLDR: looking at the GRUB config invokes a "why am I still doing this" emotion, I'd rather not

Re: A Grub theme in the style of Minecraft

#60

Maybe a bit off topic, but does anyone know about themes or GUIs for LUKS password entry? The command line version has pretty unintuitive behaviour for family members which are used to modern GUIs.

Yeah go echo a below comment, unless something is broken Ubuntu and Fedora both do this already.
Post reply on HN