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 [2008-10-21 14:05] glen |
docs:man:installing_pld_linux_based_on_rescue_cd [2018-01-22 10:24] spider some fix |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | /* pragma: section-numbers 2 */ | ||
Line 5: | Line 6: | ||
===== TOC ===== | ===== TOC ===== | ||
+ | /* UndefinedMacro: TableOfContents(None) */ | ||
===== Requirements ===== | ===== Requirements ===== | ||
Line 69: | Line 70: | ||
- | <file># poldek --root /pld | + | <file># rpm --root /pld --initdb |
+ | # poldek --root /pld | ||
- | poldek> install setup FHS dev pwdutils chkconfig dhcpcd poldek vim geninitrd \ | + | poldek> install setup FHS udev pwdutils chkconfig dhcpcd poldek vim geninitrd \ |
- | modutils cpio lilo mount login mingetty | + | kmod cpio lilo |
</file> | </file> | ||
\\ :!: Write something more here :!: | \\ :!: Write something more here :!: | ||
Line 78: | Line 80: | ||
- | ===== Prepare to install kernel ===== | + | ===== Kernel installation ===== |
+ | |||
+ | |||
+ | ==== Prepare to install kernel ==== | ||
- | <file># mount /proc /pldroot/proc -o bind | + | <file># mount -o bind /proc /pld/proc |
+ | # mount -o bind /sys /pld/sys | ||
+ | # mount -o bind /dev /pld/dev | ||
</file> | </file> | ||
- | Configure **/etc/fstab** ex.: | + | Configure **/pld/etc/fstab** ex.: |
<file>/dev/sda1 swap swap defaults 0 0 | <file>/dev/sda1 swap swap defaults 0 0 | ||
Line 92: | Line 99: | ||
- | ===== Kernel installation ===== | + | ==== Kernel installation ==== |
Line 100: | Line 107: | ||
===== Bootloader ===== | ===== Bootloader ===== | ||
- | \\ :!: Write something more here :!: | + | |
+ | |||
+ | ==== lilo ==== | ||
+ | Edit **/pld/etc/lilo.conf** | ||
+ | |||
+ | <file>boot=/dev/sda | ||
+ | read-only | ||
+ | lba32 | ||
+ | prompt | ||
+ | timeout=100 | ||
+ | |||
+ | image=/boot/vmlinuz | ||
+ | label=pld | ||
+ | root=/dev/sda2 | ||
+ | initrd=/boot/initrd | ||
+ | </file> | ||
+ | And execute: | ||
+ | |||
+ | <file># chroot /pld /sbin/lilo | ||
+ | </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 lilo and grub configuration is described here: [[:Docs:man:Bootloader|../Bootloader]] | ||
+ | |||
===== udev ===== | ===== udev ===== |