[f22-branch 1/1] Force the correct FS label on macefi custom (#1141981)
bcl
installerbot-noreply at redhat.com
Wed Mar 11 21:52:42 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
On Mac we want the FS label to be 'Linux HFS+ ESP' so we can detect
previous installations. In custom the user may not know this, so force
the FS label to be the correct one when it is selected.
---
pyanaconda/ui/gui/spokes/custom.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index a278842..1cc6883 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -977,6 +977,11 @@ def _save_right_side(self, selector):
new_device_info["encrypted"] = encrypted
# FS LABEL
+ # The Linux HFS+ ESP partition needs to have the correct FS label.
+ # Override anything the user sets for it.
+ if fs_type == "macefi":
+ self._labelEntry.set_text(new_fs.label)
+
label = self._labelEntry.get_text()
old_label = getattr(device.format, "label", "")
changed_label = (label != old_label)
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/e805fd8edeace07022847db8909e22321afd13f6
More information about the anaconda-patches
mailing list