Gentoo Archives: gentoo-catalyst

From: "Rafael Ávila de Espíndola" <rafael.espindola@×××××.com>
To: Denis Vlasenko <vda@××××××××××.ua>
Cc: gentoo-dev@l.g.o, gentoo-catalyst@l.g.o, linux-kernel@×××××××××××.org
Subject: [gentoo-catalyst] Re: unmounting a filesystem mounted by /init (initramfs)
Date: Fri, 29 Jul 2005 13:37:34
1 On Friday 29 July 2005 02:34, Denis Vlasenko wrote:
2 > "A chroot"? Better provide exact sequence of mounts, chroots which you
3 > execute. Otherwise people need to guess.
4 The relevant commands are:
6 mount -t ext2 /dev/hda1 /memory
7 mount -t unionfs -o dirs=/memory /union
8 mount -t squashfs /dev/hda2 /newroot
9 unionctl /union --add --after 0 --mode ro /newroot
10 chroot /union /sbin/init
12 The most promissing Idea I had till now is to move the ext2 mount and the
13 unionctl past the point were /sbin/rc runs udevstart. I will try it as soon
14 as possible.
16 > Use lazy umount (umount -l) while fs is still visible
17 The busybox umount doesn't support lazy unmount :(
18 Anyway, I don't think that this would work since the unionfs will be using the
19 ext2 partition to the very end and there won't be a chance to unmount it.
21 > vda
22 Thank you very much,
23 Rafael