On 08/23/2011 04:42 AM, Gerardo Exequiel Pozzi wrote:
For details see the second patch. First patch is to avoid code duplication.

This is based from my experimental branch (wating for ACK to merge in master).

Just building the baseline profile is sufficient to test it.

qemu-img create -f qcow2 /tmp/persi.qcow2 1G
qemu -cdrom archlinux-2011.08.23-i686.iso -hda /tmp/persi.qcow2 -boot d

Create one partiton, make an ext2/3/4 filesystem, set a label, reboot,
add to kernel cmdline cow_label=MY_LABEL, and enjoy.


https://github.com/djgera/archiso/tree/cow_persistent



This work is now merged in master branch. When mkinitcpio-busybox 1.19.2-1 hits [core] (now in [testing]) will be available in testing isos ;)

know issue: is harmless, on shutdown Unmounting filesystem will [FAIL] because filesystem used to store *.cow are in used. This filesystem and others will be unmounted on "deinitramfs" stage ;)

Good luck.



/dev/disk/by-label/ARCH_201110  194M  194M     0 100% /run/archiso/bootmnt
/dev/disk/by-label/pepito      1007M   21M  935M   3% /run/archiso/cowspace
/dev/loop100 86M 86M 0 100% /run/archiso/sfs/root-image
/dev/mapper/arch_root-image     591M  272M  319M  47% /
/dev/loop103 32M 32M 0 100% /run/archiso/sfs/lib-modules
/dev/mapper/arch_lib-modules     92M   40M   52M  43% /lib/modules
/dev/loop106 58M 58M 0 100% /run/archiso/sfs/usr-share
/dev/mapper/arch_usr-share      448M  172M  276M  39% /usr/share
/dev/disk/by-label/ARCH_201110  194M  194M     0 100% /bootmnt


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

Reply via email to