]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut.sh: fix errors pointed out by shellcheck.
authorÉrico Rolim <erico.erc@gmail.com>
Sun, 23 Aug 2020 21:15:32 +0000 (18:15 -0300)
committerDaniel Molkentin <daniel@molkentin.de>
Mon, 24 Aug 2020 08:27:29 +0000 (10:27 +0200)
commit3b92d8bf84d8dac57ffc1293f6f5c6d621ddd267
tree1d4209fa5d158284982f97e0ce8db797feebdb2a
parent1855efb15af9009c1f6db77c1d9ce012129bcb71
dracut.sh: fix errors pointed out by shellcheck.

- use [ ] instead of calling test manually, as most of the script is
doing.

- use quotes in hostonly_cmdline blocks, specially when dealing with the
conf files, whose names are set by users/system administrators

- uefi_splash_image was being assigned set to `${dracutsysroot}...`, which
is a variable that doesn't exist.

- we don't want the conditional to run the output of fsfreeze as
commands. Instead, we just need to know if any of the fsfreeze commands
failed.
dracut.sh