Skip to content

Commit

Permalink
re-evaluate default fstab options after changed mount point (bnc#774499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fehr committed Aug 15, 2012
1 parent 4c521de commit bd1ce45
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/yast2-storage.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 15 16:14:12 CEST 2012 - fehr@suse.de

- re-evaluate default fstab options after changed mount point
(bnc#774499)

-------------------------------------------------------------------
Mon Aug 13 16:02:08 CEST 2012 - fehr@suse.de

Expand Down
7 changes: 7 additions & 0 deletions storage/src/include/custom_part_lib.ycp
Expand Up @@ -612,7 +612,14 @@ define map<string,any> HandlePartWidgetChanges( boolean init, any ret,
string mp = (string)UI::QueryWidget(`id(`mount_point), `Value);
if( new["mount"]:""!=mp )
{
string oldfst = FileSystems::DefaultFstabOptions(new);
new["mount"] = mp;
string newfst = FileSystems::DefaultFstabOptions(new);
if( oldfst!=newfst )
{
/* Default fstab options have changed, set new default, bnc#774499 */
new["fstopt"] = newfst;
}
new = HandleSubvol( new );
}
if( UI::WidgetExists( `id(`fstab_options) ))
Expand Down

0 comments on commit bd1ce45

Please sign in to comment.