Bug 138902

Summary: Postinstall failure: /dev/null Input/output error, /dev corrupt
Product: [Fedora] Fedora Reporter: Timothy Lee <timlee>
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED CURRENTRELEASE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: nobody+pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-11 21:49:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timothy Lee 2004-11-11 21:23:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2)
Gecko/20040308

Description of problem:
Using the following system:

SuperMicro X6DH8-XG2 or X6DHE-XG2 motherboard (Intel E7520 Lindenhurst
chipset)
Two Intel Nocona processors
Two 200GB Serial ATA disks (detected as hda and hdc)

I tried to install Fedora Core 2 on hdc.  This failed during
postinstall.  Anaconda reported the following error:

File "/usr/bin/anaconda", line 1131, in ?
    intf.run(id, dispatch, configFileData)
File "/usr/lib/anaconda/text.py", line 475, in run
    dispatch.gotoNext()
File "/usr/lib/anaconda/dispatch.py", line 169, in gotoNext
    self.moveStep()
File "/usr/lib/anaconda/dispatch.py", line 237, in moveStep
    rc = apply(func, self.bindArgs(args))
File "/usr/lib/anaconda/packages.py", line 1125, in doPostInstall
    devnull = os.open("/dev/null", os.O_RDWR)
OSError: [Errno 5] Input/output error: '/dev/null'

Going into the shell by Alt-F2, doing an "ls -l /dev/null" gives an
"Input/output error".  Doing "ls -l /dev" shows a corrupt /dev
directory (with no device file named null).

The same failure occurs when trying to install onto hda or without
restricting what disk to use.  The failure does not occur when
kickstart installing on other hardware (both i386 and x86_64 with AMD
processors).

The kickstart config file is (note that a similar file was used
successfully to install the i386 version on hda and unsuccessfully
install the x86_64 version on hda and without disk restriction):

#System  language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse generic3ps/2
#System timezone
timezone --utc America/Los_Angeles
#Root password
rootpw --iscrypted $1$censored
#Reboot after installation
reboot
#Use text mode install
text
#Install Red Hat Linux instead of upgrade
install
#Use NFS installation Media
nfs --server=10.0.0.3 --dir=/path/to/fedora-2/x86_64
#System bootloader configuration
bootloader --location=mbr 
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext3 --size 256 --asprimary
part swap --recommended
part / --fstype ext3 --size 1 --grow
part /a --fstype ext3 --size 20000
part /b --fstype ext3 --size 20000
#System authorization infomation
auth  --useshadow  --enablemd5
#Firewall configuration
firewall --disabled
#Network information
--netmask=255.255.0.0 --gateway=10.0.0.1 --nameserver=10.0.0.2
--hostname=CHANGEME
#Do not configure XWindows
skipx
#Package install information
%packages --resolvedeps
@ Administration Tools
@ Base 
@ Core
@ Development Tools
@ Editors
@ Emacs
@ FTP Server
@ Kernel Development
@ Network Servers
@ Printing Support
@ Server Configuration Tools
@ System Tools
@ Text-based Internet
@ Web Server
@ Windows File Server
@ X Window System
sendmail
sendmail-cf
ppp
minicom
perl-Time-HiRes
#pine
mutt
lynx
ncftp
openssl096b
dhcp
glibc-profile
tcl
perl-DBI
mysql
perl-DBD-MySQL
vnc
vnc-server
@ Authoring and Publishing
@ GNOME Desktop
@ Graphical Internet
@ KDE (K Desktop Environment)
@ Office/Productivity
@ Sound and Video
%post
/bin/cat << EOF > /etc/rc.d/init.d/postinstall
#!/bin/sh
# chkconfig 345 99 99
# [etc. not shown here for brevity]
EOF
/bin/chmod 755 /etc/rc.d/init.d/postinstall
cd /etc/rc.d/rc3.d 
ln -s ../init.d/postinstall S99postinstall
cd /etc/rc.d/rc4.d
ln -s ../init.d/postinstall S99postinstall
cd /etc/rc.d/rc5.d
ln -s ../init.d/postinstall S99postinstall


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


How reproducible:
Always

Steps to Reproduce:
Attempt to kickstart install Fedora Core 2 using the above
configuration file (adjusted for IP addresses and root password) on
the named hardware.

Actual Results:  Postinstall fails with the given Anaconda error.

Expected Results:  The expected result is a successful postinstall.

Additional info:

Comment 1 Jeremy Katz 2004-11-11 21:49:57 UTC
This was a kernel bug fixed in FC3