public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] union fs support
@ 2005-07-28 12:32 Rafael Espíndola
  2005-07-28 12:46 ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Rafael Espíndola @ 2005-07-28 12:32 UTC (permalink / raw
  To: gentoo-dev

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-28 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28 12:32 [gentoo-dev] union fs support Rafael Espíndola
2005-07-28 12:46 ` Mike Frysinger
2005-07-28 13:30   ` Chris Gianelloni
2005-07-28 16:43     ` [gentoo-dev] " Rafael Espíndola
2005-07-28 16:31   ` Rafael Espíndola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox