LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-01-2023, 08:39 AM   #76
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,658
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480

I couldn't find that file in my Slackware-14.2 system, but I don't know if I ever updated a kernel in that. I remember making an initrd at installation, but it didn't leave a command trace behind.
 
Old 05-01-2023, 09:07 AM   #77
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,378

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
From the ChangeLog for Slackware 15.0
Quote:
Tue Oct 10 18:08:31 UTC 2017
...
a/mkinitrd-1.4.11-i586-5.txz: Rebuilt.
Save a copy of the command line used to create the initrd as "command_line"
in /boot/initrd-tree/ and within the initrd itself. Also save a copy of
/etc/mkinitrd.conf if it exists.
 
1 members found this post helpful.
Old 05-01-2023, 01:39 PM   #78
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,372

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
This is what I used in the initrd.conf for the kernel:
Code:
-k "$(readlink /boot/vmlinuz | cut -d- -f3-)"
Someone else came up with it.
I don't know if it will still work in slackware-15

Last edited by colorpurple21859; 05-01-2023 at 01:42 PM.
 
Old 05-02-2023, 01:59 AM   #79
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,378

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
That code is seen in post #5 in the thread linked in post #31 and post #75 of this thread.
As discussed in the following post, that code is problematic for 32bit kernel names.
 
1 members found this post helpful.
Old 06-14-2023, 08:02 PM   #80
jazzi
Member
 
Registered: Mar 2006
Location: Tea Garden
Distribution: Slackware 15.0
Posts: 31

Original Poster
Rep: Reputation: 3
Thanks for all the help and associated knowledge shared, I learned more than what I needed.

By the way, I found slackpkg+ has a way to get this initrd image generated and copied automatically, just uncomment the following line in the /etc/slackpkg/slackpkgplus.conf as long as package slackpkg+ installed.

Code:
set PLUGIN_ZLOOKKERNEL=enable
 
Old 11-24-2023, 11:13 AM   #81
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
I had the same issue with an empty /boot/efi a short while ago after repairing the system due to the the laptop froze running a slackpkg upgrade-all. For some reason an error like this had crept into my /etc/fstab leading to the efi partition not mounting.

Code:
dev/nvme0n1p1 SYSTEM /boot/efi        vfat        defaults         1   0
These fixes were required to enable eliloconfig to work again:

(As root or with sudo):

Code:
fdisk -l | grep EFI | awk '{print $1}'

mount /dev/nvme0n1p1 /boot/efi

mount -t efivarfs efivarfs /sys/firmware/efi/efivars
Would it be useful to add these as tests in eliloconfig to avoid this issue?

Last edited by jostber; 11-24-2023 at 02:00 PM.
 
Old 02-01-2024, 01:21 AM   #82
breaker
Member
 
Registered: Mar 2022
Distribution: Slackware 15.0
Posts: 87

Rep: Reputation: 29
Quote:
Originally Posted by Didier Spaier View Post
An example of /etc/grub.d/40_custom below:
Code:
 #!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
    menuentry 'Slint ISO' {
    insmod part_gpt
    insmod part_msdos
    search --no-floppy --fs-uuid --set=root 163f42f7-bf65-4290-a93f-761b8bb38bc6
    set isofile='slint64-15.0-3.iso'
    loopback loop /repo/x86_64/slint-15.0/iso/$isofile
    linux (loop)/linux quiet vga=normal load_ramdisk=1 prompt_ramdisk=0 ro printk.time=0 LANG=en_US.utf8
    initrd (loop)/initrd
    }
This can be handy to boot an installer without writing the ISO on an optical disk or USB stick, just storing it an existing partition (if GRUB is installed, of course).

I also use it to test a new installer in bare metal (not in a VM), thus with access to all files in the machine. This allows me to correct the installer's scripts "on the fly" when I find mistakes, without rewriting an ISO and burning it again on an installation media. As I make a lot of mistakes this saves me a lot of time.

Automatize kernel upgrades is not difficult: what Didier can do, Patrick can do way better, it's just not The Slackware Way so far.
Ah yes, this brings back so many fun memories. When GRUB2 first came out, I had a lot of time to play with it.
Check out this forum post from Linux Mint where we fleshed out using search with labels for partitions.
https://forums.linuxmint.com/viewtop...222330#p222330

Also, you can make any number of entries, not just 40_custom. I would make whatever number.

I was really excited about the loopback feature:
https://forums.linuxmint.com/viewtop...220639#p220639

I don't bother with the variable using set isofile just to keep it looking simple.

Certainly these are usually needed these days - insmod part_gpt insmod part_msdos

Now that EFI and GPT are used.

It is fun to boot into grub and drop to the command line. It is a good exercise to learn to boot a system by typing commands, loading modules, etc. It has saved me more than once when a system would not boot.
 
  


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] Slackware 15.0 64 - ELILO freezes after improper upgrade via slackpkg glupa4e Slackware 12 01-05-2023 10:04 AM
can't boot huge kernel with elilo after 15.0 upgrade donflan Slackware 5 03-12-2022 10:58 AM
ELILO and Kernel Upgrade VisionIncision Slackware 7 07-11-2017 05:15 AM
[SOLVED] ELILO and kernel upgrade cgorac Slackware 3 01-26-2016 12:59 AM

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

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