# HG changeset patch # User Rob Landley # Date 1308186645 18000 # Node ID 18fd34f46508470529cb9a0ceb263317edc5b1af # Parent a6d18adf198d3b3e9f5c3d2ed1cd9d77782b1f64 Fix broken comment. diff -r a6d18adf198d -r 18fd34f46508 sources/root-filesystem/sbin/setup-chroot --- a/sources/root-filesystem/sbin/setup-chroot Tue Jun 14 20:48:07 2011 -0500 +++ b/sources/root-filesystem/sbin/setup-chroot Wed Jun 15 20:10:45 2011 -0500 @@ -27,11 +27,11 @@ find / -xdev | cpio -m -v -p "$NEWROOT" | dotprogress fi -ZAP="$NEWROOT" - -# Iterate through mount points in reverse order, find most recent mount -# that - +# Copy mounts from existing root filesystem to new target. + +# Get mount point list, minus the one our new root filesystem is already in, +# then mount --bind each remaining mount point (once) into NEWROOT. + ZAP="$NEWROOT" for i in $(awk '{print $2}' /proc/mounts | tac)