@ -885,6 +885,10 @@ class LogVolData(commands.logvol.F23_LogVolData):
self . mountpoint = " "
self . mountpoint = " "
ty = None
ty = None
if self . mountpoint . startswith ( ' / ' ) and not self . fsopts :
# enable discard for normal filesystems in dom0
self . fsopts = " defaults,discard "
# Sanity check mountpoint
# Sanity check mountpoint
if self . mountpoint != " " and self . mountpoint [ 0 ] != ' / ' :
if self . mountpoint != " " and self . mountpoint [ 0 ] != ' / ' :
raise KickstartParseError ( formatErrorMsg ( self . lineno ,
raise KickstartParseError ( formatErrorMsg ( self . lineno ,
@ -1245,6 +1249,10 @@ class PartitionData(commands.partition.F23_PartData):
else :
else :
ty = storage . default_fstype
ty = storage . default_fstype
if self . mountpoint . startswith ( ' / ' ) and not self . fsopts :
# enable discard for normal filesystems in dom0
self . fsopts = " defaults,discard "
if not size and self . size :
if not size and self . size :
try :
try :
size = Size ( " %d MiB " % self . size )
size = Size ( " %d MiB " % self . size )
@ -1490,6 +1498,10 @@ class RaidData(commands.raid.F25_RaidData):
else :
else :
ty = storage . default_fstype
ty = storage . default_fstype
if self . mountpoint . startswith ( ' / ' ) and not self . fsopts :
# enable discard for normal filesystems in dom0
self . fsopts = " defaults,discard "
# Sanity check mountpoint
# Sanity check mountpoint
if self . mountpoint != " " and self . mountpoint [ 0 ] != ' / ' :
if self . mountpoint != " " and self . mountpoint [ 0 ] != ' / ' :
raise KickstartParseError ( formatErrorMsg ( self . lineno ,
raise KickstartParseError ( formatErrorMsg ( self . lineno ,