[Fai-commit] r6522 - trunk/bin

Thomas Lange lange at alioth.debian.org
Tue May 3 15:19:46 UTC 2011


Author: lange
Date: 2011-05-03 15:19:39 +0000 (Tue, 03 May 2011)
New Revision: 6522

Modified:
   trunk/bin/fai-cd
Log:
call genisoimage with -R instead of -r

Quote from a mail:
According to the genisoimage man page the "-r" does what normally would be
consider the sane thing and sets all directories to 555. This makes sense as
most people will want the cdfs to be readable by normal users. The problem is
that cfagent doesn't like it's /var/lib directories to be readable by others
and will not run.
The "-R" tells genisoimage to copy the perms as specified in the source
directory. With this option cfagent runs correctly and all is well.

Me: Another approach would be that the permissions for
/var/lib/cfengine2 are fixed during runtime.


Modified: trunk/bin/fai-cd
===================================================================
--- trunk/bin/fai-cd	2011-05-01 23:36:55 UTC (rev 6521)
+++ trunk/bin/fai-cd	2011-05-03 15:19:39 UTC (rev 6522)
@@ -236,7 +236,7 @@
     [ $makeiso -eq 0 ] && return
 
     echo "Writing FAI CD-ROM image to $isoname. This may need some time."
-    genisoimage --iso-level 4 -V "$vname" -A "$aname" -log-file /dev/null -quiet -l -r -J -b "$boot_image" -no-emul-boot -boot-load-size 4 -boot-info-table -o $isoname $tmp || die 12 "genisoimage failed." 
+    genisoimage --iso-level 4 -V "$vname" -A "$aname" -log-file /dev/null -quiet -l -R -J -b "$boot_image" -no-emul-boot -boot-load-size 4 -boot-info-table -o $isoname $tmp || die 12 "genisoimage failed." 
     echo -n "ISO image size and filename: "; du -h $isoname
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - -




More information about the Fai-commit mailing list