You are not logged in.
Pages: 1
Hi!
There are problems installing rEFInd.
What we have at the moment.
1) installed grub-uefi (see tree output)
2) Installed rEFInd
3) several cores (located in "/boot" which is part of "/")
4) root file system on btrfs (subvolume @)
5) /boot/efi on vfat (see fstab)
Problems.
1) rEFInd did not load until I copied initramfs-linux.img and vmlinuz-linux to the /boot/efi folder (error: not found vmlinuz-linux). After copying, the OS loaded, but this is not an option, because... When updating kernels, files are updated in /boot, not /boot/efi. symlinks in boot say that there are not enough rights to create them (although they are done as root). In my opinion, copying initramfs-linux.img and vmlinuz-linux every time after upgrade kernel(s) is not correct.
Question 1: How can I force refind to see files in /boot rather than /boot/efi?
2) Automatically rEFInd finds and starts loading via /boot/refind_linux.conf , but crashes when mounting the root system (by-uuid), and the UUID is exactly correct
Question 2: how to force the download through this file to load correctly?
Question 3: why the downloader does not see the content /boot
Question 4: can I specify the path ../../vmlinuz-linux? or EFI only sees /boot/efi whel load refind?
fstab
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 / btrfs subvol=/@,defaults,noatime,compress=zstd 0 0
UUID=9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 /root btrfs subvol=/@root,defaults,noatime,compress=zstd 0 0
UUID=9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 /srv btrfs subvol=/@srv,defaults,noatime,compress=zstd 0 0
UUID=9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 /var/cache btrfs subvol=/@cache,defaults,noatime,compress=zstd 0 0
UUID=9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 /var/log btrfs subvol=/@log,defaults,noatime,compress=zstd 0 0
UUID=9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 /var/tmp btrfs subvol=/@tmp,defaults,noatime,compress=zstd 0 0
UUID=A176-C189 /boot/efi vfat defaults,noatime 0 2
UUID=0872b51e-dec1-4837-9114-e74b076bc813 /home btrfs subvol=/@home,defaults,noatime,compress=zstd 0 0
PARTUUID=c66dedc2-fad6-4eee-97f7-d5a214f205cd /home/liet/Win-DATA ntfs rw,nosuid,nodev,relatime,uid=1000,gid=1000,allow_other,dmask=022,fmask=133 0 0
#https://webdav.yandex.ru /home/liet/Yandex_Disk davfs user,noauto,uid=brandon,file_mode=600,dir_mode=700 0 1
PARTUUID=12eaa30a-02 /home/liet/Games ntfs rw,exec,nosuid,nodev,relatime,uid=1000,gid=1000,allow_other,dmask=022,fmask=133 0 0
PARTUUID=f4e691a8-5566-4bb2-8db3-83608cc9688f /home/liet/Steam ntfs rw,nosuid,nodev,relatime,uid=1000,gid=1000,allow_other,dmask=022,fmask=133 0 0
#PARTUUID=f4e691a8-5566-4bb2-8db3-83608cc9688f /home/liet/Gamez ntfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
#
#
#Backup
UUID=71e01d24-fb5f-4e55-b250-8b826dce056e /backup/home btrfs rw,relatime,space_cache=v2,subvolid=5,subvol=/ 0 0
UUID=6c688951-9ca0-4f75-a99a-007a70933706 /backup/root btrfs rw,relatime,space_cache=v2,subvolid=5,subvol=/ 0 0
UUID=9815a8c0-ba7b-4ef0-a80e-3a1b89b9c98d /home/liet/.cache/yay reiserfs rw,defaults,noatime 0 0bllkid -o +UUID,LABEL
AME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS UUID LABEL
sda 8:0 0 1,8T 0 disk
├─sda1 8:1 0 128M 0 part
└─sda4 8:4 0 770,4G 0 part /home/liet/Win-DATA 590E480DBA2DD745 Downloads
sdb 8:16 0 223,6G 0 disk
└─sdb1 8:17 0 146,5G 0 part /home 0872b51e-dec1-4837-9114-e74b076bc813 linux_home
sdc 8:32 0 931,5G 0 disk
├─sdc1 8:33 0 146,5G 0 part /backup/home 71e01d24-fb5f-4e55-b250-8b826dce056e
├─sdc2 8:34 0 48,8G 0 part /backup/root 6c688951-9ca0-4f75-a99a-007a70933706 root_backup
└─sdc3 8:35 0 150,3G 0 part /home/liet/.cache/yay 9815a8c0-ba7b-4ef0-a80e-3a1b89b9c98d
sdd 8:48 0 1,8T 0 disk
├─sdd1 8:49 0 10G 0 part da5b43dd-b9b3-4dc5-b5ac-ca305a863418 Calculate
├─sdd2 8:50 0 763,3G 0 part /home/liet/Games 363490A43490691F Games
└─sdd3 8:51 0 1,1T 0 part AFE998F58C93C92C DATA
sde 8:64 1 28,9G 0 disk 2023-11-20-14-40-42-00 arcolinuxb-plasma-v23.12.03
├─sde1 8:65 1 2,4G 0 part 2023-11-20-14-40-42-00 arcolinuxb-plasma-v23.12.03
└─sde2 8:66 1 15M 0 part 0DD6-F5FB ARCHISO_EFI
zram0 254:0 0 61,9G 0 disk [SWAP]
nvme0n1 259:0 0 931,5G 0 disk
├─nvme0n1p1 259:1 0 128M 0 part
├─nvme0n1p3 259:2 0 221,9G 0 part 2E261E9F261E67DB
├─nvme0n1p4 259:3 0 721M 0 part C0EA8FB7EA8FA86C
├─nvme0n1p5 259:4 0 43G 0 part /var/tmp 9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 linux_root
│ /var/log
│ /var/cache
│ /srv
│ /root
│ /
├─nvme0n1p6 259:5 0 1,3G 0 part /boot/efi A176-C189 BOOT
└─nvme0n1p7 259:6 0 146,5G 0 part
nvme1n1 259:7 0 476,9G 0 disk
├─nvme1n1p1 259:8 0 16M 0 part
└─nvme1n1p2 259:9 0 223,6G 0 part /home/liet/Steam 9888A05888A036A2 Gamezblkid
/dev/nvme0n1p7: PARTUUID="ada68f3c-5af4-4fdd-a23a-6ff3ce8d5200"
/dev/nvme0n1p5: LABEL="linux_root" UUID="9cade40d-fdcc-4fa4-ba85-3cd14f2776a1" UUID_SUB="c4455d25-71be-4170-b2b0-98233d7be721" BLOCK_SIZE="4096" TYPE="btrfs" PTTYPE="dos" PARTUUID="3f292e25-854d-434a-0b75-507639c34ece"
/dev/nvme0n1p3: BLOCK_SIZE="512" UUID="2E261E9F261E67DB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="39517dba-1b68-44c0-574f-498ef3eff22a"
/dev/nvme0n1p1: PARTUUID="7c4eeefa-bf1e-4790-6b9f-a6c397ca17ad"
/dev/nvme0n1p6: LABEL_FATBOOT="BOOT" LABEL="BOOT" UUID="A176-C189" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="db823b30-0e4e-4b29-bc92-c47857701089"
/dev/nvme0n1p4: BLOCK_SIZE="512" UUID="C0EA8FB7EA8FA86C" TYPE="ntfs" PARTUUID="7083fa1e-5622-4066-2603-1e1b931032c4"
/dev/sdd2: LABEL="Games" BLOCK_SIZE="512" UUID="363490A43490691F" TYPE="ntfs" PARTUUID="12eaa30a-02"
/dev/sdd3: LABEL="DATA" BLOCK_SIZE="512" UUID="AFE998F58C93C92C" TYPE="ntfs" PARTUUID="12eaa30a-03"
/dev/sdd1: LABEL="Calculate" UUID="da5b43dd-b9b3-4dc5-b5ac-ca305a863418" BLOCK_SIZE="4096" TYPE="xfs" PARTUUID="12eaa30a-01"
/dev/sdb1: LABEL="linux_home" UUID="0872b51e-dec1-4837-9114-e74b076bc813" UUID_SUB="5893ea0c-b198-415b-8ab0-c946bdb3e184" BLOCK_SIZE="4096" TYPE="btrfs" PARTLABEL="linux_home" PARTUUID="aa951b15-499d-48d2-bd3e-a7e0e9527bec"
/dev/sde2: SEC_TYPE="msdos" LABEL_FATBOOT="ARCHISO_EFI" LABEL="ARCHISO_EFI" UUID="0DD6-F5FB" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="08488054-02"
/dev/sde1: BLOCK_SIZE="2048" UUID="2023-11-20-14-40-42-00" LABEL="arcolinuxb-plasma-v23.12.03" TYPE="iso9660" PARTUUID="08488054-01"
/dev/sdc2: LABEL="root_backup" UUID="6c688951-9ca0-4f75-a99a-007a70933706" UUID_SUB="0e2aab92-5944-4c1c-bb65-40c9ab2e5b23" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="7ce37474-02"
/dev/sdc3: UUID="9815a8c0-ba7b-4ef0-a80e-3a1b89b9c98d" BLOCK_SIZE="4096" TYPE="reiserfs" PARTUUID="7ce37474-03"
/dev/sdc1: UUID="71e01d24-fb5f-4e55-b250-8b826dce056e" UUID_SUB="43afbb02-6be7-4024-b7dc-d3d8898be1ba" BLOCK_SIZE="4096" TYPE="btrfs" PARTUUID="7ce37474-01"
/dev/nvme1n1p2: LABEL="Gamez" BLOCK_SIZE="512" UUID="9888A05888A036A2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="f4e691a8-5566-4bb2-8db3-83608cc9688f"
/dev/nvme1n1p1: PARTLABEL="Microsoft reserved partition" PARTUUID="f95b3ceb-bbad-4c3e-a4e7-9f6fa32a5ef3"
/dev/sda4: LABEL="Downloads" BLOCK_SIZE="512" UUID="590E480DBA2DD745" TYPE="ntfs" PARTUUID="c66dedc2-fad6-4eee-97f7-d5a214f205cd"
/dev/sda1: PARTUUID="ff2d9021-5e25-4480-98fe-a903d546b0e6"
/dev/zram0: LABEL="zram0" UUID="ec45a675-0cfd-40ab-8d3d-619bd8839d6f" TYPE="swap"cat /boot/refind_linux.conf
"Boot with standard options" "root=UUID=9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 rw rootflags=subvol=@ zswap.enabled=0 loglevel=3 audit=0 nvme_load=yes"
"Boot to single-user mode" "root=UUID=9cade40d-fdcc-4fa4-ba85-3cd14f2776a1 rw rootflags=subvol=@ zswap.enabled=0 loglevel=3 audit=0 nvme_load=yes single"
"Boot with minimal options" "ro root=/dev/nvme1n1p5"WORKED menuentry in /boot/efi/EFI/refind/refind.conf
menuentry "ArcoLinux" {
icon /EFI/refind/icons/os_arch.png
volume "BOOT"
loader /vmlinuz-linux
initrd /initramfs-linux.img
options "root=LABEL=linux_root rw add_efi_memmap rootfstype=btrfs rootflags=subvol=@ nvme_load=yes"
submenuentry "Boot using fallback initramfs" {
initrd /boot/initramfs-linux-fallback.img
}
submenuentry "Boot to terminal" {
add_options "systemd.unit=multi-user.target"
}
}NOT WORKED menuentry in /boot/efi/EFI/refind/refind.conf
menuentry "Arch Linux" {
icon /EFI/refind/icons/os_arch.png
volume "BOOT"
loader /@/boot/vmlinuz-linux
initrd /@/boot/initramfs-linux.img
options "root=PARTUUID=3f292e25-854d-434a-0b75-507639c34ece rw add_efi_memmap rootfstype=btrfs rootflags=subvol=@ nvme_load=yes"
submenuentry "Boot using fallback initramfs" {
initrd /boot/initramfs-linux-fallback.img
}
submenuentry "Boot to terminal" {
add_options "systemd.unit=multi-user.target"
}
}Full /boot/efi/EFI/refind/refind.conf
Full rEFInd config
Offline
The command lines in your /boot/refind_linux.conf miss a very important part : where refind needs to look for the initrd .
Here's what I use in /boot/refind_linux.conf for an ext4 system with ESP on a separate partition (mounted on /efi ) and boot on root-partition
Archlinux" "root=UUID=replace-with-UUID rw initrd=\boot\amd-ucode.img initrd=\boot\initramfs-linux.img audit=0 pcie_aspm=off"Last edited by Lone_Wolf (2023-12-05 11:48:01)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Pages: 1