This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 198889 - Eject command does not always work in the ks.cfg - yet a normal red hat install does
Eject command does not always work in the ks.cfg - yet a normal red hat insta...
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Anaconda Maintenance Team
Depends On:
  Show dependency treegraph
Reported: 2006-07-14 09:08 EDT by Ian Nicholls
Modified: 2008-08-02 19:40 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-24 17:03:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:

Attachments (Terms of Use)

  None (edit)
Description Ian Nicholls 2006-07-14 09:08:03 EDT
Description of problem:

On doing a custom install using kickstart the 'eject' command doesn't always
work - however doing a standard Red Hat release does eject the cd

Version-Release number of selected component (if applicable):

How reproducible:

Works on some machines and not on others

Steps to Reproduce:
1. create a custom kickstart with 'eject' at the end of the %POST section
2. do install and see if it ejects before rebooting!
3. repeat install on other hardware
4. on hardware where it does not eject the cd try a standard FC3 install
Actual results:

Custom KS - Ejects some cds but not all
Std FC3   - Ejects all

Expected results:

Custom KS - Ejects some cds but not all
Std FC3   - Ejects all

Additional info:
Comment 1 Jeremy Katz 2006-07-19 11:56:36 EDT
Is your %post using --nochroot or not?
Comment 2 Ian Nicholls 2006-07-19 12:04:16 EDT
it is indeed

%post --nochroot
mkdir -p /mnt/sysimage/mnt/cdrom
mkdir -p /mnt/sysimage/root/Genesis/
mkdir /mnt/source
mount /tmp/cdrom /mnt/source
copy custom rpms off of the cd
eject /tmp/cdrom

Have tried various things like making /dev/hda-d and unmounting then ejecting
them all etc but none do the trick!
Comment 3 Jeremy Katz 2006-07-19 14:48:18 EDT
Are you doing installs off of the cd?
Comment 4 Ian Nicholls 2006-07-19 14:57:10 EDT
Here it is in its entirity

%post --nochroot
mkdir -p /mnt/sysimage/mnt/cdrom
mkdir -p /mnt/sysimage/root/Genesis/
mkdir /mnt/source
mount /tmp/cdrom /mnt/source
TEXT="Copying Genesis RPMS\n\nPlease Wait ..."
/mnt/source/Genesis/install_scripts/dialog --infobox "${TEXT}" 10 30 > /dev/tty0
cp /mnt/source/Genesis/* /mnt/sysimage/root/Genesis -r

TEXT="Installing Genesis_init\n\nPlease Wait ..."
/mnt/source/Genesis/install_scripts/dialog --infobox "${TEXT}" 10 30 > /dev/tty0
ls /mnt/source/Genesis/RPMS/Genesis_update-*.rpm > /dev/null 2> /dev/null
if [ $? -eq 0 ]; then
  chroot /mnt/sysimage rpm -i /root/Genesis/RPMS/Genesis_update-*rpm

ls /mnt/source/Genesis/RPMS/Genesis_init-*.rpm > /dev/null 2> /dev/null
if [ $? -eq 0 ]; then
  chroot /mnt/sysimage rpm -i /root/Genesis/RPMS/Genesis_init-*rpm

# Install Lilo boot loader - we need this to be able to successfully
# boot HP DL320
if [ -f /mnt/sysimage/etc/lilo.conf.anaconda ]; then
  # Anaconda generously creates the lilo config for us.
  mv /mnt/sysimage/etc/lilo.conf.anaconda /mnt/sysimage/etc/lilo.conf
  sed -i -e 's/c0d0p[0-9][0-9]*$/c0d0/' /mnt/sysimage/etc/lilo.conf
  sed -i -e "s/\([sh]\)da[0-9]/\1da/" /mnt/sysimage/etc/lilo.conf
if [ -f /mnt/sysimage/etc/lilo.conf ]; then
  lilo -r /mnt/sysimage
  TEXT="We are missing a boot loader config file.\n\n\Panic! This machine will
never be able to reboot."
/mnt/source/Genesis/install_scripts/dialog --infobox "${TEXT}" 10 30 > /dev/tty0
  echo "We are missing a boot loader config file - this machine will never be
able to reboot."
  echo "Sleeping 1 hour!"
  sleep 36000

#Turn off some services in runlevel 5
for FILE in `ls /mnt/sysimage/etc/init.d`; do
  case $FILE in
     echo "Ignoring service ${FILE}";;
     echo "Ignoring service ${FILE}";;
     echo "Ignoring service ${FILE}";;
     echo "Ignoring service ${FILE}";;
     echo "Ignoring service ${FILE}";;
     echo "Ignoring service ${FILE}";;
     chroot /mnt/sysimage  chkconfig --levels 35 ${FILE} off
eject /tmp/cdrom
Comment 5 Ian Nicholls 2006-10-10 04:44:28 EDT
Any news?
Comment 6 Christian Iseli 2007-01-19 19:41:39 EST
This report targets the FC3 or FC4 products, which have now been EOL'd.

Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?

Comment 7 Red Hat Bugzilla 2007-06-11 23:12:29 EDT
requested by Jams Antill

Note You need to log in before you can comment on or make changes to this bug.