Skip to content

Commit

Permalink
Fixed sm-prepare-image
Browse files Browse the repository at this point in the history
sm-prepare-image was failing on new platforms because /.zonecontrol is mounted read-only
  • Loading branch information
dn0 committed Feb 13, 2018
1 parent 2764d66 commit 7e3d694
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/tasks/build/zone/kickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
- { path: /etc/motd, state: touch }
- { path: /root/.bash_history, state: absent }

- name: Fix sm-prepare-image
shell: sed -i'' 's/^rm -f \/.zonecontrol\/metadata.sock/rm -f \/.zonecontrol\/metadata.sock || true/' /opt/local/bin/sm-prepare-image

- name: Place default zoneinit scripts
copy: src="{{ item.src }}"
dest="{{ item.dest }}"
Expand Down

0 comments on commit 7e3d694

Please sign in to comment.