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

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



> 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


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