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 | ||
packages:anaconda [2007-12-14 19:05] patrys |
packages:anaconda [2008-08-27 23:28] patrys |
||
---|---|---|---|
Line 10: | Line 10: | ||
- | ===== links ===== | + | ===== Creating livecd ===== |
- | * [[http://lal.bizhat.com/docs/anaconda.html|http://lal.bizhat.com/docs/anaconda.html]] | + | Start by creating the Live CD root. Necessary steps are described at [[:Packages:LinuxLive|Linux Live]]. |
+ | Next install the ''anaconda'' package into the new root: | ||
- | ===== creating livecd ===== | ||
- | I used [[http://www.linux-live.org/|http://www.linux-live.org/]] and [[http://poldek.pld-linux.org/|http://poldek.pld-linux.org/]] to create the livecd. | ||
- | The packages choice may vary for you, but here's my packages choice: | + | <file># poldek -r /path/to/root -U anaconda |
- | + | ||
- | + | ||
- | + | ||
- | <file># cat base.lst | + | |
- | FHS | + | |
- | anaconda | + | |
- | basesystem | + | |
- | bash | + | |
- | blockdev | + | |
- | dhcpcd | + | |
- | eject | + | |
- | fsck | + | |
- | grub | + | |
- | iproute2 | + | |
- | iputils-ping | + | |
- | kernel | + | |
- | less | + | |
- | linux-live | + | |
- | lvm2 | + | |
- | mingetty | + | |
- | mount | + | |
- | openssh-clients | + | |
- | openssh-server | + | |
- | pciutils | + | |
- | sed | + | |
- | terminfo | + | |
- | traceroute | + | |
- | udev | + | |
- | usbutils | + | |
- | vim | + | |
- | wget | + | |
- | wireless-tools | + | |
</file> | </file> | ||
- | to install the root issue: | + | You will need to load all the necessary file system modules, so put the following into ''/path/to/root/etc/modules'': |
- | <file># poldek --pset=base.lst --uniq --install-dist=/path/to/root | + | <file>dm-mod |
+ | ext2 | ||
+ | ext3 | ||
+ | jfs | ||
+ | reiser4 | ||
+ | reiserfs | ||
+ | xfs | ||
</file> | </file> | ||
- | to upgrade packages any time just issue: | + | Also make sure the ''kbd'' package is installed and configured to start consoles in UTF-8 locale. |
+ | Then proceed with the rest of the steps and create an ISO image. | ||
- | <file># poldek -r /path/to/root -u anypackage | ||
- | </file> | ||
- | + | ===== Creating repodata ===== | |
- | ===== making iso ===== | + | As the installer will depend on repodata, you'll need to create repodata in your PLD Linux Distribution mirror. |
- | Install linux-live-build. You'll need kernel which has ext2 compiled in as default PLD Linux Distribution kernel doesn't provide that, you can download precompiled kernel from linux-live site. You should set password for root, or alter /etc/inittab to execute shell instanly after boot or you'll not be able to login. | + | |
- | + | ||
- | To use the linux-live kernel, pay attention that you need only /boot/vmlinuz-$VERSION /lib/modules/$VERSION. just copy those to your installroot. | + | |
- | + | ||
- | To build your CD use: | + | |
- | + | ||
- | + | ||
- | + | ||
- | <file># ROOT=/path/to/your/root /usr/lib/linux-live/build | + | |
- | </file> | + | |
- | Then to create ISO, cd 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> | + | |
- | + | ||
- | + | ||
- | ===== creating repodata ===== | + | |
- | as the installer will depend on repodata, you'll need to create repodata in your PLD Linux Distribution mirror. | + | |
Line 94: | Line 46: | ||
createrepo -g comps.xml -c /tmp/cache1 -v PLD/RPMS/ | createrepo -g comps.xml -c /tmp/cache1 -v PLD/RPMS/ | ||
</file> | </file> | ||
- | NOTE: Currently PLD Linux AC and TH already have repodata on ftp. | + | **NOTE** Currently PLD Linux AC and TH already have repodata on ftp. |
- | ===== invoking anaconda ===== | + | ===== Invoking anaconda ===== |
- | after you've successfully booted from livecd and logged into root shell, invoke anaconda: | + | After you've successfully booted from livecd and logged into root shell, invoke anaconda: |
- | <file># cat /root/anaconda-install | + | <file>anaconda -C -m ftp://ftp.pld-linux.org/dists/th/ |
- | export LC_ALL=en_US.utf-8 | + | </file> |
- | mirror=http://your-mirror/pld | + | This will anaconda install from the selected url. |
- | arch=`arch` | + | |
- | url=$mirror/dists/ac/PLD/$arch/ | + | |
- | anaconda --method=$url</file> | + | |
- | this will just autodetect your archidecture and invoke anaconda install from url. | + | |