[master][PATCH] Enable LVM Thin Provisioning in text mode
by Vratislav Podzimek
It seems there is no reason for not allowing users choose LVM Thin Provisioning
autopart scheme in text mode.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/ui/tui/spokes/storage.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
index 9cd66f1..55ab2c9 100644
--- a/pyanaconda/ui/tui/spokes/storage.py
+++ b/pyanaconda/ui/tui/spokes/storage.py
@@ -28,7 +28,7 @@ from pyanaconda.ui.tui.spokes import NormalTUISpoke
from pyanaconda.ui.tui.simpleline import TextWidget, CheckboxWidget
from pyanaconda.ui.tui.tuiobject import YesNoDialog
-from pykickstart.constants import AUTOPART_TYPE_LVM, AUTOPART_TYPE_BTRFS, AUTOPART_TYPE_PLAIN
+from pykickstart.constants import AUTOPART_TYPE_LVM, AUTOPART_TYPE_BTRFS, AUTOPART_TYPE_PLAIN, AUTOPART_TYPE_LVM_THINP
from blivet import storageInitialize, arch
from blivet.size import Size
from blivet.errors import StorageError, DasdFormatError
@@ -508,7 +508,9 @@ class PartitionSchemeSpoke(NormalTUISpoke):
def __init__(self, app, data, storage, payload, instclass):
NormalTUISpoke.__init__(self, app, data, storage, payload, instclass)
self.partschemes = OrderedDict([("Standard Partition", AUTOPART_TYPE_PLAIN),
- ("LVM", AUTOPART_TYPE_LVM), ("BTRFS", AUTOPART_TYPE_BTRFS)])
+ ("LVM", AUTOPART_TYPE_LVM),
+ ("LVM Thin Provisioning", AUTOPART_TYPE_LVM_THINP),
+ ("BTRFS", AUTOPART_TYPE_BTRFS)])
@property
def indirect(self):
--
1.9.3
9 years, 12 months
[PATCH 0/5] bootloader updates for rawhide/F21
by Gene Czarcinski
The anaconda updates are all related to the bootloader configuration.
1. The updated grub2-2.02 now supports /boot on a LVMlv or a directory on /.
2. With grub2.02 and os-prober both not fixed to handle /boot on btrfs, only
grubby remains a blocker. BZ 1094489 has an attached patch which updates
grubby.c to handle btrfs.
3. If rootfs is btrfs, change the root parameter to rw instead of ro.
4. Bugfix patch so that liveinst works and produces a good grub.cfg and
a good extlinux.conf.
5. Bugfix patch so the extlinux.conf will include an entry for the rescue
kernel.
Gene Czarcinski (5):
Allow /boot on LVMlv
allow /boot on btrfs subvol or filesystem
set the ro-rw kernel parameters for extlinux
move new-kernel-pkg rpmposttrans to end of install
always rescan for vmlinuz if rescueKernelList
pyanaconda/bootloader.py | 6 +++++-
pyanaconda/packaging/__init__.py | 5 ++---
pyanaconda/packaging/livepayload.py | 12 ++++++------
3 files changed, 13 insertions(+), 10 deletions(-)
--
1.9.0
9 years, 12 months
[anaconda][master][v2][PATCH] Move version detection out of isys
by Martin Kolman
Based on feedback on the first patch, the patch now:
* has a .gitignore entry for the pyanaconda/version.py file
* Makefile.am has been fixed as per dsheas instructions (thanks!) to include the version module
* the version detection code has been moved to a startup_utils module to reduce code duplication
-> the startup utils module has code used during early startup with minimal dependencies
-> version detection is needed in the main anaconda script and for exception handling, so
both places can now use startup_utils and don't need to duplicate the version detection code
* the version detection code now tries to check if the version module is present instead of
just checking for ImportErrors being raised
-> on the other hand, this adds some additional code (versus the simple try-catch used before)
for checking if a module exists
-> but the code is in a self-contained function and might be useful for some other use cases in the future
* the version detection function has been named in such a way to be apparent it always returns a string
-> it returns either a valid version string or "unknown" if version can't be determined
Martin Kolman (1):
Move Anaconda version detection from isys to Python code
.gitignore | 1 +
anaconda | 18 ++++++-----
configure.ac | 1 +
pyanaconda/Makefile.am | 2 +-
pyanaconda/exception.py | 5 +--
pyanaconda/isys/Makefile.am | 4 +--
pyanaconda/isys/__init__.py | 3 --
pyanaconda/isys/isys.c | 6 ----
pyanaconda/startup_utils.py | 77 +++++++++++++++++++++++++++++++++++++++++++++
pyanaconda/version.py.in | 1 +
10 files changed, 95 insertions(+), 23 deletions(-)
create mode 100644 pyanaconda/startup_utils.py
create mode 100644 pyanaconda/version.py.in
--
1.9.0
9 years, 12 months
[PATCH 1/2] network: remove redundant image install guard
by Radek Vykydal
This is guarded at higher level in doConfiguration.
---
pyanaconda/network.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index 2e473e8..4f3f140 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -1029,12 +1029,9 @@ def write_network_config(storage, ksdata, instClass, rootpath):
set_hostname(ksdata.network.hostname)
write_sysconfig_network(rootpath, overwrite=flags.livecdInstall)
disableIPV6(rootpath)
- if not flags.imageInstall:
- copyIfcfgFiles(rootpath)
- copyDhclientConfFiles(rootpath)
- copyFileToPath("/etc/resolv.conf", rootpath, overwrite=flags.livecdInstall)
- # TODO the default for ONBOOT needs to be lay down
- # before newui we didn't set it for kickstart installs
+ copyIfcfgFiles(rootpath)
+ copyDhclientConfFiles(rootpath)
+ copyFileToPath("/etc/resolv.conf", rootpath, overwrite=flags.livecdInstall)
instClass.setNetworkOnbootDefault(ksdata)
# NM_CONTROLLED is not mirrored in ksdata
disableNMForStorageDevices(rootpath, storage)
--
1.9.0
9 years, 12 months
[PATCH 1/3] Remove the border around the refresh storage dialog's button.
by Chris Lumens
---
pyanaconda/ui/gui/spokes/lib/refresh.glade | 1 +
1 file changed, 1 insertion(+)
diff --git a/pyanaconda/ui/gui/spokes/lib/refresh.glade b/pyanaconda/ui/gui/spokes/lib/refresh.glade
index a097194..c64b092 100644
--- a/pyanaconda/ui/gui/spokes/lib/refresh.glade
+++ b/pyanaconda/ui/gui/spokes/lib/refresh.glade
@@ -137,6 +137,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_tabs">False</property>
+ <property name="show_border">False</property>
<child>
<object class="GtkButton" id="rescanButton">
<property name="label" translatable="yes" context="GUI|Refresh Dialog|Rescan">_Rescan Disks</property>
--
1.9.0
10 years
[master][PATCH] Use proper data for autopart type initialization
by Vratislav Podzimek
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/ui/tui/spokes/storage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
index b0344c8..55ab2c9 100644
--- a/pyanaconda/ui/tui/spokes/storage.py
+++ b/pyanaconda/ui/tui/spokes/storage.py
@@ -380,7 +380,7 @@ class StorageSpoke(NormalTUISpoke):
self.data.clearpart.type = CLEARPART_TYPE_ALL
self.data.clearpart.initAll = False
self.storage.config.update(self.data)
- self.storage.autoPartType = self.data.clearpart.type
+ self.storage.autoPartType = self.data.autopart.type
self.storage.reset()
# now set ksdata back to the user's specified config
applyDiskSelection(self.storage, self.data, self.selected_disks)
--
1.9.0
10 years
[blivet][master/rhel7-branch] Make LVM ThinP work
by Vratislav Podzimek
The following patch fixes LVM Thin Provisioning installations. For the
rhel7-branch I'd need to file a bug and tweak the commit message before pushing,
of course.
Vratislav Podzimek (1):
Do not limit ThinLV's size to VG's free space
blivet/devices.py | 6 ++++++
1 file changed, 6 insertions(+)
--
1.9.0
10 years
[blivet][rhel7-branch][PATCH] Multiple arguments for string formatting need to be in parentheses (#1100263)
by Martin Kolman
Signed-off-by: Martin Kolman <mkolman(a)redhat.com>
---
blivet/devices.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index e403551..381a633 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -2721,7 +2721,7 @@ class LVMLogicalVolumeDevice(DMDevice):
try:
vg_info = lvm.vginfo(self.vg.name)
except LVMError as lvmerr:
- msg = "Failed to get free space for the %s VG: %s" % self.vg.name, lvmerr
+ msg = "Failed to get free space for the %s VG: %s" % (self.vg.name, lvmerr)
log.error(msg)
# nothing more can be done, we don't know the VG's free space
return
--
1.9.0
10 years
[PATCH 2/6] install: Move Payload postInstall() after bootloader
by Colin Walters
None of the current Payload subclasses are sensitive to ordering with
respect to the bootloader. The forthcoming OSTreePayload class will
require postprocessing of the bootloader, so let's just swap the
ordering.
---
pyanaconda/install.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
10 years