From: Harald Hoyer Date: Fri, 26 Mar 2021 09:29:18 +0000 (+0100) Subject: fix(btrfs): shellcheck for modules.d/90btrfs X-Git-Tag: 054~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=640458bbf6acb638435eb14af1ab9eaf9aa86fbf;p=thirdparty%2Fdracut.git fix(btrfs): shellcheck for modules.d/90btrfs --- diff --git a/modules.d/90btrfs/.shchkdir b/modules.d/90btrfs/.shchkdir new file mode 100644 index 000000000..e69de29bb diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh index bb0b4c3e2..279ff1459 100755 --- a/modules.d/90btrfs/module-setup.sh +++ b/modules.d/90btrfs/module-setup.sh @@ -2,7 +2,6 @@ # called by dracut check() { - local _rootdev # if we don't have btrfs installed on the host system, # no point in trying to support it in the initramfs. require_binaries btrfs || return 1 @@ -49,8 +48,8 @@ install() { fi inst_multiple -o btrfsck btrfs-zero-log - inst $(command -v btrfs) /sbin/btrfs + inst "$(command -v btrfs)" /sbin/btrfs # Hack for slow machines # see https://github.com/dracutdevs/dracut/issues/658 - echo "rd.driver.pre=btrfs" > ${initdir}/etc/cmdline.d/00-btrfs.conf + echo "rd.driver.pre=btrfs" > "${initdir}"/etc/cmdline.d/00-btrfs.conf }