[arch-projects] [mkinitcpio][PATCH] shutdown: disassemble devices on shutdown v2

Thomas Bächler thomas at archlinux.org
Wed Mar 28 17:36:30 EDT 2012


Am 28.03.2012 16:30, schrieb Gerardo Exequiel Pozzi:
> On 03/28/2012 10:44 AM, Dave Reisner wrote:
>>> Is there any way to make something similar work with loop devices? You
>>> would need to disable the loop device before umounting the underlying
>>> file system. If we could solve this as well, then archiso probably
>>> wouldn't need its special shutdown hook anymore.
>>>
>> sure, lsblk loudly declares loop devices to be type loop. Hrmmm, archiso
>> does a lot of weird stuff... in particular, the squashfs mounts are
>> confusing me and/or lsblk. I'll get myself a newer image and poke around
>> at what Gerardo is doing on setup...
>>
>> I'm sure it's possible, I just need to understand what's happening.
>>
>> d
>>
> 
> Hello,
> 
> The first step on "shutdown" for archiso is a mount --move, since
> /oldroot depends on things from /oldroot/run/archiso. This make it a bit
> special.

It would be a good idea anyway to do that unconditionally: Just move all
mount points into separate paths before umounting and closing devices.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20120328/bb0d562f/attachment.asc>


More information about the arch-projects mailing list