mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
Fix openshift oc cluster up mount
This commit is contained in:
parent
6654fde548
commit
fd09c3dcae
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, removeReferencesTo, which, go_1_9, go-bindata, makeWrapper, rsync
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, removeReferencesTo, which, go_1_9, go-bindata, makeWrapper, rsync, utillinux
|
||||||
, iptables, coreutils, kerberos, clang
|
, iptables, coreutils, kerberos, clang
|
||||||
, components ? [
|
, components ? [
|
||||||
"cmd/oc"
|
"cmd/oc"
|
||||||
@ -37,6 +37,18 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
patchShebangs ./hack
|
patchShebangs ./hack
|
||||||
|
|
||||||
|
substituteInPlace pkg/oc/bootstrap/docker/host/host.go \
|
||||||
|
--replace 'nsenter --mount=/rootfs/proc/1/ns/mnt findmnt' \
|
||||||
|
'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/findmnt'
|
||||||
|
|
||||||
|
substituteInPlace pkg/oc/bootstrap/docker/host/host.go \
|
||||||
|
--replace 'nsenter --mount=/rootfs/proc/1/ns/mnt mount' \
|
||||||
|
'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/mount'
|
||||||
|
|
||||||
|
substituteInPlace pkg/oc/bootstrap/docker/host/host.go \
|
||||||
|
--replace 'nsenter --mount=/rootfs/proc/1/ns/mnt mkdir' \
|
||||||
|
'nsenter --mount=/rootfs/proc/1/ns/mnt ${utillinux}/bin/mount'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user