LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Create a ISO without changing filenames (genisoimage) (http://www.linuxquestions.org/questions/linux-software-2/create-a-iso-without-changing-filenames-genisoimage-4175422113/)

ajr-tech 08-14-2012 08:29 PM

Create a ISO without changing filenames (genisoimage)
 
I am attempting to create an ISO image of a customized yum repository on CentOS 6. Whenever I use genisoimage, it changes the file names in some way. I have tried a variety of different options, but can't figure out how to just make it keep filenames the same.

For example, the directory structure goes from:
Code:

repodata/
Packages/
CentOS-Media.repo

To:
Code:

repodata/
packages/
centos-media.repo

This breaks the repository since the package directory no longer matches (packages != Packages). It also makes all of the package names lowercase.

The options I tried are:
Code:

genisoimage -allow-leading-dots -allow-lowercase -allow-multidot -d -D -iso-level 4 -relaxed-filenames -no-iso-translate -o repo.iso repo/
What are the options that will make genisoimage just copy the directory to an ISO image.

Thanks!

kbp 08-15-2012 06:57 PM

Try:

Code:

cd repo && mkisofs -r -N -allow-leading-dots -d -J -T -o /tmp/my.iso .


All times are GMT -5. The time now is 05:34 PM.