You are not logged in.

#1 2014-04-19 14:31:23

w_bowman
Member
From: Canada
Registered: 2013-01-21
Posts: 26
Website

[Solved] rEFInd not showing theme

I have been trying to get a theme for rEFInd for awhile now. I chose Minimalistic theme, and went by following the instructions in the readme on the gitpage. This did not work for me, and so in frustration, I gave up. I recently came back to the problem, thinking time might have made me wiser, and I am having the exact same issues. I then contacted the developer of the theme, via this issue on the github page.

After we talked some things through, he advised me to ask here. All of my configs are on the issue page, and all the things we have done to try and fix it are there as well. Anyone with any ideas? At this point, it's less about how rEFInd looks, but why it doesn't work after all the things we have tried.

Last edited by w_bowman (2014-04-25 15:07:12)

Offline

#2 2014-04-19 21:30:10

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [Solved] rEFInd not showing theme

Here is my rEFInd setup which all works correctly:

 
/boot
    initramfs-linux.img
    initramfs-linux-fallback.img
    refind_linux.conf
    vmlinuz-linux
    /efi
        /EFI
            /refind
                refind_x...efi
                refind.conf - this is the default conf file with only and include line for my overrides
                local.conf - this is my overrides config file
                /faenza - this is my theme directory and holds all custom icons and images
                /fonts
                /icons
            /tools
                /drivers - this contains /usr/share/refind/drivers_X..

All paths are relative so in refind.conf I have the line:

include local.conf

My local.conf just contains the defaults to be overridden:

# These options override the corresponding options in the default refind.conf file.
# Ensure the default refind.conf last line is set to "include local.conf"

timeout 10
icons_dir faenza
banner faenza/background.png
selection_big   faenza/selection_big.png
selection_small faenza/selection_sml.png
resolution 1920 1080
use_graphics_for linux
showtools reboot, shutdown
#scan_delay 1
default_selection vmlinuz

Offline

#3 2014-04-20 01:53:04

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: [Solved] rEFInd not showing theme

I believe you're suffering from confusion over the difference between paths as seen in Linux and paths as seen in EFI.

EFI uses a DOS/Windows-like view of the disk in which each partition is accessed via a filesystem number ("fs0:", "fs1:", and so on). EFI boot loaders reside in subdirectories of the EFI System Partition's (ESP's) "EFI" directory, which is typically the first filesystem ("fs0:") -- thus, rEFInd is likely to be in fs0:\EFI\refind. Most EFI programs, including rEFInd, enable you to omit the filesystem number when referring to files on the same partition. In some contexts, rEFInd also requires you to omit the directory, and assumes that the file reference is relative to rEFInd's installation directory. This is true of the "include" directive, for instance.

Linux uses a unified directory tree in which all files are in one directory structure, starting from a root ("/") directory, including files in other partitions. The ESP is typically mounted at /boot or /boot/efi. Note that the Linux mount point for the ESP is not just irrelevant to the EFI; it's something that the EFI doesn't even know! Thus, your "include" directive:

include /boot/efi/EFI/refind/minimal-theme/theme.conf

...is wrong on two scores:

  • It includes the Linux-only mount point for the ESP ("/boot/efi")

  • It includes the path on the ESP to the rEFInd directory ("/EFI/refind")

The following should work:

include minimal-theme/theme.conf

This is also what Evan Purkhiser, the theme's author, recommended. If that doesn't work, chances are it's something like a typo (in the config file or in the actual subdirectory name), or perhaps you renamed things or even have multiple versions of rEFInd installed and you changed the configuration for the wrong one.

Another thing you could try is, instead of loading the theme's configuration file, look at it and make changes to each of your main configuration file's options, such as the banner, selection_big, selection_small, and so on -- much like what Padfoot has shown, but for the theme you've chosen.

Offline

#4 2014-04-21 13:36:43

w_bowman
Member
From: Canada
Registered: 2013-01-21
Posts: 26
Website

Re: [Solved] rEFInd not showing theme

I have now tried both suggestions. To srs5694, I originally had

include minimal-theme/theme.conf

but it didn't work, so I thought maybe if I switched it, it may have some sort of effect. It was my way of troubleshooting, which also didn't work. I also tried Padfoot's suggestion, and that also did not work for me.
My setup looks like this.

/boot
└── efi
    └── EFI
        ├── arch
        ├── ASUS
        ├── Microsoft
        │   └── Boot
        │       ├── cs-CZ
        │       ├── da-DK
        │       ├── de-DE
        │       ├── el-GR
        │       ├── en-US
        │       ├── es-ES
        │       ├── fi-FI
        │       ├── Fonts
        │       ├── fr-FR
        │       ├── hu-HU
        │       ├── it-IT
        │       ├── ja-JP
        │       ├── ko-KR
        │       ├── nb-NO
        │       ├── nl-NL
        │       ├── pl-PL
        │       ├── pt-BR
        │       ├── pt-PT
        │       ├── ru-RU
        │       ├── sv-SE
        │       ├── tr-TR
        │       ├── zh-CN
        │       ├── zh-HK
        │       └── zh-TW
        ├── refind
        │   ├── drivers
        │   │   └── drivers_x64
        │   ├── icons
        │   │   └── icons
        │   └── minimal-theme
        │       └── icons
        └── tools
            └── drivers
                └── drivers_x64

In refind.conf I have

include local.conf

at the bottom of the file. This is not the only thing I have in here, but I assume everything gets overwritten by things in local.conf. To make sure, I commented out the items I wanted to be ovrewritten in refind.conf

In local.conf :

icons_dir minimal-theme/icons
banner minimal-theme/background.png
selection_big minimal-theme/selection_big.bmp
selection_small minimal-theme/selection_small.bmp
use_graphics_for linux,windows,osx
showtools shutdown

Offline

#5 2014-04-22 06:57:29

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [Solved] rEFInd not showing theme

w_bowman wrote:

I have now tried both suggestions. To srs5694, I originally had

include minimal-theme/theme.conf

but it didn't work, so I thought maybe if I switched it, it may have some sort of effect. It was my way of troubleshooting, which also didn't work. I also tried Padfoot's suggestion, and that also did not work for me.
My setup looks like this.

/boot
└── efi
    └── EFI
        ├── arch
        ├── ASUS
        ├── Microsoft
        │   └── Boot
        │       ├── cs-CZ
        │       ├── da-DK
        │       ├── de-DE
        │       ├── el-GR
        │       ├── en-US
        │       ├── es-ES
        │       ├── fi-FI
        │       ├── Fonts
        │       ├── fr-FR
        │       ├── hu-HU
        │       ├── it-IT
        │       ├── ja-JP
        │       ├── ko-KR
        │       ├── nb-NO
        │       ├── nl-NL
        │       ├── pl-PL
        │       ├── pt-BR
        │       ├── pt-PT
        │       ├── ru-RU
        │       ├── sv-SE
        │       ├── tr-TR
        │       ├── zh-CN
        │       ├── zh-HK
        │       └── zh-TW
        ├── refind
        │   ├── drivers
        │   │   └── drivers_x64
        │   ├── icons
        │   │   └── icons
        │   └── minimal-theme
        │       └── icons
        └── tools
            └── drivers
                └── drivers_x64

In refind.conf I have

include local.conf

at the bottom of the file. This is not the only thing I have in here, but I assume everything gets overwritten by things in local.conf. To make sure, I commented out the items I wanted to be ovrewritten in refind.conf

In local.conf :

icons_dir minimal-theme/icons
banner minimal-theme/background.png
selection_big minimal-theme/selection_big.bmp
selection_small minimal-theme/selection_small.bmp
use_graphics_for linux,windows,osx
showtools shutdown

Where in that heirarchy are your vmlinuz-linux, initramfs-linux.img, initramfs-linux-fallback.img and refind_linux.conf, refind_x64.efi, refind.conf and local.conf files and what is the contents of your refind_linux.conf file?

Last edited by Padfoot (2014-04-22 06:59:01)

Offline

#6 2014-04-22 13:00:16

w_bowman
Member
From: Canada
Registered: 2013-01-21
Posts: 26
Website

Re: [Solved] rEFInd not showing theme

The whole hierarchy is

/boot
├── initramfs-linux.img
├── vmlinuz-linux
├── initramfs-linux-fallback.img
├── refind_linux.conf
└── efi
    └── EFI
        ├── Microsoft
        │   └── Boot
        ├── tools
        │   └── drivers
        │       └── drivers_x64
        │           ├── ext2_x64.efi
        │           ├── hfs_x64.efi
        │           ├── reiserfs_x64.efi
        │           ├── iso9660_x64.efi
        │           └── ext4_x64.efi
        ├── ASUS
        │   ├── N56VM.BIN
        │   └── N56VZ.BIN
        ├── arch
        │   ├── vmlinuz-arch.efi
        │   ├── initramfs-arch.img
        │   ├── initramfs-arch-fallback.img
        │   └── refind_linux.conf
        └── refind
            ├── refindx64.efi
            ├── icons
            │   ├── arrow_left.icns
            │   ├── tool_shell.icns
            │   ├── func_about.icns
            │   ├── os_unknown.icns
            │   ├── os_ubuntu.icns
            │   ├── os_mac.icns
            │   ├── os_arch.icns
            │   ├── vol_internal.icns
            │   ├── os_debian.icns
            │   ├── os_freebsd.icns
            │   ├── os_legacy.icns
            │   ├── boot_linux.icns
            │   ├── os_linuxmint.icns
            │   ├── os_centos.icns
            │   ├── os_netbsd.icns
            │   ├── os_win.icns
            │   ├── arrow_right.icns
            │   ├── vol_external.icns
            │   ├── tool_mok_tool.icns
            │   ├── os_mandriva.icns
            │   ├── os_hwtest.icns
            │   ├── vol_optical.icns
            │   ├── os_gentoo.icns
            │   ├── os_redhat.icns
            │   ├── os_openbsd.icns
            │   ├── os_freedos.icns
            │   ├── os_suse.icns
            │   ├── os_fedora.icns
            │   ├── boot_win.icns
            │   ├── os_slackware.icns
            │   ├── tool_part.icns
            │   ├── func_shutdown.icns
            │   ├── os_refit.icns
            │   ├── os_gummiboot.icns
            │   ├── func_exit.icns
            │   ├── os_ecomstation.icns
            │   ├── tool_apple_rescue.icns
            │   ├── func_reset.icns
            │   ├── os_linux.icns
            │   ├── icons
            │   │   ├── os_freedos.icns
            │   │   ├── os_win.icns
            │   │   ├── os_ecomstation.icns
            │   │   ├── boot_win.icns
            │   │   ├── tool_part.icns
            │   │   ├── vol_optical.icns
            │   │   ├── os_mac.icns
            │   │   ├── os_centos.icns
            │   │   ├── tool_mok_tool.icns
            │   │   ├── func_exit.icns
            │   │   ├── os_freebsd.icns
            │   │   ├── vol_external.icns
            │   │   ├── func_shutdown.icns
            │   │   ├── os_arch.icns
            │   │   ├── boot_linux.icns
            │   │   ├── os_legacy.icns
            │   │   ├── os_linux.icns
            │   │   ├── os_mandriva.icns
            │   │   ├── os_gentoo.icns
            │   │   ├── os_suse.icns
            │   │   ├── os_fedora.icns
            │   │   ├── os_refit.icns
            │   │   ├── os_gummiboot.icns
            │   │   ├── arrow_left.icns
            │   │   ├── os_ubuntu.icns
            │   │   ├── os_slackware.icns
            │   │   ├── os_netbsd.icns
            │   │   ├── os_linuxmint.icns
            │   │   ├── os_redhat.icns
            │   │   ├── os_openbsd.icns
            │   │   ├── func_reset.icns
            │   │   ├── os_debian.icns
            │   │   ├── vol_internal.icns
            │   │   ├── arrow_right.icns
            │   │   ├── tool_apple_rescue.icns
            │   │   ├── func_about.icns
            │   │   ├── os_hwtest.icns
            │   │   ├── os_unknown.icns
            │   │   ├── tool_shell.icns
            │   │   ├── os_fatdog.icns
            │   │   ├── os_refind.icns
            │   │   ├── os_haiku.icns
            │   │   ├── os_chrome.icns
            │   │   ├── func_firmware.icns
            │   │   ├── os_altlinux.icns
            │   │   ├── transparent.icns
            │   │   ├── os_lubuntu.icns
            │   │   ├── os_kubuntu.icns
            │   │   ├── os_opensuse.icns
            │   │   ├── os_funtoo.icns
            │   │   ├── tool_memtest.icns
            │   │   ├── os_manjaro.icns
            │   │   └── tool_windows_rescue.icns
            │   ├── os_gentoo.png
            │   ├── os_opensuse.png
            │   ├── os_arch.png
            │   ├── func_shutdown.png
            │   ├── os_ubuntu.png
            │   ├── os_sabayon.png
            │   ├── os_slackware.png
            │   ├── os_pclinuxos.png
            │   ├── os_freebsd.png
            │   ├── os_mac.png
            │   ├── os_mandriva.png
            │   ├── os_windows.png
            │   ├── os_fedora.png
            │   ├── os_debian.png
            │   └── os_linuxmint.png
            ├── refind.conf
            ├── refind_x64.efi
            ├── drivers
            │   ├── ext2_x64.efi
            │   ├── hfs_x64.efi
            │   ├── reiserfs_x64.efi
            │   ├── iso9660_x64.efi
            │   ├── ext4_x64.efi
            │   └── drivers_x64
            │       ├── ext2_x64.efi
            │       ├── hfs_x64.efi
            │       ├── reiserfs_x64.efi
            │       ├── iso9660_x64.efi
            │       ├── ext4_x64.efi
            │       └── btrfs_x64.efi
            ├── local.conf
            └── minimal-theme
                ├── .git
                ├── background.png
                ├── icons
                │   ├── func_shutdown.png
                │   ├── os_arch.png
                │   ├── os_debian.png
                │   ├── os_elementary.png
                │   ├── os_fedora.png
                │   ├── os_freebsd.png
                │   ├── os_gentoo.png
                │   ├── os_linux.png
                │   ├── os_linuxmint.png
                │   ├── os_mac.png
                │   ├── os_mandriva.png
                │   ├── os_opensuse.png
                │   ├── os_pclinuxos.png
                │   ├── os_sabayon.png
                │   ├── os_slackware.png
                │   ├── os_ubuntu.png
                │   ├── os_win.png
                │   ├── vol_external.icns
                │   ├── vol_internal.icns
                │   ├── vol_optical.icns
                │   ├── func_exit.png
                │   ├── func_reset.png
                │   └── os_kali.png
                ├── readme.md
                ├── selection_big.png
                ├── selection_small.png
                └── theme.conf

(I omitted a few things to make this look better, mostly in the Microscoft directory, but didn't want to omit anything otherwise just in case any of this is the problem.)

and this is my refind_linux.conf

## This file should be present in the same directory as the EFISTUB kernel and initramfs files
## More info at http://www.rodsbooks.com/refind/linux.html , http://www.rodsbooks.com/efi-bootloaders/efistub.html

"Boot with defaults"    "root=PARTUUID=XXXXXXXX rootfstype=XXXX ro"
"Boot to terminal"      "root=PARTUUID=XXXXXXXX rootfstype=XXXX ro systemd.unit=multi-user.target"

Offline

#7 2014-04-23 07:54:20

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [Solved] rEFInd not showing theme

Ok,

In your local.conf add the following:

default_selection vmlinuz

Make sure you have the following in your refind.conf:

include local.conf

Paths to your theme are relative to refind_x64.efi so any theme settings in refind.conf that you want to change, add them to local.conf. The local.conf you posted earlier is correct for your current paths.

The directory /boot/efi/EFI/arch and it's contents are superfluous and can be deleted.

FInally, you need to set up your menu entries for Arch in refind_linux.conf similar to the following (of course, modify/add the kernel parameters, partition ID and file system type to what you require):

"Arch Desktop"		"root=PARTUUID=<<YOUR PARTUUID HERE>> rootfstype=<<FS TYPE>> initrd=/boot/initramfs-linux.img ro quiet systemd.unit=graphical.target"
"Arch Console"		"root=PARTUUID=<<YOUR PARTUUID HERE>> rootfstype=<<FS TYPE>> initrd=/boot/initramfs-linux.img ro systemd.unit=multi-user.target"
"Arch Fallback"		"root=PARTUUID=<<YOUR PARTUUID HERE>> rootfstype=<<FS TYPE>> initrd=/boot/initramfs-linux-fallback.img ro systemd.unit=rescue.target"

Try that and see how you go.

Cheers.

Last edited by Padfoot (2014-04-23 07:55:12)

Offline

#8 2014-04-23 13:26:24

w_bowman
Member
From: Canada
Registered: 2013-01-21
Posts: 26
Website

Re: [Solved] rEFInd not showing theme

Still nothing for me. Here is local.conf

#
default_selection vmlinuz
icons_dir minimal-theme/icons
banner minimal-theme/background.png
selection_big minimal-theme/selection_big.bmp
selection_small minimal-theme/selection_small.bmp
use_graphics_for linux,windows,osx
showtools shutdown

Here is refind_linux.conf:

# This file should be present in the same directory as the EFISTUB kernel and initramfs files
## More info at http://www.rodsbooks.com/refind/linux.html , http://www.rodsbooks.com/efi-bootloaders/efistub.html

#"Boot with defaults"    "root=PARTUUID=XXXXXXXX rootfstype=XXXX ro"
#"Boot to terminal"      "root=PARTUUID=XXXXXXXX rootfstype=XXXX ro systemd.unit=multi-user.target"

"Arch Desktop"      "root=PARTUUID=4af2ba3c-fcdc-4552-9048-10fad90c079d rootfstype=ext4 initrd=/boot/initramfs-linux.img ro systemd.unit=graphical.target"
"Arch Console"      "root=PARTUUID=4af2ba3c-fcdc-4552-9048-10fad90c079d rootfstype=ext4 initrd=/boot/initramfs-linux.img ro systemd.unit=multi-user.target"
"Arch Fallback"      "root=PARTUUID=4af2ba3c-fcdc-4552-9048-10fad90c079d rootfstype=ext4 initrd=/boot/initramfs-linux-fallback.img ro systemd.unit=rescue.target"

#"Arch Desktop"      "root=PARTUUID=888f9ea7-33b6-4cdc-b1e7-b91656ba023e rootfstype=vfat initrd=/boot/initramfs-linux.img ro systemd.unit=graphical.target"
#"Arch Console"      "root=PARTUUID=888f9ea7-33b6-4cdc-b1e7-b91656ba023e rootfstype=vfat initrd=/boot/initramfs-linux.img ro systemd.unit=multi-user.target"
#"Arch Fallback"      "root=PARTUUID=888f9ea7-33b6-4cdc-b1e7-b91656ba023e rootfstype=vfat initrd=/boot/initramfs-linux-fallback.img ro systemd.unit=rescue.target"

I tried  both PARTUUID since my boot is on sda1 and my / is on sda2. To show you, here is my information

[wesley@ArchLinux ~]$ blkid
/dev/sda1: LABEL="SYSTEM" UUID="1292-1C73" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="888f9ea7-33b6-4cdc-b1e7-b91656ba023e" 
/dev/sda2: UUID="6b56f6f5-189f-45b9-9977-69423c3dfe01" TYPE="ext4" PARTUUID="4af2ba3c-fcdc-4552-9048-10fad90c079d" 
/dev/sda3: LABEL="OS" UUID="8AF24081F240738B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="14bdf3a8-f1b9-44b3-95fa-8ba05e78e004" 
/dev/sda4: LABEL="Recovery" UUID="AC7A43BA7A438056" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="857e758a-e795-4012-8918-4f9850835f22" 

Offline

#9 2014-04-24 07:15:57

Padfoot
Member
Registered: 2010-09-03
Posts: 382

Re: [Solved] rEFInd not showing theme

Definitely use the PARTUUID for / not /boot in your refind_linux.conf

I just downloaded and tried the minimal-theme myself and it works just fine. My heirarchy for this theme is as follows:

/boot
    initramfs-linux.img
    initramfs-linux-fallback.img
    refind_linux.conf
    vmlinuz-linux
    /efi
        /EFI
            /refind
                refind_x64.efi
                refind.conf
                local.conf
                /minimal-theme
                     background.png
                     selection_big.png
                     selection_small.png
                     /icons
                /fonts
                /icons
            /tools
                /drivers - this contains /usr/share/refind/drivers_X64

My refind.conf is the installed default except for the following section:

# Include a secondary configuration file within this one. This secondary
# file is loaded as if its options appeared at the point of the "include"
# token itself, so if you want to override a setting in the main file,
# the secondary file must be referenced AFTER the setting you want to
# override. Note that the secondary file may NOT load a tertiary file.
#
include local.conf

And my local.conf is as follows (which is just the minimal-theme/theme.conf settings plus a few of my own):

# These options override the corresponding options in the default refind.conf file.
# Ensure the default refind.conf last line is set to "include local.conf"

timeout 10
hideui singleuser,hints,arrows,label
icons_dir minimal-theme/icons
banner minimal-theme/background.png
selection_big   minimal-theme/selection_big.png
selection_small minimal-theme/selection_small.png
resolution 1920 1080
use_graphics_for linux
showtools shutdown
default_selection vmlinuz

I have just noticed in your local.conf for the selection_big and selection_small you have .bmp instead of .png.

Last edited by Padfoot (2014-04-24 07:17:12)

Offline

#10 2014-04-25 15:06:49

w_bowman
Member
From: Canada
Registered: 2013-01-21
Posts: 26
Website

Re: [Solved] rEFInd not showing theme

http://imgur.com/DEkZuOI

Ok, so after messing something up, and not having a bootloader for arch at all, I went in with my live CD and basically started from scratch. Three hours (and one backup) later, I am running defaults, and got the theme in the right directory, and made a local.conf just as yours is, commenting out what I don't want. It finally worked. Thank you. I am not sure what was wrong before my system failed, but now my system is better off anyway, and I had a hell of a learning experience trying to fix it all. Thanks!

Last edited by w_bowman (2014-04-25 15:07:52)

Offline

Board footer

Powered by FluxBB