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
Last revision Both sides next revision
docs:man:installing_pld_linux_based_on_rescue_cd [2019-01-21 19:52]
arekm [Kernel installation]
docs:man:installing_pld_linux_based_on_rescue_cd [2019-01-21 20:20]
arekm [Kernel installation]
Line 13: Line 13:
  
 ===== Partition disk ===== ===== Partition disk =====
-Use for example ''​cfdisk''​ to partition your destination disk. Usually root partition (/) and swap is enough. \\ :!: Write something more here :!: +Use for example ''​cfdisk''​ to partition your destination disk. Usually root partition (/) and swap is enough. 
 + 
 +\\ :!: Write something more here :!: 
  
  
Line 85: Line 87:
 ===== Packages installation ===== ===== Packages installation =====
  
 +All packages are installed using **poldek** tool (it is a package manager for PLD).
  
 <​file>#​ rpm --root /pld --initdb <​file>#​ rpm --root /pld --initdb
Line 94: Line 97:
 Packages which make sense to be installed: Packages which make sense to be installed:
  
-//udev pwdutils dhcpcd poldek vim geninitrd grub2 e2fsprogs//+<​file>​udev pwdutils dhcpcd poldek vim geninitrd grub2 e2fsprogs ​tzdata glibc-localedb-all<​/file> 
 + 
 +If **xfs** filesystem was chosen then please install: 
 + 
 +<​file>​xfsprogs<​/file>
  
  
Line 127: Line 134:
  
 Note **Kernel driver in use: ata_piix** (alias scsi_hostadapter ata_piix) Note **Kernel driver in use: ata_piix** (alias scsi_hostadapter ata_piix)
 +
 +While at it, on actual installed PLD system (not needed on rescuecd), you can do the same for network card driver:
 +
 +<​file>​alias netdev-eth0 e1000e</​file>​
 +
 +(again **lspci -k** will help to choose correct one)
  
  
Line 151: Line 164:
  
 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. 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.
 +
 +There are two initrd generators used in PLD: geninitrd and dracut. Choose one.
 +
 +=== geninitrd ===
  
 If something fails or you want to regenerate initrd manually you can do it using: If something fails or you want to regenerate initrd manually you can do it using:
Line 161: Line 178:
  
 //-v// option causes geninitrd to write additional information,​ so you can see if proper kernel modules are being installed into initrd. //-v// option causes geninitrd to write additional information,​ so you can see if proper kernel modules are being installed into initrd.
 +
 +=== dracut ===
 +
 +
 +
 +PLD supports systemd and non-systemd installations. In case of systemd installation you need to install package
 +
 +<​file>​systemd</​file>​
 +
 +package and setup default boot kernel cmdline option in grub/lilo. Add
 +
 +<​file>​init=/​bin/​systemd systemd.unit=graphical.target</​file>​
  
  
Line 166: Line 195:
 ===== 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**. Setting custom options for grub2 can be done in **/​etc/​sysconfig/​grub** (then regenerate **grub.cfg** with **update-grub** command). 
 + 
 + 
 +==== lilo (deprecated) ​====
 Edit **/​pld/​etc/​lilo.conf** ​ Edit **/​pld/​etc/​lilo.conf** ​
  
Line 186: Line 227:
 </​file>​ </​file>​
  
 +==== Advanced configuration ====
 +Advanced lilo and grub configuration is described here: [[:​Docs:​man:​Bootloader|../​Bootloader]] ​
  
-==== grub ==== 
-Edit **/​pld/​boot/​grub/​menu.lst** ​ 
  
  
 +===== udev =====
 +\\ :!: Write something more here :!: 
  
-<​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 +===== User accounts =====
-</​file>​ +
-A Grub's shell will started. Let's make some changes: ​+
  
-<​file>​grub> ​root (hd0,1) +By default **root** account doesn'​t have any password set and by default that will prevent you from logging in. Setup root password
-grub> setup (hd0) +
-grub> quit +
-</​file>​+
  
 +<​file>​chroot /pld && passwd</​file>​
  
-==== Advanced configuration ==== +\\ :!Write something more here :!
-Advanced lilo and grub configuration is described here[[:Docs:man:Bootloader|../​Bootloader]] ​+
  
 +===== Finishing =====
  
 +If manual network configuration was required for RescueCD then most liikely you need to repeat that [[docs:​man:​installing_pld_linux_based_on_rescue_cd#​network_configuration_of_rescuecd|step]] on installed PLD system, too.
  
-===== udev ===== +Last step is umount all filesystems:
-\\ :!: Write something more here :!+
  
 +<​file>​umount -R /​pld</​file>​
  
 +and reboot:
  
-===== User accounts ===== +<​file>​reboot</​file>​. 
-\\ :!: Write something more here :!: + 
 + 
 +If you find errors on this page or want to add anything to installation procedure please write to us at feedback / pld-linux.org.
  
-===== Finishing ===== 
 \\ :!: Write something more here :!:  \\ :!: Write something more here :!: 
  
docs/man/installing_pld_linux_based_on_rescue_cd.txt · Last modified: 2019-01-21 20:21 by arekm