From: "Brian C. Lane" <bcl(a)redhat.com>
warning: Declare and assign separately to avoid masking return values.
[SC2155]
Related: rhbz#1269915
---
dracut/fetch-driver-net.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dracut/fetch-driver-net.sh b/dracut/fetch-driver-net.sh
index 38f75eb..d67a595 100755
--- a/dracut/fetch-driver-net.sh
+++ b/dracut/fetch-driver-net.sh
@@ -35,14 +35,14 @@ while read dd; do
info "Fetching RPM driverdisks from $dd directory"
# Following variables are set by nfs_to_var:
- local nfs="" server="" path="" options=""
+ local nfs="" server="" path="" options="" mntdir=""
nfs_to_var "$dd"
# Obtain mount directory and mount it
# (new unique name is generated if not already mounted)
mntdir=$(nfs_already_mounted "$server" "$path")
if [ -z "$mntdir" ]; then
- local mntdir="$(mkuniqdir /run nfs_mnt)"
+ mntdir="$(mkuniqdir /run nfs_mnt)"
mount_nfs "$nfs:$server:$path$(options:+:$options)" "$mntdir"
fi
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/036721fefb3ab3b40b4a946a70dd…
> @@ -1622,15 +1622,22 @@ def _update_custom_storage_ksdata(self):
> MDRaidArrayDevice: ("RaidData", "raid"),
> BTRFSDevice: ("BTRFSData", "btrfs")}
>
> + # list comprehension that builds device ancestors should not get None as a member
> + # when searching for bootloader devices
> + bootloader_devices = []
> + if self.bootloader_device is not None:
> + bootloader_devices.append(self.bootloader_device)
> +
> # make a list of ancestors of all used devices
> - devices = list(set(a for d in list(self.mountpoints.values()) + self.swaps
> + devices = list(set(a for d in list(self.mountpoints.values()) + self.swaps + bootloader_devices
> for a in d.ancestors))
>
> # devices which share information with their distinct raw device
> complementary_devices = [d for d in devices if d.raw_device is not d]
>
> devices.sort(key=lambda d: len(d.ancestors))
> for device in devices:
> +
Extra blank line added.
--
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/433#discussion_r66049085