LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-11-2021, 02:17 PM   #1
LeonScoretzka
Member
 
Registered: Aug 2021
Posts: 48

Rep: Reputation: Disabled
Is there any way to modify the grub-install command in ArcoLinux calamares installer?


I need to append --removable to the grub-install command to actually install Grub. Is there any way to do that in a graphical installer such as ArcoLinux calamares? I tried editing the bootloader.conf and change grub-install line there to include --removable, but that just says that no such file or directory exists. Install log: https://termbin.com/xwz1 without editing the grub-install command.
https://termbin.com/p5cf with --removable

In bootloader.conf, grubInstall section:
grubInstall: "grub-install --removable"

I don't know what to do. Can anyone help me?
 
Old 09-11-2021, 06:41 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
This is your problem from your first link
Quote:
WARNING: system is EFI but no EFI system partitions found.
is the reason your getting grub install errors. You need an efi partition at least 200MB formatted fat32 flagged as esp.
 
Old 09-12-2021, 01:02 AM   #3
LeonScoretzka
Member
 
Registered: Aug 2021
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
This is your problem from your first link

is the reason your getting grub install errors. You need an efi partition at least 200MB formatted fat32 flagged as esp.
"Some motherboard manufacturers seem to only support the /efi/boot/ directory location for the .EFI file in the EFI System Partition (ESP). The GRUB installer can perform this operation automatically with the --removable option. "
- Gentoo wiki

The installer does create an ESP, but my motherboard doesn't like the way it's configured.
 
Old 09-12-2021, 02:44 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Can you just ignore it ?. Most installers do the boot-loader last and if it fails who cares - just chroot into it and fix the loader however you wish.

Haven't touched gentoo in years, and haven't bothered to attempt to munge calamares, so take all this for what it's worth.
 
Old 09-12-2021, 02:54 AM   #5
LeonScoretzka
Member
 
Registered: Aug 2021
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Can you just ignore it ?. Most installers do the boot-loader last and if it fails who cares - just chroot into it and fix the loader however you wish.

Haven't touched gentoo in years, and haven't bothered to attempt to munge calamares, so take all this for what it's worth.
Ok, if I understood this correctly:
1. Install the system
2. Close the installer when GRUB fails to install
3. Chroot into the installed system and execute the grub-install and grub config commands
 
Old 09-12-2021, 03:01 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That would be my take on it - if it doesn't work, nothing lost. I have had to do this on Fedora and apt-based systems, and no noticeable adverse effects. But they had solid bug reporting systems that are acted on. No knowledge of Void's capabilities in this respect.
 
Old 09-12-2021, 04:24 AM   #7
LeonScoretzka
Member
 
Registered: Aug 2021
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
That would be my take on it - if it doesn't work, nothing lost. I have had to do this on Fedora and apt-based systems, and no noticeable adverse effects. But they had solid bug reporting systems that are acted on. No knowledge of Void's capabilities in this respect.
It is now saying this:
grub-install: error: failed to get canonical path of /boot/efi

And that's when not chrooted
When chrooted it says:
cannot find a device for /boot/efi (is /dev mounted?)

Last edited by LeonScoretzka; 09-12-2021 at 04:26 AM. Reason: correction
 
Old 09-12-2021, 04:46 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Did you mount /boot/efi ?.
 
Old 09-12-2021, 08:28 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
The --removable option puts the grubx64.efi in /Boot/bootx64.efi on the efi partition and doesn't register it in the firmware/bios of the system.

Both of your links
Quote:
WARNING: system is EFI but no EFI system partitions found
If the efi partition can't be found there is something wrong with your setup.

post the output of
Code:
lsblk -f

Last edited by colorpurple21859; 09-12-2021 at 09:15 AM.
 
Old 09-12-2021, 08:52 AM   #10
LeonScoretzka
Member
 
Registered: Aug 2021
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Did you mount /boot/efi ?.
I did
 
Old 09-12-2021, 09:20 AM   #11
LeonScoretzka
Member
 
Registered: Aug 2021
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
The --removable option puts the grubx64.efi in /Boot/bootx64.efi on the efi partition and doesn't register it in the firmware/bios of the system.

Both of your links
If the efi partition can't be found there is something wrong with your setup.

post the output of
Code:
lsblk -f
lsblk -f:
Code:
NAME FSTYPE FSVER LABEL             UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
     squash 4.0                                                                0   100% /run/archiso/airootfs
sda                                                                                     
|-sda1
|    exfat  1.0   Ventoy            6EBD-7A57                                           
| `-ventoy
|    iso966 Jolie arcolinuxb-openbox-v21.09.8
|                                   2021-08-07-15-26-22-00                     0   100% /run/archiso/bootmnt
`-sda2
     vfat   FAT16 VTOYEFI           7502-2467                                           
sdb                                                                                     
nvme0n1
|                                                                                       
|-nvme0n1p1
|    vfat   FAT32 NO_LABEL          7681-3B10                                           
`-nvme0n1p2
     ext4   1.0                     34d929a0-f084-40ad-bfac-4f4e0c10f8fb
 
Old 09-12-2021, 09:29 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
post /etc/fstab
 
Old 09-12-2021, 09:40 AM   #13
LeonScoretzka
Member
 
Registered: Aug 2021
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
post /etc/fstab

Code:
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
Looks like there's nothing there. I wonder why?
 
Old 09-12-2021, 09:51 AM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
did you post the /etc/fstab of the live system or the /etc/fstab located on partition nvme0n1p2?
 
Old 09-12-2021, 09:54 AM   #15
LeonScoretzka
Member
 
Registered: Aug 2021
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
did you post the /etc/fstab of the live system or the /etc/fstab located on partition nvme0n1p2?
This is the one from the chrooted system:
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=7681-3B10                            /boot/efi      vfat    umask=0077 0 2
UUID=34d929a0-f084-40ad-bfac-4f4e0c10f8fb /              ext4    defaults,noatime 0 1
/swapfile                                 swap           swap    defaults,noatime 0 0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Calamares 2.2.3 Universal Installer Adds Locale Choice Support on Debian Linux LXer Syndicated Linux News 0 05-31-2016 09:31 AM
LXer: Calamares 2.2.1 Distribution-Independent Installer Released for GNU/Linux OSes LXer Syndicated Linux News 0 04-09-2016 06:03 PM
LXer: Watch: What's Coming in 2016 for the Calamares 2.0 Graphical Linux Installer LXer Syndicated Linux News 0 01-03-2016 11:39 PM
LXer: Manjaro 15.09 (Bellatrix) Update With Calamares Installer, Tweaks And Latest Applications LXer Syndicated Linux News 0 09-29-2015 09:12 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration