mirror of
git://slackware.nl/current.git
synced 2025-01-15 15:41:54 +01:00
5a348bc729
a/kernel-generic-6.1.18-x86_64-1.txz: Upgraded. a/kernel-huge-6.1.18-x86_64-1.txz: Upgraded. a/kernel-modules-6.1.18-x86_64-1.txz: Upgraded. ap/sqlite-3.41.1-x86_64-1.txz: Upgraded. d/kernel-headers-6.1.18-x86-1.txz: Upgraded. k/kernel-source-6.1.18-noarch-1.txz: Upgraded. Sorry we missed 6.1.17 ;-) kde/attica-5.104.0-x86_64-1.txz: Upgraded. kde/baloo-5.104.0-x86_64-1.txz: Upgraded. kde/bluez-qt-5.104.0-x86_64-1.txz: Upgraded. kde/breeze-icons-5.104.0-noarch-1.txz: Upgraded. kde/extra-cmake-modules-5.104.0-x86_64-1.txz: Upgraded. kde/fcitx5-configtool-5.0.17-x86_64-1.txz: Upgraded. kde/frameworkintegration-5.104.0-x86_64-1.txz: Upgraded. kde/kactivities-5.104.0-x86_64-1.txz: Upgraded. kde/kactivities-stats-5.104.0-x86_64-1.txz: Upgraded. kde/kapidox-5.104.0-x86_64-1.txz: Upgraded. kde/karchive-5.104.0-x86_64-1.txz: Upgraded. kde/kauth-5.104.0-x86_64-1.txz: Upgraded. kde/kbookmarks-5.104.0-x86_64-1.txz: Upgraded. kde/kcalendarcore-5.104.0-x86_64-1.txz: Upgraded. kde/kcmutils-5.104.0-x86_64-1.txz: Upgraded. kde/kcodecs-5.104.0-x86_64-1.txz: Upgraded. kde/kcompletion-5.104.0-x86_64-1.txz: Upgraded. kde/kconfig-5.104.0-x86_64-1.txz: Upgraded. kde/kconfigwidgets-5.104.0-x86_64-1.txz: Upgraded. kde/kcontacts-5.104.0-x86_64-1.txz: Upgraded. kde/kcoreaddons-5.104.0-x86_64-1.txz: Upgraded. kde/kcrash-5.104.0-x86_64-1.txz: Upgraded. kde/kdav-5.104.0-x86_64-1.txz: Upgraded. kde/kdbusaddons-5.104.0-x86_64-1.txz: Upgraded. kde/kdeclarative-5.104.0-x86_64-1.txz: Upgraded. kde/kded-5.104.0-x86_64-1.txz: Upgraded. kde/kdelibs4support-5.104.0-x86_64-1.txz: Upgraded. kde/kdesignerplugin-5.104.0-x86_64-1.txz: Upgraded. kde/kdesu-5.104.0-x86_64-1.txz: Upgraded. kde/kdewebkit-5.104.0-x86_64-1.txz: Upgraded. kde/kdnssd-5.104.0-x86_64-1.txz: Upgraded. kde/kdoctools-5.104.0-x86_64-1.txz: Upgraded. kde/kemoticons-5.104.0-x86_64-1.txz: Upgraded. kde/kfilemetadata-5.104.0-x86_64-1.txz: Upgraded. kde/kglobalaccel-5.104.0-x86_64-1.txz: Upgraded. kde/kguiaddons-5.104.0-x86_64-1.txz: Upgraded. kde/kholidays-5.104.0-x86_64-1.txz: Upgraded. kde/khtml-5.104.0-x86_64-1.txz: Upgraded. kde/ki18n-5.104.0-x86_64-1.txz: Upgraded. kde/kiconthemes-5.104.0-x86_64-1.txz: Upgraded. kde/kidletime-5.104.0-x86_64-1.txz: Upgraded. kde/kimageformats-5.104.0-x86_64-1.txz: Upgraded. kde/kinit-5.104.0-x86_64-1.txz: Upgraded. kde/kio-5.104.0-x86_64-1.txz: Upgraded. kde/kirigami2-5.104.0-x86_64-1.txz: Upgraded. kde/kitemmodels-5.104.0-x86_64-1.txz: Upgraded. kde/kitemviews-5.104.0-x86_64-1.txz: Upgraded. kde/kjobwidgets-5.104.0-x86_64-1.txz: Upgraded. kde/kjs-5.104.0-x86_64-1.txz: Upgraded. kde/kjsembed-5.104.0-x86_64-1.txz: Upgraded. kde/kmediaplayer-5.104.0-x86_64-1.txz: Upgraded. kde/knewstuff-5.104.0-x86_64-1.txz: Upgraded. kde/knotifications-5.104.0-x86_64-1.txz: Upgraded. kde/knotifyconfig-5.104.0-x86_64-1.txz: Upgraded. kde/kpackage-5.104.0-x86_64-1.txz: Upgraded. kde/kparts-5.104.0-x86_64-1.txz: Upgraded. kde/kpeople-5.104.0-x86_64-1.txz: Upgraded. kde/kplotting-5.104.0-x86_64-1.txz: Upgraded. kde/kpty-5.104.0-x86_64-1.txz: Upgraded. kde/kquickcharts-5.104.0-x86_64-1.txz: Upgraded. kde/kross-5.104.0-x86_64-1.txz: Upgraded. kde/krunner-5.104.0-x86_64-1.txz: Upgraded. kde/kservice-5.104.0-x86_64-1.txz: Upgraded. kde/ktexteditor-5.104.0-x86_64-1.txz: Upgraded. kde/ktextwidgets-5.104.0-x86_64-1.txz: Upgraded. kde/kunitconversion-5.104.0-x86_64-1.txz: Upgraded. kde/kwallet-5.104.0-x86_64-1.txz: Upgraded. kde/kwayland-5.104.0-x86_64-1.txz: Upgraded. kde/kwidgetsaddons-5.104.0-x86_64-1.txz: Upgraded. kde/kwindowsystem-5.104.0-x86_64-1.txz: Upgraded. kde/kxmlgui-5.104.0-x86_64-1.txz: Upgraded. kde/kxmlrpcclient-5.104.0-x86_64-1.txz: Upgraded. kde/modemmanager-qt-5.104.0-x86_64-1.txz: Upgraded. kde/networkmanager-qt-5.104.0-x86_64-1.txz: Upgraded. kde/oxygen-icons5-5.104.0-noarch-1.txz: Upgraded. kde/plasma-framework-5.104.0-x86_64-1.txz: Upgraded. kde/prison-5.104.0-x86_64-1.txz: Upgraded. kde/purpose-5.104.0-x86_64-1.txz: Upgraded. kde/qqc2-desktop-style-5.104.0-x86_64-1.txz: Upgraded. kde/solid-5.104.0-x86_64-1.txz: Upgraded. kde/sonnet-5.104.0-x86_64-1.txz: Upgraded. kde/syndication-5.104.0-x86_64-1.txz: Upgraded. kde/syntax-highlighting-5.104.0-x86_64-1.txz: Upgraded. kde/threadweaver-5.104.0-x86_64-1.txz: Upgraded. n/php-8.2.3-x86_64-2.txz: Rebuilt. The XMLRPC extension is no longer bundled in PHP since PHP 8.0, so stop trying to load it in php.ini. This change is pending in 15.0's /extra/source as well for when there are new versions of PHP8 there. Thanks to ctrlaltca (and others). x/fcitx5-5.0.22-x86_64-1.txz: Upgraded. x/fcitx5-anthy-5.0.14-x86_64-1.txz: Upgraded. x/fcitx5-chinese-addons-5.0.17-x86_64-1.txz: Upgraded. x/fcitx5-gtk-5.0.22-x86_64-1.txz: Upgraded. x/fcitx5-hangul-5.0.11-x86_64-1.txz: Upgraded. x/fcitx5-kkc-5.0.12-x86_64-1.txz: Upgraded. x/fcitx5-qt-5.0.17-x86_64-1.txz: Upgraded. x/fcitx5-table-extra-5.0.13-x86_64-1.txz: Upgraded. x/fcitx5-table-other-5.0.11-x86_64-1.txz: Upgraded. x/fcitx5-unikey-5.0.13-x86_64-1.txz: Upgraded. x/libime-1.0.17-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
99 lines
3.5 KiB
Text
99 lines
3.5 KiB
Text
|
|
Slackware initrd mini HOWTO
|
|
by Patrick Volkerding, volkerdi@slackware.com
|
|
Sun Mar 12 00:57:56 UTC 2023
|
|
|
|
This document describes how to create and install an initrd, which may be
|
|
required to use the 4.x kernel. Also see "man mkinitrd".
|
|
|
|
1. What is an initrd?
|
|
2. Why to I need an initrd?
|
|
3. How do I build the initrd?
|
|
4. Now that I've built an initrd, how do I use it?
|
|
|
|
|
|
1. What is an initrd?
|
|
|
|
Initrd stands for "initial ramdisk". An initial ramdisk is a very small
|
|
Linux filesystem that is loaded into RAM and mounted as the kernel boots,
|
|
and before the main root filesystem is mounted.
|
|
|
|
2. Why do I need an initrd?
|
|
|
|
The usual reason to use an initrd is because you need to load kernel
|
|
modules before mounting the root partition. Usually these modules are
|
|
required to support the filesystem used by the root partition (ext3, ext4,
|
|
btrfs, xfs), or perhaps the controller that the hard drive is attached
|
|
to (SCSI, RAID, etc). Essentially, there are so many different options
|
|
available in modern Linux kernels that it isn't practical to try to ship
|
|
many different kernels to try to cover everyone's needs. It's a lot more
|
|
flexible to ship a generic kernel and a set of kernel modules for it.
|
|
|
|
3. How do I build the initrd?
|
|
|
|
The easiest way to make the initrd is to use the mkinitrd script included
|
|
in Slackware's mkinitrd package. We'll walk through the process of
|
|
upgrading to the generic 6.1.18 Linux kernel using the packages
|
|
found in Slackware's slackware/a/ directory.
|
|
|
|
First, make sure the kernel, kernel modules, and mkinitrd package are
|
|
installed (the current version numbers might be a little different, so
|
|
this is just an example):
|
|
|
|
installpkg kernel-generic-6.1.18-x86_64-1.txz
|
|
installpkg kernel-modules-6.1.18-x86_64-1.txz
|
|
installpkg mkinitrd-1.4.11-x86_64-31.txz
|
|
|
|
Change into the /boot directory:
|
|
|
|
cd /boot
|
|
|
|
Now you'll want to run "mkinitrd". I'm using ext4 for my root filesystem,
|
|
and since the disk controller requires no special support the ext4 module
|
|
will be the only one I need to load:
|
|
|
|
mkinitrd -c -k 6.1.18 -m ext4
|
|
|
|
This should do two things. First, it will create a directory
|
|
/boot/initrd-tree containing the initrd's filesystem. Then it will
|
|
create an initrd (/boot/initrd.gz) from this tree. If you wanted to,
|
|
you could make some additional changes in /boot/initrd-tree/ and
|
|
then run mkinitrd again without options to rebuild the image. That's
|
|
optional, though, and only advanced users will need to think about that.
|
|
|
|
Here's another example: Build an initrd image using Linux 6.1.18
|
|
kernel modules for a system with an ext4 root partition on /dev/sdb3:
|
|
|
|
mkinitrd -c -k 6.1.18 -m ext4 -f ext4 -r /dev/sdb3
|
|
|
|
|
|
4. Now that I've built an initrd, how do I use it?
|
|
|
|
Now that you've got an initrd (/boot/initrd.gz), you'll want to load
|
|
it along with the kernel at boot time. If you use LILO for your boot
|
|
loader you'll need to edit /etc/lilo.conf and add a line to load the
|
|
initrd. Here's an example section of lilo.conf showing how this is
|
|
done:
|
|
|
|
# Linux bootable partition config begins
|
|
image = /boot/vmlinuz-generic
|
|
initrd = /boot/initrd.gz
|
|
root = /dev/sda6
|
|
label = Slackware
|
|
read-only
|
|
# Linux bootable partition config ends
|
|
|
|
The initrd is loaded by the "initrd = /boot/initrd.gz" line.
|
|
Just add the line right below the line for the kernel image you use.
|
|
Save the file, and then run LILO again ('lilo' at the command line).
|
|
You'll need to run lilo every time you edit lilo.conf or rebuild the
|
|
initrd.
|
|
|
|
Other bootloaders such as syslinux also support the use of an initrd.
|
|
See the documentation for those programs for details on using an
|
|
initrd with them.
|
|
|
|
|
|
---------
|
|
|
|
Have fun!
|