Always a pleasure. On Thu, May 30, 2019 at 10:40 AM Rickard von Essen < [email protected]> wrote:
> See https://stackoverflow.com/q/82256/226174 > > On Thu, May 30, 2019, 18:31 'Nicholas Bayle' via Packer < > [email protected]> wrote: > >> Is there a trick to creating a file in the filesystem root (/) using a >> provisioner? I cannot get past the permission denied, even with sudo, yet >> the chef provisioner that follows runs fine and can modify everything. >> >> 28 { >> 29 "type": "shell", >> 30 "inline": ["echo 'vagrant' | sudo -S echo '{ \"platform_type\": >> \"vm\" }' > /.platform_info"] >> 31 }, >> >> ==> vmware-vmx: /tmp/script_7904.sh: 2: /tmp/script_7904.sh: cannot >> create /.platform_info: Permission denied >> >> This command works fine with the docker builder because permissions are a >> fantasy there, but any other builder (aws, vm) it fails. >> >> -- >> This mailing list is governed under the HashiCorp Community Guidelines - >> https://www.hashicorp.com/community-guidelines.html. Behavior in >> violation of those guidelines may result in your removal from this mailing >> list. >> >> GitHub Issues: https://github.com/mitchellh/packer/issues >> IRC: #packer-tool on Freenode >> --- >> You received this message because you are subscribed to the Google Groups >> "Packer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/CAGzi4%3D594RpsFNkqEg%2Bnvhtn5iaP5HPNAQuCa9xUuYiY0SVZPA%40mail.gmail.com >> <https://groups.google.com/d/msgid/packer-tool/CAGzi4%3D594RpsFNkqEg%2Bnvhtn5iaP5HPNAQuCa9xUuYiY0SVZPA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/CALz9Rt_AZkg9Wtdr6zLmv%3DtHKGHkPS%2BNE6VYctQAo8RGBR%3Dmcg%40mail.gmail.com > <https://groups.google.com/d/msgid/packer-tool/CALz9Rt_AZkg9Wtdr6zLmv%3DtHKGHkPS%2BNE6VYctQAo8RGBR%3Dmcg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAGzi4%3D6QO-u1sf5-XEVpw89aXsk9dTVt-usBsrgWahYFWndSGQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
