mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
[partition] Make filesystem optional and default to unformatted
This commit is contained in:
parent
163351a803
commit
db08d2db8b
2 changed files with 3 additions and 3 deletions
|
@ -134,7 +134,7 @@ PartitionLayout::init( const QVariantList& config )
|
||||||
{
|
{
|
||||||
QVariantMap pentry = r.toMap();
|
QVariantMap pentry = r.toMap();
|
||||||
|
|
||||||
if ( !pentry.contains( "name" ) || !pentry.contains( "filesystem" ) || !pentry.contains( "size" ) )
|
if ( !pentry.contains( "name" ) || !pentry.contains( "size" ) )
|
||||||
{
|
{
|
||||||
cError() << "Partition layout entry #" << config.indexOf( r )
|
cError() << "Partition layout entry #" << config.indexOf( r )
|
||||||
<< "lacks mandatory attributes, switching to default layout.";
|
<< "lacks mandatory attributes, switching to default layout.";
|
||||||
|
@ -147,7 +147,7 @@ PartitionLayout::init( const QVariantList& config )
|
||||||
CalamaresUtils::getString( pentry, "type" ),
|
CalamaresUtils::getString( pentry, "type" ),
|
||||||
CalamaresUtils::getUnsignedInteger( pentry, "attributes", 0 ),
|
CalamaresUtils::getUnsignedInteger( pentry, "attributes", 0 ),
|
||||||
CalamaresUtils::getString( pentry, "mountPoint" ),
|
CalamaresUtils::getString( pentry, "mountPoint" ),
|
||||||
CalamaresUtils::getString( pentry, "filesystem" ),
|
CalamaresUtils::getString( pentry, "filesystem", "unformatted" ),
|
||||||
CalamaresUtils::getSubMap( pentry, "features", ok ),
|
CalamaresUtils::getSubMap( pentry, "features", ok ),
|
||||||
CalamaresUtils::getString( pentry, "size", QStringLiteral( "0" ) ),
|
CalamaresUtils::getString( pentry, "size", QStringLiteral( "0" ) ),
|
||||||
CalamaresUtils::getString( pentry, "minSize", QStringLiteral( "0" ) ),
|
CalamaresUtils::getString( pentry, "minSize", QStringLiteral( "0" ) ),
|
||||||
|
|
|
@ -207,7 +207,7 @@ defaultFileSystemType: "ext4"
|
||||||
# - uuid: partition uuid (optional parameter; gpt only; requires KPMCore >= 4.2.0)
|
# - uuid: partition uuid (optional parameter; gpt only; requires KPMCore >= 4.2.0)
|
||||||
# - type: partition type (optional parameter; gpt only; requires KPMCore >= 4.2.0)
|
# - type: partition type (optional parameter; gpt only; requires KPMCore >= 4.2.0)
|
||||||
# - attributes: partition attributes (optional parameter; gpt only; requires KPMCore >= 4.2.0)
|
# - attributes: partition attributes (optional parameter; gpt only; requires KPMCore >= 4.2.0)
|
||||||
# - filesystem: filesystem type
|
# - filesystem: filesystem type (optional parameter; fs not created if "unformatted" or unset)
|
||||||
# - mountPoint: partition mount point (optional parameter; not mounted if unset)
|
# - mountPoint: partition mount point (optional parameter; not mounted if unset)
|
||||||
# - size: partition size in bytes (append 'K', 'M' or 'G' for KiB, MiB or GiB)
|
# - size: partition size in bytes (append 'K', 'M' or 'G' for KiB, MiB or GiB)
|
||||||
# or
|
# or
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue