Unverified Commit feb68362 authored by Mike Perry's avatar Mike Perry Committed by boklm
Browse files

Fix sudo issue with LXC.

parent 419d9681
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -73,7 +73,12 @@ def build_one_configuration(suite, arch, build_desc)
  system! "on-target true"

  info "Preparing build environment"
  if ENV["USE_LXC"]
    # Escaping is borked for LXC commands. :/
    system! "on-target -u root passwd -d ubuntu"
  else
    system! "on-target -u root sed \\''s/(ALL)/NOPASSWD:/'\\' -i /etc/sudoers"
  end
  system! "on-target setarch #{@arches[arch]} bash < target-bin/init-build.sh"

  build_desc["files"].each do |filename|