Issue #21760 has been updated by Clay Caviness.
NB: the rake tasks for facter 1.6.18 don't work when using the tarball: <pre> fox:facter-1.6.18 crc$ rake package:bootstrap (in /Users/crc/facter-1.6.18) cd ext remote: Counting objects: 2088, done. remote: Compressing objects: 100% (1220/1220), done. remote: Total 2088 (delta 966), reused 1944 (delta 856) Receiving objects: 100% (2088/2088), 541.65 KiB | 0 bytes/s, done. Resolving deltas: 100% (966/966), done. cd - fox:facter-1.6.18 crc$ rake package:apple (in /Users/crc/facter-1.6.18) fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git DEPRECATED: The packaging repo tasks are now loaded by 'packaging.rake'. Please update your Rakefile or loading task to load 'ext/packaging/packaging.rake' instead of 'ext/packaging/tasks/*' (25-Jun-2013). rake aborted! private method `split' called for nil:NilClass (See full trace by running task with --trace) </pre> Basically, 1.6.18's tarball is all kinds of broken. ---------------------------------------- Bug #21760: facter 1.6.18 tarball has a very dangerous preflight script https://projects.puppetlabs.com/issues/21760#change-94755 * Author: Clay Caviness * Status: In Topic Branch Pending Review * Priority: Urgent * Assignee: * Category: installation * Target version: 1.7.x * Keywords: * Branch: * Affected Facter version: 1.6.18 ---------------------------------------- (I emailed this to puppet-users as well) The facter 1.6.18 tarball has many issues. First, the ext/osx/createpackage.sh script still uses packagemaker, which is deprecated. And even if it used that, there are a few references to files in the now-deleted conf/osx/ directory. So it's pretty difficult to create a Mac pkg from this, but after some tweaking of the createpackage.sh script, I managed to do it! I ran the package it created, and noticed the preflight script was taking a looooong time to run. I looked at it, and ... Well, here is the last two lines of the preflight as shipped in the tarball: <pre> $ tail -2 ext/osx/preflight # remove old doc files /bin/rm -Rf "${3}/" </pre> Pop quiz for everyone: what could go wrong here? I'll give a hint, when installing a Mac package, $3 is set to the path of the target install volume. Looking at the source in git, I'm not sure how this preflight got into this state; all the packaging stuff is currently a mess (both facter and puppet are still using the long-deprecated packagemaker tool, among other issues). Anyway, thankfully I caught this before it killed my local home, but I did have to re-image. NB: I'm not using facter 1.7.x because of various issues with the new cfpropertilist modules handling of plists. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
