]>
Commit | Line | Data |
---|---|---|
74a0c035 AR |
1 | From: Fabian-Gruenbichler <f.gruenbichler@proxmox.com> |
2 | Date: Mon, 14 Aug 2017 19:56:04 +0200 | |
3 | Subject: dracut: make module-setup.sh shebang explicit | |
4 | MIME-Version: 1.0 | |
5 | Content-Type: text/plain; charset="utf-8" | |
6 | Content-Transfer-Encoding: 8bit | |
7 | ||
8 | while these are source by dracut (which is a bash script) | |
9 | the practical difference is small, but it is more correct: | |
10 | ||
11 | /bin/sh is not bash on all systems (e.g. Debian and its | |
12 | derivatives use /bin/dash as /bin/sh by default). | |
13 | ||
14 | Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> | |
15 | Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> | |
16 | Closes #6491 | |
17 | (cherry picked from commit 42a76fc8d757ab82fc1ce8e5e1f2079e07a5b9d4) | |
18 | --- | |
19 | contrib/dracut/02zfsexpandknowledge/module-setup.sh.in | 2 +- | |
20 | contrib/dracut/90zfs/module-setup.sh.in | 2 +- | |
21 | 2 files changed, 2 insertions(+), 2 deletions(-) | |
22 | ||
23 | diff --git a/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in b/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in | |
24 | index 981beb3..c22141f 100755 | |
25 | --- a/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in | |
26 | +++ b/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in | |
27 | @@ -1,4 +1,4 @@ | |
28 | -#!/bin/sh | |
29 | +#!/bin/bash | |
30 | ||
31 | get_devtype() { | |
32 | local typ | |
33 | diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in | |
34 | index 9bbee0e..7632cbc 100755 | |
35 | --- a/contrib/dracut/90zfs/module-setup.sh.in | |
36 | +++ b/contrib/dracut/90zfs/module-setup.sh.in | |
37 | @@ -1,4 +1,4 @@ | |
38 | -#!/bin/sh | |
39 | +#!/bin/bash | |
40 | ||
41 | check() { | |
42 | # We depend on udev-rules being loaded |