Merge lp:~allenap/maas/maas-set-correct-file-permissions into lp:maas/trunk
| Status: | Merged |
|---|---|
| Approved by: | Andres Rodriguez on 2012-08-31 |
| Approved revision: | 957 |
| Merged at revision: | 956 |
| Proposed branch: | lp:~allenap/maas/maas-set-correct-file-permissions |
| Merge into: | lp:maas/trunk |
| Diff against target: |
83 lines (+26/-7) 3 files modified
scripts/maas-import-ephemerals (+0/-7) src/provisioningserver/pxe/install_image.py (+8/-0) src/provisioningserver/pxe/tests/test_install_image.py (+18/-0) |
| To merge this branch: | bzr merge lp:~allenap/maas/maas-set-correct-file-permissions |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | 2012-08-31 | Approve on 2012-08-31 | |
|
Review via email:
|
|||
Commit Message
Normalise permissions of all files and directories installed via install-pxe-image.
Previously this was not done, and restrictive permissions could cause failures later on the TFTP server.
This also reverts revision 947, an earlier attempt to fix the same bug.
Description of the Change
This changes install_dir() to normalize
| Scott Moser (smoser) wrote : | # |
- 955. By Gavin Panella on 2012-08-31
-
Normalise permissions before the move.
| Gavin Panella (allenap) wrote : | # |
> But why wouldn't you fix permissions *before* you move it into place?
Good point, I've changed it to before. Thanks for spotting that.
| Scott Moser (smoser) wrote : | # |
Can you please revert the changes to maas-import-
https:/
- 956. By Gavin Panella on 2012-08-31
-
Revert revision 947; it did not have the desired effect.
- 957. By Gavin Panella on 2012-08-31
-
Remove another previous attempt to make install_
tftp_image( ) dtrt.


its curious that you're doing chmod after you've put the files in place, given the big in comments there about a race condition. (which I honestly do not think that is a large concern as this will be very small window and not a common operation).
But why wouldn't you fix permissions *before* you move it into place?