Bug 143476 - (it_60821) RHEL3 U4 boot fails if /tmp is a symlink to != root-filesystem
RHEL3 U4 boot fails if /tmp is a symlink to != root-filesystem
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: devlabel (Show other bugs)
3.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Karel Zak
: Regression
: 143608 (view as bug list)
Depends On:
Blocks: 132991
  Show dependency treegraph
 
Reported: 2004-12-21 08:55 EST by Jussi Silvennoinen
Modified: 2007-11-30 17:07 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-19 20:18:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
devlabel-tmp-not-dir.patch (490 bytes, patch)
2005-01-06 05:25 EST, Bastien Nocera
no flags Details | Diff
don't use mktemp at all (879 bytes, patch)
2005-01-06 16:42 EST, Bill Nottingham
no flags Details | Diff

  None (edit)
Description Jussi Silvennoinen 2004-12-21 08:55:52 EST
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.
Comment 1 Bastien Nocera 2005-01-06 05:25:02 EST
Created attachment 109414 [details]
devlabel-tmp-not-dir.patch

Use / as the temporary directory if /tmp isn't a directory.
Comment 2 Bastien Nocera 2005-01-06 05:27:34 EST
We could also check the retval of mktemp, this version is shorter.
Comment 3 Bill Nottingham 2005-01-06 16:42:06 EST
Created attachment 109444 [details]
don't use mktemp at all

I prefer this, it certainly seems simpler.
Comment 4 Matt Domsch 2005-01-06 17:50:27 EST
I agree with Bill.  Good cleanup.
I'll see if DKMS has a similar construct it can change also.
Comment 5 Bastien Nocera 2005-01-07 04:18:28 EST
Good work Bill. It's better than my quick fix ;)
Comment 7 Tim Powers 2005-05-19 20:18:14 EDT
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
Comment 8 Bill Nottingham 2005-05-20 12:49:54 EDT
*** Bug 143608 has been marked as a duplicate of this bug. ***

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