[arch-releng] STATUS of the work (cow_persistent / archiso_shutdown hook)

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Fri Sep 2 01:04:24 EDT 2011


On 08/27/2011 03:31 AM, Gerardo Exequiel Pozzi wrote:
> v3:
>    * Do not use lazy unmount, walk each mount point then unmount.
>    * Checks for copytoram= and loopback iso mount (archiso_loop_mnt hook)
>
> STATUS: Working (std boot, loop_mnt, pxe) with copytoram=[y|n].
>
> NEEDS: initscript>  2011.07.3, mkinitcpio>  0.7.2, mkinitcpio-busybox>  1.18.5-1
>
> Purpose: we need this for propertly unmount $cow_device,
> used for persistent dm-snapshot devices.
>
> This hook is based on work from Tom Gundersen[#1],
> but adapted for archiso things (specially the shutdown script)
>
> [#1] http://mailman.archlinux.org/pipermail/arch-projects/2011-July/001549.html
> [#2] http://projects.archlinux.org/initscripts.git/commit/?id=1fa7b4b453e96533ae1db3630031285e5fc302b3
> [#3] http://mailman.archlinux.org/pipermail/arch-projects/2011-August/001749.html
>
> Signed-off-by: Gerardo Exequiel Pozzi<vmlinuz386 at yahoo.com.ar>

STATUS: The work around this is finished (cow_persistent + 
archiso_shutdown hook). Tested with loop_mnt and pxe_nbd and combined 
with copytoram=.
I am just waiting for next release of initscripts/mkinitcpio and rebuild 
of mkinitcpio-busybox, to adjust final changes that can be needed. When 
this happens, I will send another [RFC] before inclusion in master (if 
no objections of course).

https://github.com/djgera/archiso/compare/master...cow_persistent

------------
Dirty hacks needs to build this now:

In make_customize_root_image() [configs/releng/build.sh]

     pacman -R --root ${work_dir}/root-image --noconfirm initscripts
     pacman -U --root ${work_dir}/root-image --noconfirm 
initscripts-git-*-${arch}.pkg.tar.xz
     sed -i 's at nosuid,noexec,nodev,mode at nosuid,nodev,mode@' 
${work_dir}/root-image/lib/initcpio/init # fix for mkinitcpio
     sed -i 's@#reexec init at cp /oldroot/sbin/init /sbin@' 
${work_dir}/root-image/etc/rc.shutdown # until new rebuild of 
mkinitcpio-busybox
-------------


-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1



More information about the arch-releng mailing list