[master] Two additional patches for timezones and NTP
by Vratislav Podzimek
PATCH 1/2 is something for pity's sake.
PATCH 2/2 is a problem I've discovered when testing previous NTP and timezones
related patches.
Vratislav Podzimek (2):
Continue post-installation steps even if writing NTP configuration
fails
Remove ROOT_PATH/etc/localtime before symlinking timezone
pyanaconda/kickstart.py | 7 +++++--
pyanaconda/timezone.py | 6 ++++++
2 files changed, 11 insertions(+), 2 deletions(-)
--
1.7.11.4
11 years, 8 months
[PATCH f18-alpha-branch 1/2] Fix a string substitution think-o
by Jesse Keating
---
anaconda | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/anaconda b/anaconda
index 7f008a9..f9eb878 100755
--- a/anaconda
+++ b/anaconda
@@ -144,7 +144,8 @@ def setupPythonUpdates():
# from /run/install/ -- JLK
for dirname in ("updates", "product"):
if os.path.exists("/run/install/%s" % dirname):
- os.symlink("/run/install/%s", "/tmp/%s" % (dirname, dirname))
+ os.symlink("/run/install/%s" % dirname,
+ "/tmp/%s" % dirname)
if not os.path.exists("/tmp/updates"):
return
--
1.7.11.2
11 years, 8 months
RAID support for the custom spoke
by David Lehman
pyanaconda/storage/__init__.py | 123 +++++-----
pyanaconda/storage/devicelibs/mdraid.py | 33 ++-
pyanaconda/storage/devices.py | 23 ++-
pyanaconda/storage/devicetree.py | 23 +--
pyanaconda/storage/formats/__init__.py | 7 +
pyanaconda/storage/partitioning.py | 8 +-
pyanaconda/storage/udev.py | 9 +-
pyanaconda/ui/gui/spokes/custom.glade | 400 +++++++------------------------
pyanaconda/ui/gui/spokes/custom.py | 228 ++++++++++++++++--
pyanaconda/ui/gui/spokes/storage.py | 4 +
10 files changed, 417 insertions(+), 441 deletions(-)
11 years, 8 months
[PATCH] Only show groups in the UI if they have members that install by default (default or mandatory packages).
by Bill Nottingham
---
pyanaconda/packaging/yumpayload.py | 15 +++++++++++++++
pyanaconda/ui/gui/spokes/software.py | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 28f728d..44b5b6e 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -876,6 +876,21 @@ reposdir=%s
group = groups.return_group(groupid)
return group.user_visible
+ def _groupHasInstallableMembers(self, groupid):
+ groups = self._yumGroups
+ if not groups:
+ return False
+
+ with _yum_lock:
+ if not groups.has_group(groupid):
+ return False
+
+ group = groups.return_group(groupid)
+ pkgs = group.mandatory_packages.keys() + group.default_packages.keys()
+ if pkgs:
+ return True
+ return False
+
def _selectYumGroup(self, groupid, default=True, optional=False):
# select the group in comps
pkg_types = ['mandatory']
diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
index 5e24f90..bbcfd19 100644
--- a/pyanaconda/ui/gui/spokes/software.py
+++ b/pyanaconda/ui/gui/spokes/software.py
@@ -211,7 +211,7 @@ class SoftwareSelectionSpoke(NormalSpoke):
self._addonStore.clear()
if self.environment:
for grp in self.payload.groups:
- if self.payload.environmentHasOption(self.environment, grp) or self.payload._isGroupVisible(grp):
+ if self.payload.environmentHasOption(self.environment, grp) or (self.payload._isGroupVisible(grp) and self.payload._groupHasInstallableMembers(grp)):
(name, desc) = self.payload.groupDescription(grp)
selected = self.payload.groupSelected(grp)
--
1.7.11.4
11 years, 8 months
F18 Alpha patch for handling updates
by Jesse Keating
This moves our updates image to put content in /run/initramfs/inst.updates/,
and anaconda will symlink that back into /tmp/updates/ when it runs. This
allows us to re-enable /tmp/ as tmpfs and avoid the overlay overflow.
Post-alpha we'll stop making the symlink and instead just use the updates
(and product) content directly from /run/initramfs/inst.
-jlk
11 years, 8 months
[f18-alpha] [PATCH] Use Gtk.main_level() to check if main loop is already running
by Vratislav Podzimek
For some reason GLib.main_depth() stopped working and returns 0
even if Gtk.main loop is already running. This leads to crashes
and hangs of whole GUI when exception appears in a thread
different from the main one.
Resolves: rhbz#849997
---
pyanaconda/exception.py | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index 2ac513b..0ea48b6 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -66,12 +66,20 @@ class AnacondaExceptionHandler(ExceptionHandler):
self.intf.showError(hw_error_msg)
sys.exit(0)
else:
- if GLib.main_depth() > 0:
- # main loop is running, don't crash it by running another one
- # potentially from a different thread
- GLib.idle_add(run_handleException_on_idle,
- ((ty, value, tb), obj))
- else:
+ try:
+ from gi.repository import Gtk
+
+ if Gtk.main_level() > 0:
+ # main loop is running, don't crash it by running another one
+ # potentially from a different thread
+ GLib.idle_add(run_handleException_on_idle,
+ ((ty, value, tb), obj))
+ else:
+ super(AnacondaExceptionHandler, self).handleException(
+ (ty, value, tb), obj)
+
+ except RuntimeError:
+ # X not running (Gtk cannot be initialized)
super(AnacondaExceptionHandler, self).handleException(
(ty, value, tb), obj)
--
1.7.11.4
11 years, 8 months
[PATCH] get liveinst limping along
by Chris Lumens
The following patch series fixes up liveinst enough to where it hits the same
NTP traceback post-install that normal installs do. I consider that to be
a minor victory. It does, of course, have the following problems:
* Using getDirSize for spaceRequired is pretty slow. It's probably good enough
for now, though, and someone with a suitably clever idea can figure out a
better way to do it.
* The spinner on the progress hub doesn't spin, and I have no idea why. Last
time I did a real install, it spins. So it's either broken there now too,
or it's live-specific. This just makes us look like we're hung.
* It's likely there's another traceback or two hiding after the NTP one but
I can't tell because that's not been pushed yet.
But like I said, limping along. This is probably good enough to get everyone
else looking at it so we can have something in for alpha.
- Chris
11 years, 8 months
[PATCH 1/2] parse-kickstart: set IPV6INIT=yes when using ipv6 (#830434)
by Will Woods
It turns out IPV6INIT defaults to "no", so we need to set this.
---
dracut/parse-kickstart | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index b0a21a0..a219118 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -280,6 +280,9 @@ def ksnet_to_ifcfg(net, filename=None):
# ipv6 settings
if net.noipv6:
ifcfg['IPV6INIT'] = "no"
+ elif net.ipv6:
+ ifcfg['IPV6INIT'] = "yes"
+
if net.ipv6 == 'dhcp':
ifcfg['DHCPV6C'] = "yes"
ifcfg['IPV6_AUTOCONF'] = "no"
--
1.7.11.4
11 years, 8 months
[PATCH] require anaconda-widgets
by Brian C. Lane
From: "Brian C. Lane" <bcl(a)redhat.com>
---
anaconda.spec.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/anaconda.spec.in b/anaconda.spec.in
index 93e0115..eb9b8ea 100644
--- a/anaconda.spec.in
+++ b/anaconda.spec.in
@@ -95,6 +95,7 @@ BuildRequires: iscsi-initiator-utils-devel >= %{iscsiver}
BuildRequires: s390utils-devel
%endif
+Requires: anaconda-widgets = %{version}-%{release}
Requires: gnome-icon-theme-symbolic
Requires: python-meh >= %{mehver}
Requires: policycoreutils
--
1.7.11.4
11 years, 8 months
[master] Move expandLangs and use it in LanguageMixIn
by Vratislav Podzimek
PATCH 1/2 moves expandLangs from localeinfo module to localization module
and renames it to match coding style in that file. This change is a step to
language.py and localeinfo.py modules removal.
PATCH 2/2 resolves bug when we get language from kickstart in a different form
we have languages in our store (e.g. 'en_US' vs. 'en_US.UTF-8').
Vratislav Podzimek (2):
Move expandLangs to localization module
Use expand_langs to find matching language (LanguageSpoke)
pyanaconda/language.py | 6 +++---
pyanaconda/localeinfo.py | 27 ---------------------------
pyanaconda/localization.py | 29 +++++++++++++++++++++++++++++
pyanaconda/ui/gui/hubs/progress.py | 4 ++--
pyanaconda/ui/gui/spokes/welcome.py | 4 ++--
scripts/getlangnames.py | 3 ++-
tests/pyanaconda_test/localeinfo_test.py | 5 -----
7 files changed, 38 insertions(+), 40 deletions(-)
--
1.7.11.4
11 years, 8 months