Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 103275
Alias:
Product:
Component:
Status: CLOSED
Resolution: FIXED
Assigned To: Gentoo Release Team <release@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: catfish <catfish@csrc.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 103275 depends on: Show dependency tree
Bug 103275 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-08-21 13:07 0000
I checked and could not find this mentioed previously in the bug system.  I
checked under combinations of 2005.1,init,link,stage1.

I recently did a stage1 install on an Intel STL2 system with dual Intel Intel P3
Coppermine CPUs.  I was checking some things on the hard drive when I did an 'ls
-l' on /etc/runlevels/default and noticed some ad symlinks on local and
netmount.  I checked /etc/runlevels/boot and found the same problem --
everything linked back to 'tmp/stage1root//etc/init.d/' instead of '/etc/init.d'

I ran through 'rc-update del [script name] [boot|default|local]' followed by an
'rc-update add [script name] [boot|default|local]' to fix the symlinks.

The symlinks did not effect a successful reboot of the machine. I was doing the
install remotely so I was not able to see console output but it *seemed* to
reboot faster after I fixed the above.

I re-emerged base-layout but it did not help.  I started to search where the
problem may have come from and found it in the stage1 tarball.  I *think* I
downloaded it from ibiblio IIRC.

I double checked the stage1 tar file and here is the output:

[snip]
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/bootmisc
-> /tmp/stage1root//etc/init.d/bootmisc
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/checkroot -> /tmp/stage1root//etc/init.d/checkroot
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/consolefont -> /tmp/stage1root//etc/init.d/consolefont
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/keymaps
-> /tmp/stage1root//etc/init.d/keymaps
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/modules
-> /tmp/stage1root//etc/init.d/modules
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/rmnologin -> /tmp/stage1root//etc/init.d/rmnologin
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/urandom
-> /tmp/stage1root//etc/init.d/urandom
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/checkfs
-> /tmp/stage1root//etc/init.d/checkfs
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/clock ->
/tmp/stage1root//etc/init.d/clock
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/domainname -> /tmp/stage1root//etc/init.d/domainname
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/hostname
-> /tmp/stage1root//etc/init.d/hostname
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/localmount -> /tmp/stage1root//etc/init.d/localmount
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/net.lo
-> /tmp/stage1root//etc/init.d/net.lo
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/default/
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/default/local
-> /tmp/stage1root//etc/init.d/local
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/default/netmount -> /tmp/stage1root//etc/init.d/netmount
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/nonetwork/
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/nonetwork/local -> /tmp/stage1root//etc/init.d/local
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/single/
[snip]

Reproducible: Always
Steps to Reproduce:
1. download stage1-x86-2005.1.tar.bz2 [ I just rechecked using ibiblio ]
2. run 'tar -tvjf stage1-x86-2005.1.tar.bz2 | grep runlevels'
3. notice target of symlink
Actual Results:  
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/bootmisc
-> /tmp/stage1root//etc/init.d/bootmisc
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/checkroot -> /tmp/stage1root//etc/init.d/checkroot
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/consolefont -> /tmp/stage1root//etc/init.d/consolefont
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/keymaps
-> /tmp/stage1root//etc/init.d/keymaps
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/modules
-> /tmp/stage1root//etc/init.d/modules
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/rmnologin -> /tmp/stage1root//etc/init.d/rmnologin
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/urandom
-> /tmp/stage1root//etc/init.d/urandom
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/checkfs
-> /tmp/stage1root//etc/init.d/checkfs
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/clock ->
/tmp/stage1root//etc/init.d/clock
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/domainname -> /tmp/stage1root//etc/init.d/domainname
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/hostname
-> /tmp/stage1root//etc/init.d/hostname
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/boot/localmount -> /tmp/stage1root//etc/init.d/localmount
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/boot/net.lo
-> /tmp/stage1root//etc/init.d/net.lo
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/default/
lrwxrwxrwx root/root         0 2005-07-26 13:12:38 ./etc/runlevels/default/local
-> /tmp/stage1root//etc/init.d/local
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/default/netmount -> /tmp/stage1root//etc/init.d/netmount
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/nonetwork/
lrwxrwxrwx root/root         0 2005-07-26 13:12:38
./etc/runlevels/nonetwork/local -> /tmp/stage1root//etc/init.d/local
drwxr-xr-x root/root         0 2005-07-26 13:12:38 ./etc/runlevels/single/

Expected Results:  
/etc/runlevel/ scripts should point to the local /etc/init.d/ directory

------- Comment #1 From roger55 (RETIRED) 2005-08-21 14:21:19 0000 -------
After seeing this bug, I asked people in #gentoo with a fresh install of 
2005.1. Looks like this affects stage3 as well. Only people with upgraded 
baselayouts (to ~arch versions?) don't have it.  
 
Roger 
 
 

------- Comment #2 From Chris Gianelloni (RETIRED) 2005-08-23 06:16:37 0000 -------
So we're thinking this is a baselayout bug, then?

If it is something we can fix easily, then a rev-bump of stable baselayout
should fix it.

------- Comment #3 From SpanKY 2005-08-23 06:21:25 0000 -------
yeah, bug in baselayout pkg_postinst

------- Comment #4 From SpanKY 2005-08-23 16:53:11 0000 -------
revbumped stable/unstable to fix this

------- Comment #5 From SpanKY 2005-09-02 19:30:20 0000 -------
forgot to close

------- Comment #6 From Jakub Moc (RETIRED) 2005-09-15 16:56:29 0000 -------
*** Bug 106128 has been marked as a duplicate of this bug. ***

------- Comment #7 From SpanKY 2005-09-20 06:50:51 0000 -------
*** Bug 106656 has been marked as a duplicate of this bug. ***

------- Comment #8 From Chris Gianelloni (RETIRED) 2005-09-30 13:37:42 0000 -------
OK... it looks like emerging the new baselayout versions does not fix this
bug...

Anyway, I'm going to reopen this and reassign it until we get media out with
fixed stages.

------- Comment #9 From Chris Gianelloni (RETIRED) 2005-09-30 13:39:25 0000 -------
<note_to_self>carpaski mentions that bug 103275 still affects users as
baselayout doesn't fix the stage tarballs. This leaves the symlinks invalid
after remerging baselayout</note_to_self>

------- Comment #10 From SpanKY 2005-10-03 12:30:54 0000 -------
*** Bug 108006 has been marked as a duplicate of this bug. ***

------- Comment #11 From Chris Gianelloni (RETIRED) 2005-11-21 06:50:59 0000 -------
This is fixed with the 2005.1-r1 release media.

------- Comment #12 From SpanKY 2006-04-12 13:51:22 0000 -------
*** Bug 129730 has been marked as a duplicate of this bug. ***

------- Comment #13 From SpanKY 2006-05-22 23:28:57 0000 -------
*** Bug 133607 has been marked as a duplicate of this bug. ***

------- Comment #14 From Kimmo Sundqvist 2006-05-31 04:35:19 0000 -------
Well, how do I fix this once it has already happened?  It's almost a year since
I installed my Gentoo system, and reinstall is not an option.

------- Comment #15 From Kimmo Sundqvist 2006-05-31 04:37:35 0000 -------
Assume I remove all faulty symlinks, and recreate them pointing to the right
script in /etc/init.d  If this will have any funny side effects, please tell
quickly.

------- Comment #16 From Chris Gianelloni (RETIRED) 2006-05-31 07:15:09 0000 -------
That's exactly what you need to do.

------- Comment #17 From SpanKY 2006-06-08 03:36:36 0000 -------
*** Bug 136033 has been marked as a duplicate of this bug. ***

------- Comment #18 From Markus Malkusch 2006-06-28 09:20:08 0000 -------
Today I discoverd this at all of my machines so I did this quick hack:

,--<./repairRC>--
| #!/bin/sh
|
| LINK=$1
| FILE=/etc/init.d/$(basename $1)
| DIR=$(dirname $1)
| 
| echo $LINK => FILE
| 
| if [ -f $FILE ]; then
|         rm $LINK && ln -s $FILE $DIR
| fi
`--

# find /etc/runlevels/ -type l -lname "/tmp/*" -exec repairRC {} \;

------- Comment #19 From Johan Andersson 2006-08-23 23:00:54 0000 -------
I think this bug has to be reopened: I got the same problem on 3 of 6 of our
machines, except these were running fine before. Now they won't boot because
most of the enties in /etc/runlevels/boot point to enties in
/tmp/stage1root/...
The machines hasn't been restarted for about 3 months, so I can't say what
package  broke them. I checked the emerge.log's, and about 300 packages has
been upgraded since the last restart.

After re-creating the symlinks, all machines started again.

------- Comment #20 From Chris Gianelloni (RETIRED) 2006-08-24 05:40:15 0000 -------
No.  That has nothing to do with the stages.

Though something *else* might have given the same results, it is *not* the same
bug.  Unless you just installed using 2006.0 stages and got the *exact* same
results, it is a different bug and needs to be treated as such.

Thanks...

------- Comment #21 From Johan Andersson 2006-08-24 06:00:06 0000 -------
Has the cause of the broken stage-file been discovered? I still think this is
the same bug. The same bug that caused the 2005.1 stage-file to be broken. And
unless we find out what caused the stage-file and my systems, to break, it will
likely happen again...

From what I can see in the comments to this bug, we only know what to do when
it happens, and that it happened when building stage1-x86-2005.1.tar.bz2.

------- Comment #22 From Andrew Gaffney 2006-08-24 06:03:13 0000 -------
The original bug was likely caused by catalyst. Once the stage is built and
tar'd up, catalyst is out of the picture. If it occurs again, it is *not* the
same bug.

------- Comment #23 From Johan Andersson 2006-08-24 06:10:16 0000 -------
OK, I'll create a new bug for this.

------- Comment #24 From Andrew Gaffney 2006-08-24 07:12:05 0000 -------
Are you sure that when it broke the 2nd time, they were pointing to
/tmp/stage1root/some/path?

------- Comment #25 From Johan Andersson 2006-08-24 07:43:21 0000 -------
Yes, I'm absolutely sure of that. That's why I found this bug, I searched for
stage1 and runlevels.

------- Comment #26 From SpanKY 2006-08-24 20:18:32 0000 -------
*** Bug 144969 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug