Re: [PATCH] Don't write removable devices to /etc/fstab (#505697).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/storage/__init__.py b/storage/__init__.py
> index 03b9876..7996d00 100644
> --- a/storage/__init__.py
> +++ b/storage/__init__.py
> @@ -1851,6 +1851,10 @@ class FSSet(object):
>              if not device.format.mountable and device.format.type != "swap":
>                  continue
>  
> +            # Don't write removable devices, either.  Let the desktop do it.
> +            if device.removable:
> +                continue
> +
>              fstype = getattr(device.format, "mountType", device.format.type)
>              if fstype == "swap":
>                  mountpoint = "swap"

As notting pointed out, I probably don't want to do this.  What if / is
on a removable device, like a USB hard drive?  Perhaps I should change
it to not write out optical devices instead.  That probably gets us most
of the way there.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux