[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] Re: unmounting a filesystem mounted by /init (initramfs)
From:       Rafael =?iso-8859-1?q?=C1vila_de_Esp=EDndola?= <rafael.espindola () gmail ! com>
Date:       2005-07-29 13:37:09
Message-ID: 200507291037.39453.rafael.espindola () gmail ! com
[Download RAW message or body]

On Friday 29 July 2005 02:34, Denis Vlasenko wrote:
> "A chroot"? Better provide exact sequence of mounts, chroots which you
> execute. Otherwise people need to guess.
The relevant commands are:

mount -t ext2 /dev/hda1 /memory
mount -t unionfs -o dirs=/memory /union
mount -t squashfs /dev/hda2 /newroot
unionctl /union --add --after 0 --mode ro /newroot
chroot /union /sbin/init

The most promissing Idea I had till now is to move the ext2 mount and the 
unionctl past the point were /sbin/rc runs udevstart. I will try it as soon 
as possible.

> Use lazy umount (umount -l) while fs is still visible
The busybox umount doesn't support lazy unmount :(
Anyway, I don't think that this would work since the unionfs will be using the 
ext2 partition to the very end and there won't be a chance to unmount it.

> vda
Thank you very much,
Rafael

[Attachment #3 (application/pgp-signature)]
-- 
gentoo-dev@gentoo.org mailing list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic