AOOI Problem

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
Iratus
Forum User
Forum User
Posts: 5
Joined: Sun Nov 18, 2007 7:57 am

AOOI Problem

Unread post by Iratus »

Hi There,

I've been having a bit of a problem with your AOOI script (great idea by the way) basically I have an older 32 Bit 1and1 root server that I've been trying to rebuild with CentOS the whole weekend,

My basic problem is that the kickstart config is making the CentOS installation want to install packages that are on disks 2 and 3. I downloaded disk 2 and put that in the /mnt partition and that got me much further along but due to 1and1's awesome configuration I've not got enough space on hda2 (2gb...) to put the 3rd CD in there too.

What should I be trying next, will a symbolic link to the iso's in a different partition work or should I be changing the jumpstart script to pull it back down to the minimal install and then bringing it back up to spec once I have CentOS core on there with a network connection,

Pervesely I tried dropping other 1and1 images to see if any of the partitions were more sensible but that's bricked the server so I'm waiting for 1and1 to bring it back up lol.

Any advice appreciated

Sam
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Hmm... it should only need the 1 CD on i386. Which ks.cfg is that pulling down?
Iratus
Forum User
Forum User
Posts: 5
Joined: Sun Nov 18, 2007 7:57 am

Unread post by Iratus »

The 1and1 i386 one.

Basically it loads up the installer fine, comes up with an error saying kernel-smp not found. Then trys to install 517 packages some of which are on CD 2 and 3

Code: Select all

# Kickstart file automatically generated by anaconda.

install
harddrive --partition=hda2 --dir=
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard us
xconfig --card "Intel 915" --videoram 16384 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$wjaV0A/I$qZ./GcXKO4w2UyGKx5ibr/
firewall --disabled
selinux --disabled
authconfig --enableshadow --enablemd5
timezone America/New_York
bootloader --location=mbr --append="console=ttyS0,57600n8"
# 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 --linux
part /boot --fstype ext3 --size=512
part / --fstype ext3 --size=1 --grow

reboot

%packages
@ web-server
@ mail-server
@ dns-server
@ server-cfg
@ dialup
@ admin-tools
@ printing
@ ftp-server
@ smb-server
kernel-smp
e2fsprogs
grub

%post

echo "/sbin/route add -net 10.255.255.1 netmask 255.255.255.255 dev eth0" >> /etc/rc.d/rc.local
echo "/sbin/route add default gw 10.255.255.1" >> /etc/rc.d/rc.local

sfdisk --change-id /dev/hda 2 82
mkswap /dev/hda2

echo "/dev/hda2               swap                    swap    defaults        0 0" >> /etc/fstab
[/code]
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

ah you know what, thats the centos 4 ks.cfg. I just updated it in the 0.9.5 release
Iratus
Forum User
Forum User
Posts: 5
Joined: Sun Nov 18, 2007 7:57 am

Unread post by Iratus »

Awesome, I'll give that a whirl tomorrow and if it works I can finally have something to warrant the ASL subscription.

Thanks.
Iratus
Forum User
Forum User
Posts: 5
Joined: Sun Nov 18, 2007 7:57 am

Unread post by Iratus »

Ok, it's better now but it's still asking for things from CD 2. The installed packages has dropped to 455 though. Will submit ks.cfg when I've finished rebuilding.

Code: Select all

# Kickstart file automatically generated by anaconda.

install
harddrive --partition=hda2 --dir=
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard us
xconfig --card "Intel 915" --videoram 16384 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$wjaV0A/I$qZ./GcXKO4w2UyGKx5ibr/
firewall --disabled
selinux --disabled
authconfig --enableshadow --enablemd5
timezone America/New_York
bootloader --location=mbr --append="console=ttyS0,57600n8"
# 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 --linux
part /boot --fstype ext3 --size=512
part / --fstype ext3 --size=1 --grow

reboot

%packages
@ admin-tools
@ server-cfg
kernel
e2fsprogs
grub

%post

echo "/sbin/route add -net 10.255.255.1 netmask 255.255.255.255 dev eth0" >> /etc/rc.d/rc.local
echo "/sbin/route add default gw 10.255.255.1" >> /etc/rc.d/rc.local

sfdisk --change-id /dev/hda 2 82
mkswap /dev/hda2

echo "/dev/hda2               swap                    swap    defaults        0 0" >> /etc/fstab
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Awesome, that was going to be my next suggestion.
Iratus
Forum User
Forum User
Posts: 5
Joined: Sun Nov 18, 2007 7:57 am

Unread post by Iratus »

Right, finally got that kickstart to work by downloading cd 2 and putting it in /mnt as well. Huge relief.

I'm actually waiting on another physical box to be provisioned from 1and1 so when I have a less pressing need I'm going to see if I can work out what packages are missing from that install on CD1 and I'll let you know.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I havent tried this yet, but I think if you remove everything under %packages it should just default to a minimal install that only requires disc 1.
Post Reply