This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
packages:linux-live [2007-12-16 21:01] patrys |
packages:linux-live [2008-11-18 23:56] patrys |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | |||
- | ====== Creating a PLD Live CD ====== | ||
- | |||
- | |||
- | ===== Creating the CD root ===== | ||
- | First, start by creating a directory for the CD. Issue the following command adjusting the path to suit your needs: | ||
- | |||
- | |||
- | |||
- | <file>mkdir -p /path/to/root | ||
- | </file> | ||
- | Next select the packages to install. The following list should be a nice start: | ||
- | |||
- | |||
- | |||
- | <file># cat base.lst | ||
- | FHS | ||
- | basesystem | ||
- | bash | ||
- | blockdev | ||
- | dhcpcd | ||
- | eject | ||
- | fix-info-dir | ||
- | fsck | ||
- | grub | ||
- | iproute2 | ||
- | iputils-ping | ||
- | less | ||
- | linux-live | ||
- | linux-live-kernel | ||
- | lvm2 | ||
- | mingetty | ||
- | mount | ||
- | openssh-clients | ||
- | openssh-server | ||
- | pciutils | ||
- | sed | ||
- | terminfo | ||
- | traceroute | ||
- | udev | ||
- | usbutils | ||
- | vim | ||
- | wget | ||
- | wireless-tools | ||
- | </file> | ||
- | To install the root issue: | ||
- | |||
- | |||
- | |||
- | <file># poldek --pset=base.lst --uniq --install-dist=/path/to/root | ||
- | </file> | ||
- | To upgrade/install/remove packages at any time just use the ''-r'' parameter: | ||
- | |||
- | |||
- | |||
- | <file># poldek -r /path/to/root -u anypackage | ||
- | </file> | ||
- | **Notice:** ''linux-live'' from ''DEVEL'' branch currently supports PLD kernels. If you want to use it, replace ''linux-live-kernel'' above with appropriate ''kernel'' and ''kernel-fs-aufs'' packages. | ||
- | |||
- | |||
- | |||
- | ===== Preparing the ISO image ===== | ||
- | Start by installing ''linux-live-build'' on your host system. | ||
- | |||
- | Remember to set password for ''root'' or alter ''/etc/inittab'' to execute shell instantly after boot or you'll not be able to login. To set the password, just mount ''/dev'' and ''chroot'' to the installation root: | ||
- | |||
- | |||
- | |||
- | <file># mount /dev /path/to/root/dev -o bind | ||
- | # chroot /path/to/root | ||
- | </file> | ||
- | Now you can put any necessary changes in place. | ||
- | |||
- | To build your CD use: | ||
- | |||
- | |||
- | |||
- | <file># export ROOT=/path/to/root | ||
- | # /usr/lib/linux-live/build | ||
- | </file> | ||
- | Then to create ISO, go to the ''/tmp/live_data_*'' directory created by the above command. Then ''cd'' to your live name and run: | ||
- | |||
- | |||
- | |||
- | <file># sh make_iso.sh | ||
- | </file> | ||