On 21/04/2015 16:34, TheOldFellow wrote:
I have built a fresh LFS, it is on a LVM2 partition, so I need an Initramfs, and this enters the Stage 1 script with a devtmpfs somewhat populated, and /sys and /proc already mounted. My thinking is that these mounts are OK, and I don't see any advantage in umounting them, just to remake /dev in a tmpfs.
Indeed, you don't need much, but what you need to do depends on what you want. Please give us the following details: What are you trying to write here: A. the /init script of the initramfs ? or B. a script that will run after your initramfs has --moved ? If A: what do you want it to do ? 1. keep your initramfs as rootfs ? or 2. have it modprobe, mount your LVM2 filesystem, and mount --move your root filesystem ? -- Laurent