]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(01fips-crypto-policies): use /bin in shebang
authorBenjamin Drung <benjamin.drung@canonical.com>
Mon, 21 Oct 2024 18:51:49 +0000 (20:51 +0200)
committerLaszlo <laszlo.gombos@gmail.com>
Mon, 21 Oct 2024 19:23:52 +0000 (15:23 -0400)
lintian complaints on Debian/Ubuntu:

```
E: dracut-core: wrong-path-for-interpreter /usr/bin/bash != /bin/bash [usr/lib/dracut/modules.d/01fips-crypto-policies/module-setup.sh]
E: dracut-core: wrong-path-for-interpreter /usr/bin/sh != /bin/sh [usr/lib/dracut/modules.d/01fips-crypto-policies/fips-crypto-policies.sh]
```

Even for usr-merged setup, the shells should be found in `/bin`.

modules.d/01fips-crypto-policies/fips-crypto-policies.sh
modules.d/01fips-crypto-policies/module-setup.sh

index ff29829850c89f318975b10ca6c59611b944508e..7d1e13f6ff2c347f8f286a6c2fce96af946ecd7d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/sh
+#!/bin/sh
 
 type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
 
index 74e4e0ae5199763e9cb121e6a9cec40e45ddcd74..e41c7761e007bec8d10853f93520ac9aded182eb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/bin/bash
 
 # called by dracut
 check() {