Hello,

tmpfs /live/cow tmpfs rw,relatime,mode=755 0 0
/dev/sda /live/image iso9660
ro,noatime,nojoliet,check=s,map=n,blocksize=2048 0 0

Is this iso9660 your rr branch?

Yes, you're right. Sorry, I forgot that in that special case I had booted from a DVD that I had created from the NFSROOT. But that makes no difference regarding man.

More importantly, I am afraid you didn't "mount --move" your branches
before chroot.

As I am using dracut for building the initial ramdisk, the commands executed are those from /usr/lib/dracut/modules.d/90aufs/aufs-mount.sh:


#!/bin/sh

# make a read-only nfsroot writeable by using aufs
# the nfsroot is already mounted to $NEWROOT
# add the parameter aufs to the kernel, to activate this feature

. /lib/dracut-lib.sh

if ! getargbool 0 aufs ; then
    return
fi

modprobe aufs

# a little bit tuning
mount -o remount,nolock,noatime $NEWROOT

# Move root
# NB: --move does not always work. Google >mount move "wrong fs"< for
#     details
mkdir -p /live/image
mount --bind $NEWROOT /live/image
umount $NEWROOT

# Create tmpfs
mkdir /cow
mount -n -t tmpfs -o mode=0755 tmpfs /cow

# Merge both to new Filesystem
mount -t aufs -o noatime,noxino,dirs=/cow=rw:/live/image=rr aufs $NEWROOT

# Let filesystems survive pivot
mkdir -p $NEWROOT/live/cow
mkdir -p $NEWROOT/live/image
mount --bind /cow $NEWROOT/live/cow
umount /cow
mount --bind /live/image $NEWROOT/live/image
umount /live/image

Regards
  Christoph

Reply via email to