Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: mrjhb3 on November 02, 2006, 05:48:46 AM
-
I have created a network HTTP install and upgrade for SME 7. The install works great. The upgrade is what I need help on. The upgrade does upgrade the server, but the post-install event is run instead of the post-upgrade event.
I don't know enough about the install process for CentOS/SME 7. If you want to give a short tutorial on that, that would be great as well. I have searched for that, but come up empty in trying to find a site the explains it.
From what I can tell at some time either the kickstart.py or smeinstallclass.py file is run as I see this being executed:
script = ( "/sbin/syslogd &\n"
"sleep 2\n"
"/sbin/e-smith/signal-event post-install\n" )
Is there a parameter that is being passed during the cd-rom install that makes the install run the smeupgradeclass.py that I need to send when trying to do the upgrade? I can see the post-upgrade event in this file.
Here is a copy of my kickstart file that was modified from the anaconda-ks.cfg generated during an install.
Kickstart file automatically generated by anaconda.
upgrade
url --url http://mytestserver.com/sme70
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp
firewall --enabled
selinux --disabled
authconfig --enableshadow --enablemd5
bootloader --location=mbr --driveorder=sda,sdb
# 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
#part raid.100 --size=100 --ondisk=sda --asprimary
#part raid.101 --size=100 --ondisk=sdb --asprimary
#part raid.111 --size=2140 --grow --ondisk=sdb
#part raid.110 --size=2140 --grow --ondisk=sda
#raid /boot --fstype ext3 --level=RAID1 raid.100 raid.101
#raid pv.200 --fstype "physical volume (LVM)" --level=RAID1 raid.110 raid.111
#volgroup main --pesize=32768 pv.200
#logvol swap --fstype swap --name=swap --vgname=main --size=640 --grow --maxsize=1280
#logvol / --fstype ext3 --name=root --vgname=main --size=1300 --grow
%packages
kernel
e2fsprogs
grub
mdadm
lvm2
%post
Thanks,
John Bennett