aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/dracut
diff options
context:
space:
mode:
authorFabian-Gruenbichler <[email protected]>2017-08-14 19:56:04 +0200
committerBrian Behlendorf <[email protected]>2017-08-14 10:56:04 -0700
commit42a76fc8d757ab82fc1ce8e5e1f2079e07a5b9d4 (patch)
tree8e2ee397b0c0df41719b5ead7ca755d7b7771d28 /contrib/dracut
parentb52563034230b35f0562b6f40ad1a00f02bd9a05 (diff)
dracut: make module-setup.sh shebang explicit
while these are source by dracut (which is a bash script) the practical difference is small, but it is more correct: /bin/sh is not bash on all systems (e.g. Debian and its derivatives use /bin/dash as /bin/sh by default). Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Fabian Grünbichler <[email protected]> Closes #6491
Diffstat (limited to 'contrib/dracut')
-rwxr-xr-xcontrib/dracut/02zfsexpandknowledge/module-setup.sh.in2
-rwxr-xr-xcontrib/dracut/90zfs/module-setup.sh.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in b/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in
index 981beb301..c22141f00 100755
--- a/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in
+++ b/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
get_devtype() {
local typ
diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in
index 9bbee0e57..7632cbccf 100755
--- a/contrib/dracut/90zfs/module-setup.sh.in
+++ b/contrib/dracut/90zfs/module-setup.sh.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
check() {
# We depend on udev-rules being loaded