User Tools

Site Tools


docs:man:installing_pld_linux_based_on_rescue_cd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:47]
arekm [Prepare to install kernel]
docs:man:installing_pld_linux_based_on_rescue_cd [2019-01-21 19:55]
arekm
Line 142: 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 =====
  
 +==== grub2 ====
  
-==== lilo ====+Install grub2 on boot sector of disk: 
 + 
 +<​file>​grub-install /​dev/​sda</​file>​ 
 + 
 +Generate configuration file for grub2: 
 + 
 +<​file>​update-grub</​file>​ 
 + 
 +Resulting file is saved as **/​boot/​grub/​grub.cfg**. 
 + 
 + 
 +==== lilo (deprecated) ​====
 Edit **/​pld/​etc/​lilo.conf** ​ Edit **/​pld/​etc/​lilo.conf** ​
  
Line 167: Line 197:
 <​file>#​ chroot /pld /sbin/lilo <​file>#​ chroot /pld /sbin/lilo
 </​file>​ </​file>​
- 
- 
-==== grub ==== 
-Edit **/​pld/​boot/​grub/​menu.lst** ​ 
- 
- 
- 
-<​file>​timeout 10 
- 
-title  pld 
-root (hd0,1) 
-kernel /​boot/​vmlinuz boot=/​dev/​hda 
-initrd /​boot/​initrd 
-</​file>​ 
-And execute ​ 
- 
-<​file>#​ chroot /pld /sbin/grub 
-</​file>​ 
-A Grub's shell will started. Let's make some changes: ​ 
- 
-<​file>​grub>​ root (hd0,1) 
-grub> setup (hd0) 
-grub> quit 
-</​file>​ 
- 
  
 ==== Advanced configuration ==== ==== Advanced configuration ====
docs/man/installing_pld_linux_based_on_rescue_cd.txt · Last modified: 2019-01-21 20:21 by arekm