From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924 Description of problem: RHEL3 U4 does not boot if /tmp is a symlink to another FS than /. Tried on one box with U3 -> U4 update and on another with a clean U4 install, using our own kickstart which among other things, symlinks /tmp to /var/tmp. During the boot process, I see Starting up RAID devices: md0 md4 md2 md3 md1 Cannot create temp file /tmp/devlabel.luyk7Al /sbin/devlabel: line 893: $temp_proc: ambiguous redirect Looking at the code, I see: temp_proc=`mktemp /tmp/devlabel.XXXXXX` echo "$proc_partitions" > $temp_proc Removing the symlink and creating /tmp with 1777 bits allows normal booting. Or removing devlabel-package. Version-Release number of selected component (if applicable): 0.48.03-6 How reproducible: Always Steps to Reproduce: 1. Install RHEL3U4 using our own kickstart 2. Reboot the box Actual Results: Boot fails with the last messages on screen: Starting up RAID devices: md0 md4 md2 md3 md1 Cannot create temp file /tmp/devlabel.luyk7Al /sbin/devlabel: line 893: $temp_proc: ambiguous redirect Expected Results: After starting RAID devices, continue with mounting filesystems and the rest of the boot process. Additional info: U3 devlabel-0.42.05 does not suffer from this.
Created attachment 109414 [details] devlabel-tmp-not-dir.patch Use / as the temporary directory if /tmp isn't a directory.
We could also check the retval of mktemp, this version is shorter.
Created attachment 109444 [details] don't use mktemp at all I prefer this, it certainly seems simpler.
I agree with Bill. Good cleanup. I'll see if DKMS has a similar construct it can change also.
Good work Bill. It's better than my quick fix ;)
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-121.html
*** Bug 143608 has been marked as a duplicate of this bug. ***