I have followed the instructions given in Documentation/initrd.txt with regard to pivot_root, but am unable to unmount the filesystem, when everything is called from a non-interactive script.
ie. When I set a link from linuxrc to /bin/ash and then manually go through the commands in the shell script, I am able to unmount the old initrd filesystem. However, when linuxrc is a shell script containing the same commands, I am unable to umount the old initrd fs. I get instead: "Device or resource busy".
The contents of my linuxrc script are as follows:
mount -t shm /dev/shm /new
cp -pdR * new
pivot_root . initrd
exec chroot . /bin/ash <dev/console > dev/console 2>&1
ash is a static binary. chroot, mount and pivot_root are from busybox.
- Ralph Jones
Find the best deals on the web at AltaVista Shopping!
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/