From 42a76fc8d757ab82fc1ce8e5e1f2079e07a5b9d4 Mon Sep 17 00:00:00 2001 From: Fabian-Gruenbichler Date: Mon, 14 Aug 2017 19:56:04 +0200 Subject: [PATCH] dracut: make module-setup.sh shebang explicit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Fabian Grünbichler Closes #6491 --- contrib/dracut/02zfsexpandknowledge/module-setup.sh.in | 2 +- contrib/dracut/90zfs/module-setup.sh.in | 2 +- 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 981beb3017..c22141f00f 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 9bbee0e574..7632cbccfc 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