Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109819 - genkernel's built kernel tries to remove sys files at boot.
Summary: genkernel's built kernel tries to remove sys files at boot.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-10-19 07:52 UTC by Ajay Gautam
Modified: 2005-11-22 12:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for genkernel's linuxrc script (genkernel.patch,521 bytes, patch)
2005-11-11 03:38 UTC, Edward Scott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ajay Gautam 2005-10-19 07:52:14 UTC
I upgraded to kernel 2.6.13-r3.
genkernel-3.3.6
make.profile -> 2005.1

kernel build command:

    genkernel --save-config --kernel-config=/path/config --gensplash=emergence
--boot-loader=grub -all

Upon booting with this kernel, the boot process attempts to delete files in
/sys/... and fails with

    rm: unable to remove 'sys/.....' : operation not permitted

There are thousands of such messages, that just scroll by.

However, if I build a kernel manually:

make mrproper
make && make modules_install
cp ...bzImage.... /boot
genkernel initrd

and boot using the manual kernel, I do not see such messages.

The config files for both kernel build ways is exactly the same. I do not see
anything surprising in genkernel.log (let me know if you want the log)

This does not seem to hamper any operation, the boot progresses fine after the
errors. But these errors do scare the bejesus out of me :)

I have other problems with the 2.6.13, so have not yet used the kernels... so
can't say about effects. Would file this as low priority.

Discussion thread: http://forums.gentoo.org/viewtopic.php?p=2811352

Reproducible: Always
Steps to Reproduce:
Comment 1 Ajay Gautam 2005-10-19 08:02:38 UTC
I take that back: there is loss of functionality (eyecandy, actually).

genkernel is so easy to use, that I have been hopelessly dependent on it, I have
no clue how to get gensplash to work ;)

Ajay
ajaygautam@yahoo.com
Comment 2 Ajay Gautam 2005-10-21 07:39:41 UTC
Ok. This may not be a bug at all.

My system in question is a dual boot laptop (XP / Gentoo). Today, I booted in
XP. The time was wrong. I adjusted the time (from XP). I do not remember if I
advanced the time or retarded it. I just saw it wrong and adjusted it.

When I rebooted back into Gentoo (with non-genkernel kernel), I got all the
"unable to delete" sys files errors again.

Not sure if these errors are caused by time changes.

Thanks

Ajay
Comment 3 Ajay Gautam 2005-10-21 07:39:58 UTC
As an addendum, My home deskop is an exclusive Gentoo box. Compiles 2.6.13-r3
with genkernel, No problems at all. No such issues...

I am adding my comments both to this discussion thread AND Bug 109819: Is this
ok, Is there a guidekine I should have looked at :)

Ajay
Comment 4 Frank Lomax 2005-10-21 15:45:09 UTC
I have the same problem on one of my Gentoo boxes.  I've upgraded from
2.6.12-r10 to 2.6.13-r3 and started seeing this happen.  However, I've upgraded
other machines from the same kernel version to the same kernel version and don't
see the problem on them.
Comment 5 Neil 2005-10-30 11:01:10 UTC
1) uname -a reports:
Linux taz 2.6.13-gentoo-r3 #1 SMP Tue Oct 25 17:08:51 NDT 2005 i686
Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz GenuineIntel GNU/Linux
2) kernel built under genkernel
3) version 2005.1

An attempt is made to remove "/sys" when I leave my usbkey plugged in during
boot.  The key is associated to "/dev/sda1".  The key is plugged into a usb hub
which is, in turn, plugged into my box (I don't think this should make a
difference).  The attempted removal occurs just before the output "INIT: version
XXX...".  Without the usbkey plugged in the boot sequence is normal.
Comment 6 Frank Lomax 2005-11-01 07:48:39 UTC
Just emerged and genkernel'd 2.6.13-r5; still get the error messages.  Note that
I have 5 other Gentoo boxes, 4 of which are on 2.6.13-r5 and only this one
produces those error messages.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2005-11-05 13:38:07 UTC
Can somebody try scroll lock or something during the boot process and capture
the 'operation not permitted' messages in full? I'd imagine the error occurs
only when it tries to delete a certain node.
Comment 8 Edward Scott 2005-11-11 03:38:41 UTC
Created attachment 72633 [details, diff]
Patch for genkernel's linuxrc script

This patch stops the attempted rm of /sys during booting.
Comment 9 Mike 2005-11-13 00:36:08 UTC
I'm still having this problem with any kernel I've tried over 2.6.13-gentoo-r5.
This kernel doesnt do that. I tried the patch and it didnt help me. I cannot or
dont know how to log the errors.
Comment 10 Frank Lomax 2005-11-14 10:29:09 UTC
FWIW, I've emerge updated all packages, and built 2.6.14-r2.  The error messages
have gone away for me.
Comment 11 Mike 2005-11-16 05:30:48 UTC
Still having problems with it here. I just tried 2.6.14-ck5 and it still wanted
to delete /sys/* Back to 2.6.13-gentoo-r5
Comment 12 Eric Edgar (RETIRED) gentoo-dev 2005-11-21 10:10:13 UTC
thanks for the patch
Comment 13 Eric Edgar (RETIRED) gentoo-dev 2005-11-22 12:06:49 UTC
 fixed in 3.3.7