Problem with busybox based initrd: umount of initrd hangs system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am building a custom initrd for booting a Fedora 3 based system.
In general all is working fine, except that when I try an umount the initrd
after boot has suceeded the system hangs with no error messages.

I have created a cpio based initrd using busybox. A simplified version
of the "init" script is attched. This finishes with running /bin/sh on the
hard disk mounted file system. If I try and run "umount /initrd1" the system
hangs.
The system is booted using PXE based network boot using pxelinux 3.0.9.
I am using busybox-1.00.
The kernel is Fedora3's version 2.6.11-1.35_FC3smp.

Any Ideas ??

Terry

#!/bin/ash
################################################################################
#	Init			Beamsys Startup
#				T.Barnaby,	BEAM Ltd,	2005-06-29
################################################################################
#

echo ""
echo "##### Beamsys Initrd init: ${VERSION} #####"

echo "Mounting /proc filesystem"
mount -t proc /proc /proc

insmod /lib/jbd.ko
insmod /lib/ext3.ko

echo "Mounting root filesystem"
mount -r -t ext3 /dev/hda1 /sysroot

echo "Switching to new root"
umount /proc
cd /sysroot

# Debug point
/bin/ash

pivot_root . initrd1

# Debug point
exec usr/sbin/chroot . /bin/sh <dev/console >dev/console 2>&1

#exec usr/sbin/chroot . sbin/init <dev/console >dev/console 2>&1
#exec usr/sbin/chroot .  /bin/sh -c 'umount /initrd1; exec /sbin/init' <dev/console >dev/console 2>&1

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux