Hi Marc!
Thanks for the help.
This was actually one of the first things I tried and it did not work.
I managed to get it working now though, and what I had to do was to change
the path for the eject-command. It seems like Fedora, before running the
%post -part of the installation actually unmounts the temporary installation
system that is mounted and mounts the newly installed system.
Therefore, to make this work with Fedora 3 I added the following to the
%post part of the Kickstart-configuration:
echo "Ejecting CD"
mkdir /mnt/hda
mkdir /mnt/hdb
mkdir /mnt/hdc
mkdir /mnt/hdd
mknod /dev/hda b 3 0
mknod /dev/hdb b 3 64
mknod /dev/hdc b 22 0
mknod /dev/hdd b 22 64
echo '/dev/hda /mnt/hda iso9660,ro 0 0' >> /etc/fstab
echo '/dev/hdb /mnt/hdb iso9660,ro 0 0' >> /etc/fstab
echo '/dev/hdc /mnt/hdc iso9660,ro 0 0' >> /etc/fstab
echo '/dev/hdd /mnt/hdd iso9660,ro 0 0' >> /etc/fstab
/usr/bin/eject /dev/hda
/usr/bin/eject /dev/hdb
/usr/bin/eject /dev/hdc
/usr/bin/eject /dev/hdd
Thank you all for coming with tips!
Mattias
From: "Marc Wiatrowski" <wia@xxxxxxxxxx>
Reply-To: Discussion list about Kickstart <kickstart-list@xxxxxxxxxx>
To: "'Discussion list about Kickstart'" <kickstart-list@xxxxxxxxxx>
Subject: RE: Ejecting CD after kickstart installation
Date: Mon, 20 Feb 2006 09:01:15 -0500
I got this from the list a while back and has been working for me
with Enterprise 3. You could probably narrow down the devices,
but this just makes sure it hits everything.
hopefully its useful,
marc
---
%post --nochroot
mkdir /mnt/hda
mkdir /mnt/hdb
mkdir /mnt/hdc
mkdir /mnt/hdd
mknod /dev/hda b 3 0
mknod /dev/hdb b 3 64
mknod /dev/hdc b 22 0
mknod /dev/hdd b 22 64
echo '/dev/hda /mnt/hda iso9660,ro 0 0' >> /etc/fstab
echo '/dev/hdb /mnt/hdb iso9660,ro 0 0' >> /etc/fstab
echo '/dev/hdc /mnt/hdc iso9660,ro 0 0' >> /etc/fstab
echo '/dev/hdd /mnt/hdd iso9660,ro 0 0' >> /etc/fstab
/mnt/sysimage/usr/bin/eject /dev/hda
/mnt/sysimage/usr/bin/eject /dev/hdb
/mnt/sysimage/usr/bin/eject /dev/hdc
/mnt/sysimage/usr/bin/eject /dev/hdd
> -----Original Message-----
> From: Mattias Andersson
> Sent: Friday, February 17, 2006 11:14 AM
> To: kickstart-list@xxxxxxxxxx
> Subject: Ejecting CD after kickstart installation
>
> Hi,
>
> I'm installing Fedora 3 on a lot of machines in our rendering
> farm using a
> kickstart installation.
> The best would be if I could somehow get the kickstart to
> eject the cd
> straight after it has finished the first phase, i.e. before the first
> reboot. Cause then I don't need to connect a monitor and
> keyboard to the
> machine, all I need to do is to put the first installation CD
> and let it
> install via NFS and eventually it would just be done.
> The network path and such information for the installation is
> provided via
> DHCP and the installation CD has been slightly modified to
> boot straight in
> to the kickstart-mode.
>
> Has anyone been succesful in doing this?
>
> Any suggestions would be very much apprecieated.
>
> Mattias
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list
_________________________________________________________________
Chatt: Träffa nya nätkompisar på Habbo Hotel
http://habbohotel.msn.se/habbo/sv/channelizer