[Server-devel] xs-pkgs

Tim Moody timmoody at sympatico.ca
Sat Mar 31 19:32:52 EDT 2012


All of this has been with cobbler since I never got the cd install to work 
because it could never format the disk, which btw is a simple 40G drive with 
no raid or anything else fancy that has already had Centos and now XS on it. 
The target machine can connect to the cobbler server but not beyond that, so 
no internet access.

I know this is all non-standard, so I understand if you prefer to let me 
struggle with it.  My ultimate aim is to redocument cobbler for 0.7.

** anaconda-ks.cfg has:

# Kickstart file automatically generated by anaconda.

#version=DEVEL
install
url --url=http://10.1.0.1/cblr/links/XS-0.7-i386
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp
network --onboot yes --device eth1 --bootproto dhcp --noipv6
rootpw  --iscrypted $1$mF86/UHC$WvcIcX2t6crBz2onWxyac.
# Reboot after installation
reboot
firewall --service=ssh
authconfig --useshadow  --enablemd5
selinux --disabled
timezone America/New_York
bootloader --location=mbr --driveorder=sda,sdb --append=" rhgb 
crashkernel=auto quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --all --initlabel
#volgroup VolGroup --pesize=4096 pv.008002 pv.008017
#logvol 
/home --fstype=ext4 --name=lv_home --vgname=VolGroup --grow --size=100
#logvol 
/ --fstype=ext4 --name=lv_root --vgname=VolGroup --grow --size=1024 --maxsize=51200
#logvol 
swap --name=lv_swap --vgname=VolGroup --grow --size=496 --maxsize=992

#part /boot --fstype=ext4 --size=500
#part pv.008002 --grow --size=1

#part pv.008017 --grow --size=1


repo --name="OLPC School 
erver"  --baseurl=http://10.1.0.1/cblr/links/XS-0.7-i386 --cost=100
repo --name="source-1"  --baseurl=http://10.1.0.1/cobbler/ks_mirror/XS-0.7-i386 
 --cost=1000

%packages
@Base
@Core

%end

%pre
set -x -v
exec 1>/tmp/ks-pre.log 2>&1

# Once root's homedir is there, copy over the log.
while : ; do
    sleep 10
    if [ -d /mnt/sysimage/root ]; then
        cp /tmp/ks-pre.log /mnt/sysimage/root/
        logger "Copied %pre section log to system"
        break
    fi
done &


wget "http://10.1.0.1/cblr/svc/op/trig/mode/pre/profile/XS-0.7-i386" -O 
/dev/null

# Enable installation monitoring


%end

%post
set -x -v
exec 1>/root/ks-post.log 2>&1

# Start yum configuration
wget 
"http://10.1.0.1/cblr/svc/op/yum/profile/XS-0.7-i386" --output-document=/etc/yum.repos.d/cobbler-config.repo

# End yum configuration



# Start post_install_network_config generated code
# End post_install_network_config generated code




# Start download cobbler managed config files (if applicable)
# End download cobbler managed config files (if applicable)

# Start koan environment setup
echo "export COBBLER_SERVER=10.1.0.1" > /etc/profile.d/cobbler.sh
echo "setenv COBBLER_SERVER 10.1.0.1" > /etc/profile.d/cobbler.csh
# End koan environment setup

# begin Red Hat management server registration
# not configured to register to any Red Hat management server (ok)
# end Red Hat management server registration

# Begin cobbler registration
# cobbler registration is disabled in /etc/cobbler/settings
# End cobbler registration

# Enable post-install boot notification

# Start final steps

wget "http://10.1.0.1/cblr/svc/op/ks/profile/XS-0.7-i386" -O 
/root/cobbler.ks
wget "http://10.1.0.1/cblr/svc/op/trig/mode/post/profile/XS-0.7-i386" -O 
/dev/null
# End final steps
%end

** /etc/yum.repos.d currently contains the following, but I have deleted 
some of the files there in order to get yum groupinstall "OLPC XS" to work

[root at schoolserver ~]# ll /etc/yum.repos.d
total 16
-rw-r--r-- 1 root root  109 Mar 30 11:34 cobbler-config.repo
-rw-r--r-- 1 root root  974 Feb 16 09:02 epel.repo
-rw-r--r-- 1 root root  974 Feb 16 09:02 epel.repo.in
-rw-r--r-- 1 root root 1056 Oct 12  2010 epel-testing.repo

epel.repo is representative.  my XS will not be able to reach any of the 
urls.  I also don't know where the three epel repos came from as they were 
not there when I did the yum groupinstall "OLPC XS

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
exclude=ejabberd

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

yum config contains

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

#  This is the default, if you make this bigger yum won't see if the 
metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this 
checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
 



More information about the Server-devel mailing list