LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2006, 05:18 PM   #1
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
merge modules to root filesystem with unionfs?


I've been using the ROOT=/... function of emerge to crosscompile my own livecd. Nothing new. The difference is that I'm using unionfs to build in modules.

mount -t unionfs -o dirs=/modules/apache2:/livecd=ro none /modules/apache2

I do all this in a chroot from the actual system (on the hd) that I'm installing to (ROOT=/liecd). The "Gentoo installer" is really nothing much more than the stage3 tar I'm using for emerge.
mount /dev/hdb2 /mnt/hdb2
mount -t proc none /mnt/hdb2/...gentooinstaller/proc etc
mount --bind / /mnt/hdb2...gentooinstaller/livecd
chroot gentooinstaller
ROOT=/livecd emerge stuff

But now I want to test this module by somehow merging /mnt/hdb2.../modules/apach2 with /. So far I havn't had much luck.

I know it'll work if I copied everything over. But that's not the point. I want to be able to load/unload "modules" while in the livecd either on the CD or into RAM. I'm sure it wouldn't be that hard to set up slax to boot different configuratiosn of the modele (for instance one w/apache2 and one w/o via cp -Pr both w/ or w/o toram). That's a boot option though that cant be "reversed" once in the session.

So how can you do something to the equivilant of:
mount -t unionfs -o dirs=.../modules/apache2:/ none / ? (which btw doesn't work)

Last edited by 1veedo; 12-01-2006 at 05:37 PM.
 
Old 12-09-2006, 10:20 AM   #2
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
I got it...I'm supprised out of all the people who post on these forums, nobody knew.

Instead of mount you use unionctl, eg, unionctl / --add module
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unionfs Sayoji Linux - General 3 11-19-2006 04:34 PM
unionfs not in kernel LQ496873 Linux - Newbie 1 07-15-2006 10:30 AM
unionfs stability lukebeales Linux - Software 1 11-26-2005 08:37 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
Kernel Recompile Filesystem modules ftgow Linux - Software 2 08-25-2003 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration