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-07-03 23:37] glen |
packages:anaconda [2008-08-29 14:40] 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> | ||
+ | You will need to load all the necessary file system modules, so put the following into ''/path/to/root/etc/modules'': | ||
- | <file># cat base.lst | + | <file>dm-mod |
- | anaconda | + | ext2 |
- | kernel-grsecurity | + | ext3 |
- | grub | + | jfs |
- | bash | + | reiser4 |
- | less | + | reiserfs |
- | pciutils | + | xfs |
- | usbutils | + | |
- | udev | + | |
- | openssh-clients | + | |
- | openssh-server | + | |
- | eject | + | |
- | vim | + | |
- | sed | + | |
- | dhcpcd | + | |
- | qtparted | + | |
- | linux-live | + | |
- | wireless-tools | + | |
- | iputils-ping | + | |
- | traceroute | + | |
- | wget | + | |
</file> | </file> | ||
- | to install the root 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 --pset=base.lst --uniq --install-dist=/path/to/root | ||
- | </file> | ||
- | to upgrade packages any time just issue: | ||
+ | ===== Creating repodata ===== | ||
+ | As the installer will depend on repodata, you'll need to create repodata in your PLD Linux Distribution mirror. | ||
- | <file># poldek -r /path/to/root -u anypackage | + | |
+ | <file>cd dists/ac/PLD/i686 | ||
+ | umask 2 | ||
+ | createrepo -g comps.xml -c /tmp/cache1 -v PLD/RPMS/ | ||
</file> | </file> | ||
+ | th/ac ftp admin could generate repodata with: | ||
+ | <file>$ gen-indexes ready | ||
+ | </file> | ||
+ | the comps.xml that is used for generation is at: | ||
- | ===== making iso ===== | + | <file>$ l ~/ftp/.stat/repodata/comps.xml |
- | download linux-live.tar.gz from [[http://www.linux-live.org/|http://www.linux-live.org/]]. you'll need kernel which has ext2 compiled in as default PLD Linux Distribution kernel doesn't provide that, you can download precompiled kernel also 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. | + | -rw-r--r-- 1 pldth pldth 114K 2008-01-06 19:09 /home/pld/admins/th/ftp/.stat/repodata/comps.xml |
+ | </file> | ||
+ | and in CVS: [[http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/repodata/|http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/repodata/]] | ||
- | to use the linux-live kernel, pay attention that you need only /boot/vmlinuz-$VERSION /lib/modules/$VERSION. just copy those to your installroot. | + | **NOTE** Currently PLD Linux AC and TH already have repodata on ftp. |
- | ===== creating repodata ===== | ||
- | as the installer will depend on repodata, you'll need to create repodata in your PLD Linux Distribution mirror. | ||
+ | ===== Invoking anaconda ===== | ||
+ | After you've successfully booted from livecd and logged into root shell, invoke anaconda: | ||
- | <file>cd dists/ac/PLD/i686 | + | |
- | umask 2 | + | |
- | createrepo -g comps.xml -c /tmp/cache1 -v PLD/RPMS/ | + | <file>anaconda -T -m ftp://ftp.pld-linux.org/dists/th/ |
</file> | </file> | ||
- | NOTE: Currently PLD Linux AC and TH already have repodata on ftp. | + | This will anaconda install from the selected url. |
- | ===== invoking anaconda ===== | + | ===== Testing changes ===== |
- | after you've successfully booted from livecd and logged into root shell, invoke anaconda: | + | In order to test your changes without building a whole new CD, you can test Anaconda on your local system. To do so, go to the folder where your local build is and type: |
- | <file># cat /root/anaconda-install | + | <file>sudo ./anaconda --test -T -m ftp://ftp.pld-linux.org/dists/th/ |
- | export LC_ALL=en_US.utf-8 | + | </file> |
- | mirror=http://your-mirror/pld | + | You can also test the graphic mode using: |
- | arch=`arch` | + | |
- | url=$mirror/dists/ac/PLD/$arch/ | + | |
- | anaconda --method=$url</file> | + | |
- | this will just autodetect your archidecture and invoke anaconda install from url. | + | <file>sudo ./anaconda --test -G -m ftp://ftp.pld-linux.org/dists/th/ |
+ | </file> | ||
+ | |||
+ | |||
+ | ===== Installing a chroot ===== | ||
+ | To install into a chroot, pass the ''-r'' command line switch: | ||
+ | |||
+ | |||
+ | |||
+ | <file>anaconda -G -m ftp://ftp.pld-linux.org/dists/th/ -r /path/to/chroot | ||
+ | </file> | ||
+ | This will skip the partitioning steps and proceed with software selection and package installation. | ||