Hello list, I got a bug report that mksles9root fails to copy hard links on a Red Hat-based system: ... Copying SLES9 ISO images ... Mounting and copying SLES-9-s390x-RC5a-CD1.iso ... Mounting and copying SLES-9-s390x-RC5-CD2.iso ... Mounting and copying SLES-9-s390x-RC5-CD3.iso ... Mounting and copying SLES-9-s390x-RC5-CD4.iso ... Mounting and copying SLES-9-s390x-RC5-CD5.iso ... Mounting and copying SLES-9-s390x-RC5-CD6.iso ... Copying SLES9 SP2 ISO images ... Mounting and copying SLES-9-SP-2-s390x-GM-CD1.iso ... cp: will not create hard link `../sles9root/sp2-9/CD1/suse/noarch' to directory `../sles9root/sp2-9/CD1/s390x/update/SUSE-CORE/9/rpm/noarch' ...
I googled around and it seems that "cp -a" just doesn't copy hard links on Red Hat-based systems as it does on SuSE. See http://lists.ssc.com/pipermail/linux-list/2002-August/013184.html (this seems kind of odd???) In the function mount_copy I changed one line using the rsync command mentioned on that page (minus the -v): # cp -a * ../$target_dir rsync -HlogptrS * ../$target_dir I tested on a Red Hat system and the error messages are no longer issued. I updated the script on http://mikemacisaac.com/mksles9root Thanks to Sam and Kent for helping me with this. "Mike MacIsaac" <[EMAIL PROTECTED]> (845) 433-7061 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390