LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-21-2023, 12:19 PM   #1996
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Rep: Reputation: 144Reputation: 144

marav: My point is that if for example you update the kernel with huge kernel without removing the generic kernel, for some reason slackware actually installs both the generic and the huge kernel on inital setup/install. for me this caused my system to try to boot from the generic kernel. Although the system started, /boot/efi was not mounted, and could not be mounted because the kernel didn't support vfat, so I couldn't fix the problem in the efi partition without rebooting from the huge kernel on the install media (which obviously had a different kernel version).

luckycyborg: You can set the codepage as an option in the mount command, which over-rides the kernel default.https://www.kernel.org/doc/Documenta...stems/vfat.txt If you are using an automounter in a gui, then you would have to set the codepage in the automounter anyway. hopefully that will make the huge kernels more useful to you. I'm not sure on the rules regarding efi system partition codepages though, as that is loaded by the efi bios initially, so the bios has to understand the codepage used, and probably defaults to 437 the same as most distro's (ubuntu,arch,gentoo,lfs,fedora,debian etc.).

Last edited by timsoft; 03-21-2023 at 12:20 PM. Reason: fix typo
 
2 members found this post helpful.
Old 03-21-2023, 12:30 PM   #1997
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,467

Rep: Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226
Quote:
Originally Posted by timsoft View Post
marav: My point is that if for example you update the kernel with huge kernel without removing the generic kernel, for some reason slackware actually installs both the generic and the huge kernel on inital setup/install. for me this caused my system to try to boot from the generic kernel. Although the system started, /boot/efi was not mounted, and could not be mounted because the kernel didn't support vfat, so I couldn't fix the problem in the efi partition without rebooting from the huge kernel on the install media (which obviously had a different kernel version).
An UEFI system doesn’t need the partition /boot/efi to be mounted
It just needs that it exists

My /etc/fstab:
Code:
/dev/nvme0n1p1    /boot/efi vfat    defaults,noauto    1    0

Last edited by marav; 03-21-2023 at 12:33 PM.
 
2 members found this post helpful.
Old 03-21-2023, 12:50 PM   #1998
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,630

Rep: Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515
Quote:
Originally Posted by marav View Post
An UEFI system doesn’t need the partition /boot/efi to be mounted
It just needs that it exists

My /etc/fstab:
Code:
/dev/nvme0n1p1    /boot/efi vfat    defaults,noauto    1    0
But of course!

However, some good people are misguided to use ancient boot technologies, which requires to have access to ESP partition again and again, for modifying files.

I for one, just like you I use modern boot technologies like GRUB2 which requires access to ESP partition only at system installation time or when the GRUB2 package is updated.

I do not know what others think, but I believe that's much simpler this way, the ESP filesystem is less prone for corruption and the system boot is much more robust. As bonus points, there is no need to learn a distinct bootloader and its configuration for the Legacy BIOS Boot - like LILO, as GRUB2 support also this mode, and it uses for Legacy BIOS Boot exactly the same configuration from /boot/grub/grub.cfg .

Yep, there is no need to fix the ESP mounting, but rather to not advertise antiquated and errors prone boot technologies.

Last edited by LuckyCyborg; 03-21-2023 at 01:13 PM.
 
1 members found this post helpful.
Old 03-21-2023, 01:37 PM   #1999
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,024

Rep: Reputation: 689Reputation: 689Reputation: 689Reputation: 689Reputation: 689Reputation: 689
Quote:
Originally Posted by elcore View Post
I changed all of them anyway for other reasons, so what's your point? You've answered something I didn't ask.
It just seems redundant to set -j to same value multiple times for everything, instead of just for specific overrides like openssl which apparently does not link correctly with default $NUMJOBS.
I don't think that you understood Petris reply and I don't think you understand what this means in a bash script:

Code:
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
So let me explain that when you write:

Code:
SOMEVARIABLE=${SOMEVARIABLE:-"defaultvalue"}
Your SOMEVARIABLE will get "defaultvalue" unless your environment already has set that variable to something else before the script is done.

A default value of -j$(expr $(nproc) + 1) is a rather good default value as it will be you number of cores + 1. If you prefer to have another value you can do something like:

Code:
export NUMJOBS=-j73
./program.SlackBuild
You can set your default value in some file in /etc/profile.d or in some login file in your home directory.

regards Henrik
 
3 members found this post helpful.
Old 03-21-2023, 01:47 PM   #2000
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
An UEFI system doesn’t need the partition.
Windows just needs that it exists
FWIW
It's not a hardware requirement, or a Slackware requirement. Credit where it's due and all that.
 
Old 03-21-2023, 02:02 PM   #2001
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Quote:
Originally Posted by henca View Post
I don't think that you understood Petris reply
No, I totally understand why he wants to indirectly break my system with bad advice.
Luckily, it's less work for me to rewrite all, than set that in ~profile and wait for builds like openssl to break at any point.
I'm certain he's aware of the consequences, just wants to have a laugh when my system starts to break apart because of what I did, according to his advice.
Forget about it. I didn't ask for solution, I just asked a bunch of questions regarding cause and effect.
 
Old 03-21-2023, 02:22 PM   #2002
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,630

Rep: Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515
Quote:
Originally Posted by elcore View Post
FWIW
It's not a hardware requirement, or a Slackware requirement. Credit where it's due and all that.
Also any Linux distribution needs an ESP partition to boot in the UEFI mode.

AND, today NOT all the computers on sales has the ability to go Legacy BIOS mode, for the simple fact there is no CSM.

Also, no CSM usually means that there is no way to disable the Secure Boot, so today Slackware will not even boot on these computers.

Last edited by LuckyCyborg; 03-21-2023 at 02:29 PM.
 
Old 03-21-2023, 04:17 PM   #2003
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by marav View Post
An UEFI system doesn’t need the partition /boot/efi to be mounted
It just needs that it exists

My /etc/fstab:
Code:
/dev/nvme0n1p1    /boot/efi vfat    defaults,noauto    1    0
I too set up my EFI Partition in /etc/fstab with the noauto option:
Code:
/dev/nvme0n1p2 /boot/efi  vfat  noauto  1   0
Q: is the 'defaults' option recommended for mounting vfat ?

I learned the hard way after a major Win11 Update last Fall when Windows wiped the files in the EFI Directory to keep a backup in /root/tmp/efi/

Now, if I could only make Win11 leave it the hell alone

-- kjh

p.s. The backed up Slackware files came in handy when I upgraded my INSYDE BIOS which also wiped out the EFI Directory

Last edited by kjhambrick; 03-21-2023 at 04:19 PM.
 
Old 03-22-2023, 01:30 AM   #2004
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,024

Rep: Reputation: 689Reputation: 689Reputation: 689Reputation: 689Reputation: 689Reputation: 689
Quote:
Originally Posted by kjhambrick View Post
I too set up my EFI Partition in /etc/fstab with the noauto option:
Code:
/dev/nvme0n1p2 /boot/efi  vfat  noauto  1   0
Q: is the 'defaults' option recommended for mounting vfat ?
Usually, the 'defaults' option is what you write in /etc/fstab if you don't want to change any of the default values. In this case, as you have 'noauto' you don't need 'defaults' as noauto is not the default behaviour for a line in /etc/fstab.

In your quoted example there was 'defaults,noauto'. The 'defaults' option implies 'auto', but as the option 'noauto' is given after that it will override 'noauto'.

regards Henrik
 
1 members found this post helpful.
Old 03-22-2023, 03:03 AM   #2005
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,764

Rep: Reputation: Disabled
Quote:
Originally Posted by kjhambrick View Post
Q: is the 'defaults' option recommended for mounting vfat ?
Thing with vfat defaults is it allows all users full access to files and makes everything an executable.
 
1 members found this post helpful.
Old 03-22-2023, 06:16 AM   #2006
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Rep: Reputation: 144Reputation: 144
Rather than changing the request for vfat support in generic kernel into "grub is better than elilo/lilo" which has it's points; we still have elilo and lilo for legacy reasons if nothing else. I actually use rEFInd for dualbooting with ms windows, but codepage aside, which is addressable in fstab if needed for those not in western europe or english speaking, it would still be nice to have vfat support in generic. There is support for ext2/3/4 and vfat is the most common (as mentioned re uefi system partition (and even installing via usb)) format not included. while slackware ships with elilo, and has a install from usb option, it is still useful.

luckycyborg: maybe you should request that the slackware installer gives an option to add codepage when it automatically adds /boot/efi mount point for the uefi system partition to fstab. That would be useful for both hugh and generic kernels. Also adding codepage support in automounter for the current locale, over-riding the kernel default would be also useful, based on what you have said.
 
Old 03-22-2023, 06:58 AM   #2007
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,960

Rep: Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572Reputation: 1572
Quote:
Originally Posted by timsoft View Post
it would still be nice to have vfat support in generic. There is support for ext2/3/4 and vfat is the most common (as mentioned re uefi system partition (and even installing via usb)) format not included.
The vfat file system support is similar to ext2/3/4 in generic:
Code:
$ egrep 'VFAT|EXT._FS=' config-generic-6.1.20  
CONFIG_EXT2_FS=m
CONFIG_EXT3_FS=m
CONFIG_EXT4_FS=m
CONFIG_VFAT_FS=m
You can add vfat in your mkinitrd command (-m ext4:vfat).
 
Old 03-22-2023, 07:58 AM   #2008
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,617

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Or we could all just boot the kernel directly on UEFI and have no need of boot loader/ESP pissing contests every time the topic comes up...
 
Old 03-22-2023, 08:21 AM   #2009
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,230

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
glib-2.76.1
https://download.gnome.org/sources/g...-2.76.1.tar.xz
 
Old 03-22-2023, 09:49 AM   #2010
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 542

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Suggestion to make makepkg warn about dangling symlinks:
Code:
--- makepkg.orig	2023-03-22 14:40:25.681795009 +0100
+++ makepkg	2023-03-22 15:21:40.131577707 +0100
@@ -296,6 +296,9 @@
   exit 2
 fi
 
+# Search dangling symlinks to generate a warning later on
+dangling="$(find . -xtype l)"
+
 echo
 echo "Slackware package maker, version 3.14159265."
 echo
@@ -451,6 +454,10 @@
   echo "WARNING:  site_perl directory detected (this is fine for a local package build)"
 fi
 
+if [ -n "$dangling" ]; then
+  echo "WARNING:  Dangling symlink(s) detected: $dangling"
+fi
+
 # Restore the old permissions if they previously weren't chmod 755
 if [ $OLDROOTPERMS -ne 755 ]; then
   echo
 
2 members found this post helpful.
  


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
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

All times are GMT -5. The time now is 09:41 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