summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2011-12-08 15:06:01 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2011-12-08 15:06:01 +0000
commita2634251b06bdf0b917d21b458e868722de7c541 (patch)
tree38a3b53f0d10d3cf9b47a6a026619591e62b002b /check
parent007f2e556796f749ab24d79106cd0f1da46b00c3 (diff)
downloadmorph-a2634251b06bdf0b917d21b458e868722de7c541.tar.gz
Made some sudo commands into fakeroot commands
Some commands can remain as fakeroot if they share the same fakeroot This can be done with the -i and -s parameters to fakeroot Now the Execute objects contain a reference to the file that stores their state, so fake commands' fake state is recognised by later commands The creating a system image definitely needs to be sudo though. Morph needs to create some files as part of the process, so unfortunately the equivalent to 'echo foo | sudo tee bar >/dev/null' is being used. They could be created with sufficient permissions, written then have better permissions set, but it seemed neater this way A better solution may be to have a subprogram that does the system image creation Putting files into the staging area for building other chunks is currently sudo, but shouldn't have to be. Rather than having a fakeroot per Execute object, it may be better to have a global one, though this would prevent concurrent use of fakeroot.
Diffstat (limited to 'check')
0 files changed, 0 insertions, 0 deletions