Browse Source

02caps: do not create /bin/sh link

02caps: do not create /bin/sh link

caps.sh use !/bin/bash explictly, so no need to ln -sf bash /bin/sh

OTOH, 00dash will create the symlink /bin/sh, 99base will create it if
there's no /bin/sh symlink. It looks bad to creat /bin/sh in other modules.

If a script want to use bash as command interpreter it should use !/bin/bash
or !/bin/sh in case dash is not installed.

Signed-off-by: Dave Young <dyoung@redhat.com>
master
Dave Young 13 years ago committed by Harald Hoyer
parent
commit
d6e8280cd8
  1. 2
      modules.d/02caps/module-setup.sh

2
modules.d/02caps/module-setup.sh

@ -14,6 +14,6 @@ install() {
inst_hook pre-pivot 00 "$moddir/caps.sh" inst_hook pre-pivot 00 "$moddir/caps.sh"
inst $(type -P capsh 2>/dev/null) /usr/sbin/capsh inst $(type -P capsh 2>/dev/null) /usr/sbin/capsh
# capsh wants bash and we need bash also # capsh wants bash and we need bash also
inst /bin/bash && ln -sf bash "${initdir}/bin/sh" inst /bin/bash
} }



Loading…
Cancel
Save