]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dracut): shellcheck regression in DRACUT_INSTALL calls
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 12 Dec 2022 14:41:55 +0000 (15:41 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 21 Dec 2022 12:10:01 +0000 (12:10 +0000)
commit097dd367bbd61da1577a182c535c5aacdfd07031
tree70d37663edc81e5682cbc2bbe9ad70956e1109a1
parente450085eb8bd7291067aedda137722068487062d
fix(dracut): shellcheck regression in DRACUT_INSTALL calls

If the DRACUT_INSTALL environment variable contains arguments (e.g.:
DRACUT_INSTALL="/usr/lib/dracut/dracut-install --debug"), its call cannot
be enclosed in double quotes. E.g.:

```
> export DRACUT_INSTALL="/usr/lib/dracut/dracut-install"
> "$DRACUT_INSTALL" > /dev/null
dracut-install: No SOURCE argument given
> export DRACUT_INSTALL="/usr/lib/dracut/dracut-install --debug"
> "$DRACUT_INSTALL" > /dev/null
-bash: /usr/lib/dracut/dracut-install --debug: No such file or directory
> $DRACUT_INSTALL > /dev/null
dracut-install: No SOURCE argument given

```
dracut-init.sh
dracut.sh