Merge pull request #6737 from anderspapitto/fhs
build-fhs-userenv passes through command line args
This commit is contained in:
commit
fcfe8ecc33
@ -22,7 +22,7 @@ in stdenv.mkDerivation {
|
|||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cat > $out/bin/${name} <<EOF
|
cat > $out/bin/${name} <<EOF
|
||||||
#! ${stdenv.shell}
|
#! ${stdenv.shell}
|
||||||
exec ${chroot-user}/bin/chroot-user ${env} $out/libexec/run
|
exec ${chroot-user}/bin/chroot-user ${env} $out/libexec/run "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/${name}
|
chmod +x $out/bin/${name}
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ in stdenv.mkDerivation {
|
|||||||
cat > $out/libexec/run <<EOF
|
cat > $out/libexec/run <<EOF
|
||||||
#! ${stdenv.shell}
|
#! ${stdenv.shell}
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
${runScript}
|
${runScript} "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/libexec/run
|
chmod +x $out/libexec/run
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user