This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
docs:man:installing_pld_linux_based_on_rescue_cd [2019-01-21 19:35] arekm [Packages installation] |
docs:man:installing_pld_linux_based_on_rescue_cd [2019-01-21 19:52] arekm [Kernel installation] |
||
---|---|---|---|
Line 106: | Line 106: | ||
==== Prepare to install kernel ==== | ==== Prepare to install kernel ==== | ||
+ | Before installing kernel you need to mount kernel proc, sys and dev filesystems inside of chroot: | ||
<file># mount -o bind /proc /pld/proc | <file># mount -o bind /proc /pld/proc | ||
Line 111: | Line 112: | ||
# mount -o bind /dev /pld/dev | # mount -o bind /dev /pld/dev | ||
</file> | </file> | ||
+ | |||
+ | You need to tell initrd generator which hardware driver is needed to access your rootfs filesystem | ||
+ | by setting scsi_hostadapter alias in **/etc/modprobe,d/modprobe.conf** (or any other file in that directory) | ||
+ | |||
+ | <file>alias scsi_hostadapter ahci</file> | ||
+ | |||
+ | **lspci -k** command run on rescuecd can help you to find a correct driver: | ||
+ | |||
+ | <file> | ||
+ | 00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) | ||
+ | Kernel driver in use: ata_piix | ||
+ | Kernel modules: ata_piix, pata_acpi, ata_generic | ||
+ | </file> | ||
+ | |||
+ | Note **Kernel driver in use: ata_piix** (alias scsi_hostadapter ata_piix) | ||
+ | |||
+ | |||
Configure **/pld/etc/fstab** ex.: | Configure **/pld/etc/fstab** ex.: | ||
<file>/dev/sda1 swap swap defaults 0 0 | <file>/dev/sda1 swap swap defaults 0 0 | ||
- | /dev/sda2 / ext3 defaults 0 0 | + | /dev/sda2 / ext4 defaults 0 0 |
</file> | </file> | ||
+ | |||
\\ :!: Write something more here :!: | \\ :!: Write something more here :!: | ||
Line 123: | Line 142: | ||
- | <file># poldek --root /pld -i kernel | + | <file># poldek --root /pld -i kernel</file> |
- | </file> | + | |
+ | or | ||
+ | |||
+ | <file>#poldek --root /pld -i kernel-some-specific-version</file> | ||
+ | |||
+ | You can also install multiple different kernels. | ||
+ | |||
+ | By default kernel installation also generates initrd based on mounted /proc, /sys, /dev files and configured fstab, modprobe.conf and few others configuration files. generated initrd (which by default is initramfs cpio image) is saved in /boot. | ||
+ | |||
+ | If something fails or you want to regenerate initrd manually you can do it using: | ||
+ | |||
+ | <file>/sbin/geninitrd -v -f /boot/initd-XXX-Y.gz XXX-Y</file> | ||
+ | |||
+ | command. Real example: | ||
+ | |||
+ | <file>/sbin/geninitrd -v -f /boot/initd-4.20.3-1.gz 4.20.3-1</file> | ||
+ | |||
+ | //-v// option causes geninitrd to write additional information, so you can see if proper kernel modules are being installed into initrd. | ||
+ | If booting with new initrd fails you can use **debuginitrd** and **debuginitrd=sh** boot kernel cmdline options to debug the problem. | ||
===== Bootloader ===== | ===== Bootloader ===== | ||