[arch-releng] [PATCH 5/6] Implement mount hook function in archiso hook.
Next version of mkinitcpio > 0.6.2 implements mount hook functionality.
So can avoid skipping normal flow of main init script, and removing common
end code with it.
Signed-off-by: Gerardo Exequiel Pozzi
* make /dev/loop0 at archiso install hook, to take advantage of
automatic module loading. There is no need for wait cycle.
* Mount squashfs images directly with mount instead of first using
losetup, then mounting. These images are now mounted at
/tmpfs/mnt/name-of-the-image instead of /tmpfs/mnt/loopN
(count variable removed)
* Use "/newroot" passed as argument to mount hook.
* Drop to a recovery shell in cases when FSTYPE detection fail instead of
just fail, then kernel panic!
* $newroot is passed to other _mnt_ functions in the same mountpoint.
* $copytoram code is removed since does not work with AUFS.
* Misc code style fixed.
Signed-off-by: Gerardo Exequiel Pozzi
Am 17.02.2010 06:57, schrieb Gerardo Exequiel Pozzi:
* make /dev/loop0 at archiso install hook, to take advantage of automatic module loading. There is no need for wait cycle. * Mount squashfs images directly with mount instead of first using losetup, then mounting. These images are now mounted at /tmpfs/mnt/name-of-the-image instead of /tmpfs/mnt/loopN (count variable removed) * Use "/newroot" passed as argument to mount hook. * Drop to a recovery shell in cases when FSTYPE detection fail instead of just fail, then kernel panic! * $newroot is passed to other _mnt_ functions in the same mountpoint. * $copytoram code is removed since does not work with AUFS. * Misc code style fixed.
This looks all very good, can we get this broken up in single patches (preferably with the "mount hook" parts merged with the previous patch)?
On 02/17/2010 05:30 AM, Thomas Bächler wrote:
Am 17.02.2010 06:57, schrieb Gerardo Exequiel Pozzi:
* make /dev/loop0 at archiso install hook, to take advantage of automatic module loading. There is no need for wait cycle. * Mount squashfs images directly with mount instead of first using losetup, then mounting. These images are now mounted at /tmpfs/mnt/name-of-the-image instead of /tmpfs/mnt/loopN (count variable removed) * Use "/newroot" passed as argument to mount hook. * Drop to a recovery shell in cases when FSTYPE detection fail instead of just fail, then kernel panic! * $newroot is passed to other _mnt_ functions in the same mountpoint. * $copytoram code is removed since does not work with AUFS. * Misc code style fixed.
This looks all very good, can we get this broken up in single patches (preferably with the "mount hook" parts merged with the previous patch)?
yes, I will see what I can do, in fact I am not very friend of making several changes at once, but in this case there are several tightly linked. -- Gerardo Exequiel Pozzi ( djgera ) http://www.djgera.com.ar KeyID: 0x1B8C330D Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D
On 02/17/2010 05:30 AM, Thomas Bächler wrote:
Am 17.02.2010 06:57, schrieb Gerardo Exequiel Pozzi:
* make /dev/loop0 at archiso install hook, to take advantage of automatic module loading. There is no need for wait cycle. * Mount squashfs images directly with mount instead of first using losetup, then mounting. These images are now mounted at /tmpfs/mnt/name-of-the-image instead of /tmpfs/mnt/loopN (count variable removed) Implemented in single commit. * Use "/newroot" passed as argument to mount hook. ops! This was implemented in the second patch (Not in the original
On 02/17/2010 06:15 PM, Gerardo Exequiel Pozzi wrote: posted in FS#18355)
* Drop to a recovery shell in cases when FSTYPE detection fail instead of just fail, then kernel panic! * $newroot is passed to other _mnt_ functions in the same mountpoint. * $copytoram code is removed since does not work with AUFS. * Misc code style fixed. Each in separated commits.
This looks all very good, can we get this broken up in single patches (preferably with the "mount hook" parts merged with the previous patch)?
yes, I will see what I can do, in fact I am not very friend of making several changes at once, but in this case there are several tightly linked.
Done :) broken up in five patches. -- Gerardo Exequiel Pozzi ( djgera ) http://www.djgera.com.ar KeyID: 0x1B8C330D Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D
On Wed, Feb 17, 2010 at 4:53 PM, Gerardo Exequiel Pozzi
Done :) broken up in five patches.
I've merged all your pending patches here: http://code.phraktured.net/cgit.cgi/archiso/ This includes the "remove old config files" one I was hesitant about... there's no sense at this point in the game of maintaining more than one set of configs Is everyone ok with pushing these to master?
On 02/17/2010 08:05 PM, Aaron Griffin wrote:
On Wed, Feb 17, 2010 at 4:53 PM, Gerardo Exequiel Pozzi
wrote: Done :) broken up in five patches.
I've merged all your pending patches here: http://code.phraktured.net/cgit.cgi/archiso/
This includes the "remove old config files" one I was hesitant about... there's no sense at this point in the game of maintaining more than one set of configs
Is everyone ok with pushing these to master?
Good. Thanks Maybe, remember that all these patches depends on mkinitcpio that is not released 0.6.3, I don't know schedule plan from Thomas. If mkinitcpio will be released very soon, maybe can be a good idea to merge now, taking advantage of your available time now. Anyway, anybody interested in making archiso can "reset" your local git clone (Including Dieter that is making archiso images 2010.02 now, seems that him have some problems with enviroment. -- Gerardo Exequiel Pozzi ( djgera ) http://www.djgera.com.ar KeyID: 0x1B8C330D Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D
Am 18.02.2010 00:44, schrieb Gerardo Exequiel Pozzi:
Good. Thanks
Maybe, remember that all these patches depends on mkinitcpio that is not released 0.6.3, I don't know schedule plan from Thomas. If mkinitcpio will be released very soon, maybe can be a good idea to merge now, taking advantage of your available time now.
Anyway, anybody interested in making archiso can "reset" your local git clone (Including Dieter that is making archiso images 2010.02 now, seems that him have some problems with enviroment.
I can release 0.6.3 anytime now, there's a few more patches lined up, but none of them is important.
On 02/17/2010 09:05 PM, Thomas Bächler wrote:
Am 18.02.2010 00:44, schrieb Gerardo Exequiel Pozzi:
Good. Thanks
Maybe, remember that all these patches depends on mkinitcpio that is not released 0.6.3, I don't know schedule plan from Thomas. If mkinitcpio will be released very soon, maybe can be a good idea to merge now, taking advantage of your available time now.
Anyway, anybody interested in making archiso can "reset" your local git clone (Including Dieter that is making archiso images 2010.02 now, seems that him have some problems with enviroment.
I can release 0.6.3 anytime now, there's a few more patches lined up, but none of them is important.
Great :) @Aaron: can release squashfs-tools-4.0-2 with this patch [#1] applied? [#1] http://bugs.archlinux.org/task/18277 - FS#18277 - [squashfs-tools] Patch to fix a race condition -- Gerardo Exequiel Pozzi ( djgera ) http://www.djgera.com.ar KeyID: 0x1B8C330D Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D
On Wed, 17 Feb 2010 17:05:22 -0600
Aaron Griffin
On Wed, Feb 17, 2010 at 4:53 PM, Gerardo Exequiel Pozzi
wrote: Done :) broken up in five patches.
I've merged all your pending patches here: http://code.phraktured.net/cgit.cgi/archiso/
This includes the "remove old config files" one I was hesitant about... there's no sense at this point in the game of maintaining more than one set of configs
Is everyone ok with pushing these to master?
if you mean with old == grub ones (because other then that, the syslinux ones are pretty much the same right?) fine by me. we've talked about it so often, just drop them. if we really need them back at some point for some reason, hey it's git. they are never "gone" Dieter PS: good work Gerardo.
On 02/17/2010 07:53 PM, Gerardo Exequiel Pozzi wrote:
Done :) broken up in five patches.
* This is how looks archiso hook running: ... :: Running Hook [archiso] :: Mounting tmpfs, size=75%...done. :: Waiting for boot device... Waiting 30 seconds for device /dev/archiso ... UDF-fs: Partition marked readonly; forcing readonly mount SUCCESS: Mounted archiso volume successfully. :: Mounting root (aufs) filesystem aufs 2-standalone.tree-32-20100111 :: Mounting images ::: Adding new aufs branch: overlay loop: module loaded squashfs: version 4.0 (2009/01/31) Phillip Lougher aufs test_add:243:mount[585]: uid/gid/perm /tmpfs/mnt/overlay 0/0/0755, 0/0/01777 ::: Adding new aufs branch: core-pkgs ::: Binding /tmpfs/mnt/core-pkgs to /new_root/src/core/pkg ::: Adding new aufs branch: root-image aufs test_add:243:mount[594]: uid/gid/perm /tmpfs/mnt/root-image 0/0/0755, 0/0/01777 ::: Binding /bootmnt to /new_root/bootmnt * This is how look mounts at end of archiso hook: ... tmpfs /tmpfs tmpfs rw,relatime,size=93384k 0 0 /dev/archiso /bootmnt udf ro,relatime,utf8 0 0 none /new_root aufs rw,relatime,si=74d8f1b8 0 0 /dev/loop0 /tmpfs/mnt/overlay squashfs ro,relatime 0 0 /dev/loop1 /tmpfs/mnt/core-pkgs squashfs ro,relatime 0 0 /dev/loop1 /new_root/src/core/pkg squashfs ro,relatime 0 0 /dev/loop2 /tmpfs/mnt/root-image squashfs ro,relatime 0 0 /dev/archiso /new_root/bootmnt udf ro,relatime,utf8 0 0 -- Gerardo Exequiel Pozzi ( djgera ) http://www.djgera.com.ar KeyID: 0x1B8C330D Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D
participants (4)
-
Aaron Griffin
-
Dieter Plaetinck
-
Gerardo Exequiel Pozzi
-
Thomas Bächler