From Fedora Project Wiki

< SIGs‎ | Spins

No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:


Some notes on how package ordering should work. These notes attempt to use the least amount of discs in case a Next, Next, Finish type installation is performed.
Some notes on how package ordering should work. These notes attempt to use the least amount of discs in case a Next, Next, Finish type installation is performed.
== The Problem ==
Installing Fedora 10 from CD media uses 5 discs for a "default" installation (Next, Next, Finish)
== Troubleshooting ==
# Install Fedora 10 from a DVD using Next, Next, Finish
# Grab the install.log from /root/
# Grab <code>rpm -qa --qf="%{NAME}.%{ARCH}\n"</code> for comparison (Attached: [[Image:PackageOrdering-Fedora10-Rpm-name.arch.log]])
# Compare the installed rpms to the payload on each disc


== From the Installer perspective ==
== From the Installer perspective ==
Line 20: Line 31:
== In Python Code ==
== In Python Code ==


* In comps.xml, some groups are marked ''<default>true</default>'', others are marked ''<default>True</default>''.
# Get the comps groups from yum.comps.groups
# Iterate the groups and get the default groups, the non-default groups, and the non-default @*-support groups
## In comps.xml, some groups are marked ''<default>true</default>'', others are marked ''<default>True</default>''. Note that the former doesn't allow itself to be compared in Python '''if''' statements, and you need to ''bool(group.default)''.
 
== Files ==


Note that the former doesn't allow itself to be compared in Python '''if''' statements, and you need to ''bool(group.default)''.
[[Image:PackageOrdering-Fedora10-Rpm-name.arch.log]]

Latest revision as of 16:19, 15 December 2008

Package Ordering

Some notes on how package ordering should work. These notes attempt to use the least amount of discs in case a Next, Next, Finish type installation is performed.

The Problem

Installing Fedora 10 from CD media uses 5 discs for a "default" installation (Next, Next, Finish)

Troubleshooting

  1. Install Fedora 10 from a DVD using Next, Next, Finish
  2. Grab the install.log from /root/
  3. Grab rpm -qa --qf="%{NAME}.%{ARCH}\n" for comparison (Attached: File:PackageOrdering-Fedora10-Rpm-name.arch.log)
  4. Compare the installed rpms to the payload on each disc

From the Installer perspective

  • Install all groups marked default in comps.xml
  • Install any of the available categories of groups, listed in installclasses/fedora.py
    • These categories contain lists of groups to be added to the installation
  • Customize the installation

The Selection of Packages from Groups

  • From the groups selected, default packages are selected.
    • Optional packages from the group may have been pulled in, which appear as "unselected" in the group.

Default packages from default groups are selected when a Next, Next, Finish type installation is performed

In Python Code

  1. Get the comps groups from yum.comps.groups
  2. Iterate the groups and get the default groups, the non-default groups, and the non-default @*-support groups
    1. In comps.xml, some groups are marked <default>true</default>, others are marked <default>True</default>. Note that the former doesn't allow itself to be compared in Python if statements, and you need to bool(group.default).

Files

File:PackageOrdering-Fedora10-Rpm-name.arch.log