Skip to content

Commit

Permalink
Remove automagic with copying qemu binary into contianer before boots…
Browse files Browse the repository at this point in the history
…trap
  • Loading branch information
AdamSimpson committed Jan 16, 2018
1 parent 41c57a8 commit c4ea296
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Builder/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,6 @@ void read_file(websocket::stream<tcp::socket>& client_stream,
}

std::string build_command(const ClientData& client_data) {
if (client_data.arch == ArchType::ppc64le && client_data.backend == BackendType::singularity) {
// A dirty hack but the ppc64le qemu executable must be in the place the kernel expects it
// Modify the definition to copy this executable in during %setup
// NOTE: singularity currently doesn't have a way to inject this file in before bootstrap
// and so DockerHub or local singularity files are the only supported ppc64le bootstrapper
std::ofstream def{"container.def", std::ios::app};
std::string copy_qemu(
"\n%setup\ncp /usr/bin/qemu-ppc64le ${SINGULARITY_ROOTFS}/usr/bin/qemu-ppc64le");
def << copy_qemu;
}

std::string build_command;
if (client_data.backend == BackendType::singularity) {
Expand Down

0 comments on commit c4ea296

Please sign in to comment.