Gentoo Archives: gentoo-dev

From: "Rafael Espíndola" <rafael.espindola@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] union fs support
Date: Thu, 28 Jul 2005 12:34:57
Message-Id: 564d96fb05072805326ad6b8f4@mail.gmail.com
1 I am building a small system based on gentoo. The system is installed
2 in a squashfs and has a ext2 added via unionfs. The ext2 is in hda1
3 and the squashfs is in hda2.
4
5 I was very pleased to find out that very little tweaking was necessary
6 in the linuxrc and initrd.scripts of genkernel 3.3. In initrd.scripts:
7
8 setup_unionfs(){
9 - if [ "${USE_UNIONFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '1' ]
10 + if [ "${USE_UNIONFS_NORMAL}" -eq '1' ]
11
12 and in linuxrc:
13 @@ -544,6 +544,10 @@
14 export CDBOOT
15 CDBOOT=1
16 else
17 + if [ "${USE_UNIONFS_NORMAL}" -eq '1' ]
18 + then
19 + union_insert_dir $UNION /${NEW_ROOT}
20 + fi
21 mkdir -p ${NEW_ROOT}/tmp/.initrd
22 fi
23
24 This simple changes make the use of a unionfs more a less independent
25 of the use of CDBOOT. Is there any interest in them?
26
27 The only problem I am having now is during shutdown. init.d/halt.sh
28 doesn't appears to have any support for unionfs. Is there a
29 development version that has? I am trying to add support for it and
30 will report if I succeed.
31
32 Thanks,
33 Rafael
34
35 --
36 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] union fs support Mike Frysinger <vapier@g.o>