Skip to contentSkip to conversation

problem about boot

DISCUSSION lky 4 participants 6 messages Oct 23, 2003 – Oct 24, 2003 SELinux security module

lore
Share & tools
lore

lky

author
#0 lore raw

Hi,I installed 2.6-based SELinux (linux-2.6-2003100110.tgz) on Redhat9.0.But when I reboot with the initrd I got the kernel panic,as below:
------------------------------------------------------------------------------------------
Mounting /proc filesystem
Creating block devices
Creating root device
Mounting root filesystem
mount: error 19 mounting ext3
pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed : 2
umount /initrd/proc failed : 2
Freeing unused kernel memory : 232k freed
kernel panic : No init found . Try passing init = option to kernel
------------------------------------------------------------------------------
The policy has been loaded before this. And I got the same result if I reboot the kernel with it's own initrd. So I think the initrd isn't the reason. Have I wrongly configured the kernel? Thanks!

#1 lore raw

Your kernel must be configured with built-in ext3 support if your root partition is ext3.

--Eamon

Quoted 18 lines · lky

Hi,I installed 2.6-based SELinux (linux-2.6-2003100110.tgz) on Redhat9.0.But when I reboot with the initrd I got the kernel panic,as below:
------------------------------------------------------------------------------------------
Mounting /proc filesystem
Creating block devices
Creating root device
Mounting root filesystem
mount: error 19 mounting ext3
pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed : 2 umount /initrd/proc failed : 2
Freeing unused kernel memory : 232k freed
kernel panic : No init found . Try passing init = option to kernel
------------------------------------------------------------------------------
The policy has been loaded before this. And I got the same result if I reboot the kernel with it's own initrd. So I think the initrd isn't the reason. Have I wrongly configured the kernel?
Thanks!

Signature · 7 lines
Eamon Walsh <[email protected]>


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#2 lore raw
Quoted 4 lines

Your kernel must be configured with built-in ext3 support if your root partition is ext3.

--Eamon

Right!I had configured the ext3 as a module at first.
Then I configured my kernel again with ext3 built-in the kernel.But when I make modules_install I found the following messages:
-------------------------------------------------------------------
depmod: QM_MODULES: Function not implemented

depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/eni.ko
depmod:  suni_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/idt77252.ko
depmod:  suni_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/iphase.ko
depmod:  suni_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/nicstar.ko
depmod:  suni_init
depmod:  idt77105_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/zatm.ko
depmod:  uPD98402_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/block/paride/aten.ko
depmod:  pi_register

...........
---------------------------------------------------------------------
However the installation didn't stop.This time I can reboot with the new kernel. But I found many modules such as my network card and loopback device can't be automatically loaded to work .Why can't I configure them as modules now? I can do that with 2.4 kernels before. Thanks!

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw

You need new modutils for the 2.6 kernel. You can get them from
http://www.kernel.org/pub/linux/kernel/people/rusty/modules
(I'd suggest using the SRPM at the bottom of the list).

You also need to change /etc/rc.d/rc.sysinit to make the modules load automatically. See the "Modules" section of:
http://www.codemonkey.org.uk/post-halloween-2.5.txt

And looking ahead, once you get the 2.6 kernel working, rpm is not going to work. To fix that, see the "Regressions" section of the same document.

--Eamon

Quoted 34 lines · lky
Quoted 4 lines

Your kernel must be configured with built-in ext3 support if your root partition is ext3.

--Eamon

Right!I had configured the ext3 as a module at first.
Then I configured my kernel again with ext3 built-in the kernel.But when I make modules_install I found the following messages:
-------------------------------------------------------------------
depmod: QM_MODULES: Function not implemented

depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/eni.ko
depmod:  suni_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/idt77252.ko
depmod:  suni_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/iphase.ko
depmod:  suni_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/nicstar.ko
depmod:  suni_init
depmod:  idt77105_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/atm/zatm.ko
depmod:  uPD98402_init
depmod: *** Unresolved symbols in /lib/modules/2.6.0-test6-selinux1/kernel/drivers/block/paride/aten.ko
depmod:  pi_register

...........
---------------------------------------------------------------------
However the installation didn't stop.This time I can reboot with the new kernel. But I found many modules such as my network card and loopback device can't be automatically loaded to work .Why can't I configure them as modules now? I can do that with 2.4 kernels before. Thanks!

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

Signature · 7 lines
Eamon Walsh <[email protected]>


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 11 lines · Eamon Walsh

You need new modutils for the 2.6 kernel. You can get them from
http://www.kernel.org/pub/linux/kernel/people/rusty/modules
(I'd suggest using the SRPM at the bottom of the list).

You also need to change /etc/rc.d/rc.sysinit to make the modules load automatically. See the "Modules" section of:
http://www.codemonkey.org.uk/post-halloween-2.5.txt

And looking ahead, once you get the 2.6 kernel working, rpm is not going to work. To fix that, see the "Regressions" section of the same document.

Another option is to download and install Fedora, as it is set up for 2.6 kernels.

- James

Signature · 9 lines
James Morris
<[email protected]>



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#5 lore raw
In reply to lky
Quoted 3 lines · lky

Hi,I installed 2.6-based SELinux (linux-2.6-2003100110.tgz) on Redhat9.0.But when I reboot with the initrd I got the kernel panic,as below:

Just FYI, Arjan van de Ven of Red Hat is maintaining kernel source and binary RPMs for the 2.6 kernel (including SELinux) available under
http://people.redhat.com/arjanv/2.5, and Dan Walsh of Red Hat maintaining source and binary RPMs for the userland components available under ftp://people.redhat.com/dwalsh/SELinux, along with example kickstart files and a selUpgrade script to upgrade a Fedora or RHEL3 system to SELinux. Also, note that if you use Dan's patched init program (available from his RPMs), you don't have to modify your initrd for SELinux, and if you use his pam_selinux module, you don't have to install patched versions of login or sshd, as long as you update their PAM configurations to use pam_selinux as a session module. This may save you some difficulty in installing SELinux.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.