imgcreate/creator.py imgcreate/live.py
by Jeremy Katz
imgcreate/creator.py | 4 ++--
imgcreate/live.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit c608a60c6c419d1c71ace7dcfa26e7c1b00fa5ab
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Tue Dec 9 13:33:50 2008 -0500
Support live images using an ext4 rootfs
diff --git a/imgcreate/creator.py b/imgcreate/creator.py
index 519735e..5c7f13d 100644
--- a/imgcreate/creator.py
+++ b/imgcreate/creator.py
@@ -865,7 +865,7 @@ class LoopImageCreator(ImageCreator):
def __get_fstype(self):
return self.__fstype
def __set_fstype(self, val):
- if val != "ext2" and val != "ext3":
+ if val not in ("ext2", "ext3", "ext4"):
raise CreatorError("Unknown _fstype '%s' supplied" % val)
self.__fstype = val
_fstype = property(__get_fstype, __set_fstype)
@@ -874,7 +874,7 @@ class LoopImageCreator(ImageCreator):
This is the filesystem type used when creating the filesystem image.
Subclasses may change this if they wish to use something other ext3.
- Note, only ext2 and ext3 are currently supported.
+ Note, only ext2, ext3, ext4 are currently supported.
Note also, this attribute may only be set before calling mount().
diff --git a/imgcreate/live.py b/imgcreate/live.py
index fb1f917..347d22c 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -209,7 +209,7 @@ class LiveImageCreatorBase(LoopImageCreator):
f.write('LIVEOS="yes"\n')
f.write('PROBE="no"\n')
- f.write('MODULES+="squashfs ext3 ext2 vfat msdos "\n')
+ f.write('MODULES+="squashfs ext4 ext3 ext2 vfat msdos "\n')
f.write('MODULES+="sr_mod sd_mod ide-cd cdrom "\n')
for module in self.__modules:
15 years, 4 months
[PATCH] fix device command version check
by Alan Pevec
From: Alan Pevec <apevec(a)redhat.com>
F8_Device is a FC3_Device subclass, so isinstance was always true
Signed-off-by: Alan Pevec <apevec(a)redhat.com>
---
imgcreate/kickstart.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 58171c4..253d349 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -450,7 +450,7 @@ def get_image_fstype(ks, default = None):
def get_modules(ks):
devices = []
- if isinstance(ks.handler.device, kscommands.device.FC3_Device):
+ if not hasattr(ks.handler.device, "deviceList"):
devices.append(ks.handler.device)
else:
devices.extend(ks.handler.device.deviceList)
--
1.6.0.4
15 years, 5 months
imgcreate/kickstart.py
by Jeremy Katz
imgcreate/kickstart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b98ad7391cef406967636f4fba7e3d5d2602e83f
Author: Alan Pevec <apevec(a)redhat.com>
Date: Sun Dec 7 22:08:01 2008 +0100
fix device command version check
F8_Device is a FC3_Device subclass, so isinstance was always true
Signed-off-by: Alan Pevec <apevec(a)redhat.com>
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 58171c4..253d349 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -450,7 +450,7 @@ def get_image_fstype(ks, default = None):
def get_modules(ks):
devices = []
- if isinstance(ks.handler.device, kscommands.device.FC3_Device):
+ if not hasattr(ks.handler.device, "deviceList"):
devices.append(ks.handler.device)
else:
devices.extend(ks.handler.device.deviceList)
15 years, 5 months
RFE: allow multi live medium
by Till Maas
Hiyas,
I would like to create a usb device that contains several live mediums.
Afaics, this is currently not possible, unless I use a separate partition for
each live medium, because they all expect LiveOS to be the directory
containing some images. Attached is a patch agains mkliveinitrd from the
current rawhide cvs repository that makes it possible to pass a "live_dir"
kernel parameter, that is then used instead of LiveOS.
How do you like this patch and do I have to submit it via bugzilla to the
mkinitrd component to get it included? Do you know other places on the live
medium that use a hardcoded LiveOS directory?
Regards,
Till
15 years, 5 months