I am building a small system based on gentoo. The system is installed
in a squashfs and has a ext2 added via unionfs. The ext2 is in hda1
and the squashfs is in hda2.

I was very pleased to find out that very little tweaking was necessary
in the linuxrc and initrd.scripts of genkernel 3.3. In initrd.scripts:

 setup_unionfs(){
-       if [ "${USE_UNIONFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '1' ]
+       if [ "${USE_UNIONFS_NORMAL}" -eq '1' ]

and in linuxrc:
@@ -544,6 +544,10 @@
        export CDBOOT
        CDBOOT=1
 else
+       if [ "${USE_UNIONFS_NORMAL}" -eq '1' ]
+       then
+               union_insert_dir $UNION /${NEW_ROOT}
+       fi
        mkdir -p ${NEW_ROOT}/tmp/.initrd
 fi

This simple changes make the use of a unionfs more a less independent
of the use of CDBOOT. Is there any interest in them?

The only problem I am having now is during shutdown. init.d/halt.sh
doesn't appears to have any support for unionfs. Is there a
development version that has? I am trying to add support for it and
will report if I succeed.

Thanks,
Rafael

-- 
gentoo-dev@gentoo.org mailing list

Reply via email to