[PATCH 1/2] Do not try to umount None
Brian C. Lane
bcl at redhat.com
Wed Feb 12 15:57:15 UTC 2014
On Wed, Feb 12, 2014 at 12:17:58PM +0100, Vratislav Podzimek wrote:
> If no DD device is selected, it is not mounted and thus should not be attempted
> to be umounted.
>
> Resolves: rhbz#1064243
> Related: rhbz#1016004
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
> dracut/driver-updates | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/dracut/driver-updates b/dracut/driver-updates
> index 2b9e634..c4d6b15 100755
> --- a/dracut/driver-updates
> +++ b/dracut/driver-updates
> @@ -706,7 +706,8 @@ def dd_scan(skip_dds=None, scan_dd_args=True):
> log.info("Found new OEMDRV device(s) - %s" % ", ".join(new_oemdrv))
> dd_todo.update(new_oemdrv)
>
> - umount(mount_point)
> + if mount_point:
> + umount(mount_point)
>
> if __name__ == '__main__':
> log.setLevel(logging.DEBUG)
> --
> 1.8.5.3
I already fixed this in the umount function so that it covers all the
uses.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list