[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] Problem with busybox based initrd: umount of initrd hangs
From: Terry Barnaby <terry1 () beam ! ltd ! uk>
Date: 2005-06-30 11:55:03
Message-ID: 42C3DD97.1060709 () beam ! ltd ! uk
[Download RAW message or body]
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
["init" (text/plain)]
#!/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
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic