On Wed, Nov 21, 2001 at 12:21:34AM -0600, Carl Wilhelm Soderstrom wrote:
> How do I get mkisofs to preserve the full path from the current directory,
> instead of just throwing all the files in the next set of subdirectories
> together?
> 
> for instance:
> if I have ~/music/oggs, ~/music/mp3s, ~/music/misc1, ..., ~/music/miscN; and
> I only want to put ~/music/oggs and ~/music/mp3s on the iso; specifying it
> like:
> mkisofs -JR -o /var/tmp/foo.iso ~/music/mp3s ~/music/oggs
> will throw the contents of those two dirs together; whereas I want them to
> be separate dirs at the root of the filesystem.
> 
> I could do 'mkisofs -JR -o foo.iso ~/music' and then write a really long
> list to exclude those dirs that I don't want, using the --exclude-list
> option; but in some cases it's easier to say what you want, rather than what
> you *don't* want.
> 
> anyone have any experience with this? how did you get around the problem?

The way I get around this problem is create a temporary
directory, and then symbolically link the directories that I want
into it.  So you do something like:
# mkdir target ; ln -s ~/music/oggs ~/music/mp3s target
# mkisofs -JR -o /var/tmp/foo.iso target

Its kind of kludgy, but its more flexible than using excludes.

-- 
Jim Crumley                  |Twin Cities Linux Users Group Mailing List (TCLUG)
crumley at fields.space.umn.edu |Minneapolis/St. Paul, Minnesota 
Ruthless Debian Zealot       |http://www.mn-linux.org/ 
Never laugh at live dragons  |Free Dmitry Sklyarov - http://faircopyright.org/