LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-22-2023, 03:51 PM   #46
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338

Quote:
Originally Posted by Petri Kaukasoina View Post
Well, I guess no one wants to try to downgrade eudev or elogind to see if efivars needs to be mounted manually after that. I would have done it but I don't use UEFI.

/sys/firmware/efi/efivars is only referenced in packages efivar, elilo, elogind, and mdadm. And only elogind has a recently changed version.
Well, I have tested and the downgrading to (previous) elogind 246.10 makes that /sys/firmware/efi/efivars to be mounted automatically, hence the efibootmgr to work out of box.

HOWEVER, with the current elogind 252.9 even by rebuilding with -Defi=true will not change the behavior noted in this thread. Seems like they have removed that ability to automatically mount the /sys/firmware/efi/efivars, while now I am quite sure that previously this was done by elogind.

BTW, seems like the minimal changes required is the line in the /etc/fstab at boot time - there is no really needed to load (manually) the efivarfs module.

As a remember, that new line from /etc/fstab is:
Code:
efivarfs  /sys/firmware/efi/efivars  efivarfs    defaults    0   0

Last edited by LuckyCyborg; 05-22-2023 at 04:21 PM.
 
2 members found this post helpful.
Old 05-22-2023, 07:31 PM   #47
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
I also confirm elogind is the culprit. Downgrading elogind the problem goes away.
 
Old 05-22-2023, 07:37 PM   #48
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,556

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Hrm. No bug reports on it... https://github.com/elogind/elogind No documentation of a change, either. Bug?
 
Old 05-23-2023, 03:27 AM   #49
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338
Quote:
Originally Posted by garpu View Post
Hrm. No bug reports on it... https://github.com/elogind/elogind No documentation of a change, either. Bug?
I do not think so. In fact, even I do not believe that's the elogind's business to mount automatically that efivarfs from /sys.

Yeah, probably there was some fallback code inherited from systemd, which code was active in the previous elogind versions, and if anything, seems more rationale this fallback code to go eventually on eudev, also split from systemd.

HOWEVER, I sincerely doubt that Slackware should rely on some fallback code from a daemon which has no business with handing the /sysfs.

Seriously, the ways how Slackware handles those UEFI things (and the UEFI boot) can't be described with other word than "patchwork"

Honestly, I for one, I do not believe that our BDFL uses UEFI-based computers, otherwise he would have noticed those many issues with the UEFI management on Slackware. He's stuck on that AMD AM3 Phenom II x6 computer and that's all folks!

BTW, not that I am against those AMD AM3 CPUs, also myself I own several computers with CPU like this, and I believe that they are quite decent even today. However, I believe that that UEFI isn't anymore something which can be graciously ignored.

Last edited by LuckyCyborg; 05-23-2023 at 04:22 AM.
 
Old 05-23-2023, 03:47 AM   #50
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,809

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by volkerdi View Post
Maybe the efivars directory is not mounted? Try this first (as root):
Code:
mount -t efivarfs none /sys/firmware/efi/efivars
Quote:
Originally Posted by LuckyCyborg View Post
In fact, even I do not believe that's the elogind's business to mount automatically that efivarfs from /sys.
...
I sincerely doubt that Slackware should rely on some fallback code from a daemon which has no business with handing the /sysfs.
Correct. Installation instructions for the kernel upgrade:
Code:
If using elilo:
Ensure that the /boot/vmlinuz symlink is pointing to the kernel you wish
to use, and then run eliloconfig to update the EFI System Partition.
/usr/sbin/eliloconfig, lines 179-185:
Code:
# Make sure efivarfs is active since we'll need it to
# change UEFI boot menu entries:
if [ "$(/bin/ls /sys/firmware/efi/efivars 2> /dev/null | wc -l)" = "0" ]; then
  mount -t efivarfs none /sys/firmware/efi/efivars
fi

efibootmgr ...

Last edited by Petri Kaukasoina; 05-23-2023 at 03:49 AM.
 
Old 05-23-2023, 04:01 AM   #51
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338
Quote:
Originally Posted by Petri Kaukasoina View Post
Correct. Installation instructions for the kernel upgrade:
Code:
If using elilo:
Ensure that the /boot/vmlinuz symlink is pointing to the kernel you wish
to use, and then run eliloconfig to update the EFI System Partition.
/usr/sbin/eliloconfig, lines 179-185:
Code:
# Make sure efivarfs is active since we'll need it to
# change UEFI boot menu entries:
if [ "$(/bin/ls /sys/firmware/efi/efivars 2> /dev/null | wc -l)" = "0" ]; then
  mount -t efivarfs none /sys/firmware/efi/efivars
fi

efibootmgr ...
Seriously? What happened with the slogan yelled in my face by some angry Slackers? If I remember right, it was "Slackware gives you the choice" ? So, the "choice" is between that broken ELILO and itself as alternative?

No, Sir! The stupid me believes that that particular snippet which mounts efivars eventually should go on /etc/rc.d/rc.S with some kind of check that the machine was booted on UEFI mode.

Heck, even dmesg | grep -i "EFI" is enough to check in the init scripts that the machine is on UEFI mode.

Last edited by LuckyCyborg; 05-23-2023 at 04:22 AM.
 
Old 05-23-2023, 06:06 AM   #52
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,809

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Déjà vu:

Quote:
Originally Posted by hazel View Post
How come I have efivarfs mounted
Quote:
Originally Posted by Chuck56 View Post
take a look at /usr/sbin/eliloconfig
Quote:
Originally Posted by GazL View Post
Prompted by Hazel's post, I've just taken a look at my current install and found that I have both the module loaded, and the efivarfs mounted despite it not being in fstab, and I can see nothing in rc.d/* or /lib/udev/rules.d/* that references efivar.
...
I used to leave it unmounted to prevent accidents. No idea when this changed.
Quote:
Originally Posted by GazL View Post
it was my slackware64-current using Pat's generic kernel.

I've just booted into CRUX,
...
... and neither the module nor the efivarfs is being mounted automatically.
Quote:
Originally Posted by GazL View Post
OFFS!... found it. It's that elogind piece of crap that's doing it!
Quote:
Originally Posted by GazL View Post
Yeah, looks like the best I can do is add these to my fstab to beat elogind to mounting it 'rw'.
Code:
sysfs               /sys            sysfs   defaults                0   0
efivarfs            /sys/firmware/efi/efivars efivarfs  ro          0   0
It does stay 'ro', but I'd still prefer it to be not mounted at all.

Last edited by Petri Kaukasoina; 05-23-2023 at 06:08 AM.
 
Old 05-23-2023, 07:52 AM   #53
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Good discussion...

My solution for the time being is to modify fstab using the noauto option.

/etc/fstab
Code:
efivarfs  /sys/firmware/efi/efivars  efivarfs  noauto  0   0
Mounting is easy-peasy with the fstab entry:
Code:
mount efivarfs
I prefer eudev no longer auto-mounting efivarfs. Hopefully this is an intended change by eudev that was overlooked in the changelog and not a bug.
 
Old 05-23-2023, 10:08 AM   #54
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
I do not have a UEFI system, so no way to test, but I am wondering whether the changes starting at line 15 in 60-persistent-storage.rules in eudev-3.2.12 may be affecting the mounting of the EFI partition.
 
Old 05-23-2023, 11:13 AM   #55
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338
Quote:
Originally Posted by Chuck56 View Post
Good discussion...

My solution for the time being is to modify fstab using the noauto option.

/etc/fstab
Code:
efivarfs  /sys/firmware/efi/efivars  efivarfs  noauto  0   0
Mounting is easy-peasy with the fstab entry:
Code:
mount efivarfs
I prefer eudev no longer auto-mounting efivarfs. Hopefully this is an intended change by eudev that was overlooked in the changelog and not a bug.
And how you survived up to Slackware 14.2 where the /sys/firmware/efi/efivars was NOT a mountpoint, BUT just a /sys folder?

I believe in your freedom to broke your own system as you want, and even in your freedom to modify your rc.d scripts to require to hit ENTER 100 times for a successful boot, BUT from Slackware I for one I expect "consistency" and this mean the system to not have a broken state by default.

That's WHY I expect from Slackware to ship a solution where is no need to manually intervene or tune on system for using grub-install or this efibootmgr. And I will prefer a fully functional elogind.

IF they want to hear people like you, there are always ways to use switches which disable a consistent behavior, i.e. a config file into /etc/default, BUT I see no reason for Slackware to be broken by default.

Last edited by LuckyCyborg; 05-23-2023 at 11:32 AM.
 
Old 05-23-2023, 11:18 AM   #56
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338
Quote:
Originally Posted by allend View Post
I do not have a UEFI system, so no way to test, but I am wondering whether the changes starting at line 15 in 60-persistent-storage.rules in eudev-3.2.12 may be affecting the mounting of the EFI partition.
Nope, it was elogind which did in the past this mounting of /sys/firmware/efi/efivars .

I suppose that happened as a fallback behavior, because elogind needs to read some information from efivars.

Last edited by LuckyCyborg; 05-23-2023 at 11:23 AM.
 
Old 05-23-2023, 11:21 AM   #57
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,517

Rep: Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338Reputation: 3338
Quote:
Originally Posted by Petri Kaukasoina View Post
With all respect, I do not use CRUX and I do not see it as an example to follow - excluding that old lament, which was certainly valuable at its time: "Even CRUX has LinuxPAM!"

I for one I look for what Ubuntu, openSUSE or Fedora do.

Last edited by LuckyCyborg; 05-23-2023 at 11:37 AM.
 
Old 05-23-2023, 03:19 PM   #58
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Hmm... Wondering what best characterize this thread?
  1. Tempest in a teapot
  2. Much ado about nothing
 
2 members found this post helpful.
Old 05-25-2023, 08:33 AM   #59
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Looks like the fix is in from our BDFL!

Latest changelog for slackware-current
https://www.linuxquestions.org/quest...ml#post6432717

22 updates (x86_64). Including a (* Security fix *)! : 17 upgraded, 5 rebuilt
Code:
Thu May 25 00:24:33 UTC 2023
a/elilo-3.16-x86_64-16.txz:  Rebuilt.
  eliloconfig: don't mess with mounting efivarfs. This should be handled by
  rc.S, or by whatever the admin put in /etc/fstab.

a/sysvinit-scripts-15.1-noarch-5.txz:  Rebuilt.
  rc.S: mount efivarfs rw, may be overridden in /etc/default/efivarfs.
source/installer
Code:
Thu May 25 00:15:21 UTC 2023
  Mount efivarfs.

Last edited by Chuck56; 05-25-2023 at 08:51 AM.
 
2 members found this post helpful.
Old 05-25-2023, 08:51 AM   #60
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by Didier Spaier View Post
Hmm... Wondering what best characterize this thread?
  1. Tempest in a teapot
  2. Much ado about nothing
3. Minor refinement requested?
 
  


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
[SOLVED] Efibootmgr, possible to create new entry but not as first option? MickeJ Linux - General 7 05-18-2023 11:07 AM
efibootmgr not included in the install usb decuser Slackware 5 02-12-2023 07:06 PM
efibootmgr-0.5.4-x86_64 vs efibootmgr-0.6.0-x86_64 Olaus Slackware 4 10-26-2016 12:42 AM
efibootmgr settings not surviving a reboot rkelsen Slackware - Installation 12 08-01-2015 05:12 AM

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

All times are GMT -5. The time now is 05:28 AM.

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