User Tools

Site Tools


packages:anaconda

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
packages:anaconda [2007-12-14 19:05]
patrys
packages:anaconda [2016-01-16 09:34] (current)
glen
Line 3: Line 3:
 ====== Anaconda PLD Linux notes ====== ====== Anaconda PLD Linux notes ======
  
-  * [[http://​cvs.pld-linux.org/​cgi-bin/​cvsweb.cgi/​SPECS/​anaconda.spec|SPECS/​anaconda.spec]]  +  * [[package>anaconda]]  
-  * [[http://​glen.alkohol.ee/​pld/​anaconda/​|screenshots of progress]] ​+  * [[http://​glen.alkohol.ee/​pld/​anaconda/​|screenshots of progress ​(2006)]] 
  
  
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 [[linux-live|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 youbut here's my packages choice+<​file>#​ poldek -r /​path/​to/​root -U anaconda 
 +</​file>​ 
 +You will need to load all the necessary file system modulesso put the following into ''/​path/​to/​root/​etc/​modules'​': ​
  
  
  
-<​file>​# cat base.lst +<​file>​dm-mod 
-FHS +ext2 
-anaconda +ext3 
-basesystem +jfs 
-bash +reiser4 
-blockdev +reiserfs 
-dhcpcd +xfs
-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: ​+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 =====
 +To get an idea of how installation works, see the following graph: ​
  
 +{{inside-anaconda.png|}} ​
  
-<​file>#​ poldek -r /path/to/root -u anypackage +As the installer will depend on repodata, you'll need to create repodata in your PLD Linux Distribution mirror. ​
-</​file>​+
  
  
-===== making iso ===== 
-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. ​+<​file>​cd dists/​ac/​PLD/​i686 
 +umask 2 
 +createrepo -g comps.xml ​-/tmp/cache1 ​-v PLD/RPMS/ 
 +</file> 
 +th/ac ftp admin could generate repodata with: 
  
-To build your CD use+<​file>​$ gen-indexes ready 
 +</​file>​ 
 +the comps.xml that is used for generation is at
  
 +<​file>​$ l ~/​ftp/​.stat/​repodata/​comps.xml
 +-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/​]] ​
  
 +**NOTE** Currently PLD Linux AC and TH already have repodata on ftp. 
  
-<​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:  
  
  
 +===== Invoking anaconda =====
 +After you've successfully booted from livecd and logged into root shell, invoke anaconda: ​
  
-<​file>​# sh make_iso.sh+ 
 + 
 +<​file>​anaconda -T -m http://ftp.pld-linux.org/​dists/​th/​
 </​file>​ </​file>​
 +Please note that http installation is preferred to ftp due to the way yum (current backend) works. It fetches package headers using partial download and ftp does not offer that feature. ​
  
 +This will anaconda install from the selected url. 
  
-===== creating repodata ===== 
-as the installer will depend on repodata, you'll need to create repodata in your PLD Linux Distribution mirror. ​ 
  
  
 +===== Testing changes =====
 +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>​cd dists/ac/PLD/i686 + 
-umask 2 + 
-createrepo ​-g comps.xml ​-/tmp/cache1 ​-v PLD/RPMS/+<​file>​sudo ./anaconda ​--test -T -m http://ftp.pld-linux.org/​dists/th/
 </​file>​ </​file>​
-NOTECurrently PLD Linux AC and TH already have repodata on ftp. +You can also test the graphic mode using
  
  
  
-===== invoking ​anaconda ​===== +<​file>​sudo ./anaconda ​--test -G -m http://​ftp.pld-linux.org/​dists/​th/​ 
-after you've successfully booted from livecd and logged into root shell, invoke anaconda: ​+</​file>​
  
  
 +===== Installing a chroot =====
 +To install into a chroot, pass the ''​-r''​ command line switch: ​
  
-<​file>​# cat /root/anaconda-install + 
-export LC_ALL=en_US.utf-+ 
-mirror=http://your-mirror/​pld +<​file>​anaconda --http://ftp.pld-linux.org/dists/th-r /path/to/chroot 
-arch=`arch` +</​file>​ 
-url=$mirror/dists/ac/PLD/$arch+This will skip the partitioning steps and proceed with software selection and package installation
-anaconda --method=$url</​file>​ +
-this will just autodetect your archidecture ​and invoke anaconda install from url+
  
  
packages/anaconda.1197655556.txt.gz · Last modified: 2007-12-14 19:05 by patrys