Re: [PATCH] Ensure matching rootfs type to live type with autopart (#501876)

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

 



> diff --git a/storage/partitioning.py b/storage/partitioning.py
> index 7a33f0d..8e9ab3c 100644
> --- a/storage/partitioning.py
> +++ b/storage/partitioning.py
> @@ -90,6 +90,10 @@ def _schedulePartitions(anaconda, disks):
>  
>          if request.fstype is None:
>              request.fstype = anaconda.id.storage.defaultFSType
> +        # This is a little unfortunate but let the backend dictate the rootfstype
> +        # so that things like live installs can do the right thing
> +        if request.mountpoint == "/" and anaconda.backend.rootFsType != None:
> +            request.fstype = anaconda.backend.rootFsType
>  
>          dev = anaconda.id.storage.newPartition(fmt_type=request.fstype,
>                                                 size=request.size,

It would be nice if we could set this up in the autoPartitionRequests to
begin with, but that would require having the instdata set up before the
backend and that could become messy.  So I guess this is a reasonable
compromise for now.

- 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