User Tools

Site Tools


docs:man:installing_pld_linux_based_on_rescue_cd

This is an old revision of the document!


Installing PLD Linux based on Rescue CD

TOC

Requirements

Download RescueCD from : Rescue CD. PLD rescue new is preferred.

Partition disk

Use for example cfdisk to partition your destination disk. Usually root partition (/) and swap is enough.
:!: Write something more here :!:

Filesystem

Initiate swap space:

# mkswap /dev/sda1

Make filesystem (ex. ext4):

# mkfs.ext4 /dev/sda2

We need to create mountpoint and mount partition into it:

# mkdir /pld
# mount /dev/sda2 /pld

If more partitions are going to be used (like you want to have separate /boot or /home) then these need to be mounted now, too.

Network configuration of RescueCD

RescueCD and installed PLD system will use the same way of configuring network.

By default both try to use DHCP to automatically configure network interface during a boot process. If that works for you you don't need to do anything.

If manual configuration is required then configure networking using files below.

eth0 interface configuration: /etc/sysconfig/interfaces/ifcfg-eth0

Assume you want 192.168.0.2 with /24 network (CIRD notation is preferred)

DEVICE=eth0
IPADDR=192.168.0.2/24
ONBOOT=yes
BOOTPROTO=none

Default gateway and default gateway interface configuration: /etc/sysconfig/network

enable networking, ipv4 networking, set default gateway and interface which should be used to reach geteway:

NETWORKING=yes
IPV4_NETWORKING=yes
GATEWAY=192.168.0.254
GATEWAYDEV=eth0

DNS resolver IP addresses configuration: /etc/resolv.conf

Add default nameservers:

nameserver 1.1.1.1
nameserver 8.8.8.8

Reload network

# service network restart

Poldek's configuration

In file /etc/poldek/repos.d/pld.conf We need to set _arch = to chosen architecture ex.

_arch   = x86_64

Packages installation

# rpm --root /pld --initdb
# poldek --root /pld

poldek> install LIST OF PACKAGES REQUIRED FOR RUNNING SYSTEM

Packages which make sense to be installed:

udev pwdutils dhcpcd poldek vim geninitrd grub2 e2fsprogs


:!: Write something more here :!:

Kernel installation

Prepare to install kernel

Before installing kernel you need to mount kernel proc, sys and dev filesystems inside of chroot:

# mount -o bind /proc /pld/proc
# mount -o bind /sys /pld/sys
# mount -o bind /dev /pld/dev

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)

alias scsi_hostadapter ahci

lspci -k command run on rescuecd can help you to find a correct driver:

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

Note Kernel driver in use: ata_piix (alias scsi_hostadapter ata_piix)

Configure /pld/etc/fstab ex.:

/dev/sda1 swap swap defaults 0 0
/dev/sda2 /    ext4 defaults 0 0


:!: Write something more here :!:

Kernel installation

# poldek --root /pld -i kernel

Bootloader

lilo

Edit /pld/etc/lilo.conf

boot=/dev/sda
read-only
lba32
prompt
timeout=100

image=/boot/vmlinuz
        label=pld
        root=/dev/sda2
        initrd=/boot/initrd

And execute:

# chroot /pld /sbin/lilo

grub

Edit /pld/boot/grub/menu.lst

timeout 10

title  pld
root (hd0,1)
kernel /boot/vmlinuz boot=/dev/hda
initrd /boot/initrd

And execute

# chroot /pld /sbin/grub

A Grub's shell will started. Let's make some changes:

grub> root (hd0,1)
grub> setup (hd0)
grub> quit

Advanced configuration

Advanced lilo and grub configuration is described here: ../Bootloader

udev


:!: Write something more here :!:

User accounts


:!: Write something more here :!:

Finishing


:!: Write something more here :!:

TOC

CategoryUpdateNeeded

docs/man/installing_pld_linux_based_on_rescue_cd.1548096453.txt.gz · Last modified: 2019-01-21 19:47 by arekm