~sergiusens/snappy/uflash

« back to all changes in this revision

Viewing changes to partition/utils.go

  • Committer: Sergio Schvezov
  • Date: 2015-07-30 18:46:25 UTC
  • mfrom: (578.1.3 inhibitMore)
  • Revision ID: sergio.schvezov@canonical.com-20150730184625-an1rmlp20eztkxrp
Merged inhibitMore into uflash.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        "strings"
27
27
)
28
28
 
29
 
// Run the commandline specified by the args array chrooted to the given dir
30
 
var runInChroot = func(chrootDir string, args ...string) (err error) {
31
 
        fullArgs := []string{"/usr/sbin/chroot", chrootDir}
32
 
        fullArgs = append(fullArgs, args...)
33
 
 
34
 
        return runCommand(fullArgs...)
35
 
}
36
 
 
37
29
// FIXME: would it make sense to differenciate between launch errors and
38
30
//        exit code? (i.e. something like (returnCode, error) ?)
39
31
func runCommandImpl(args ...string) (err error) {