F7 general question about livecd-creator and timezones
by Skunk Worx
My ks scripts have the timezone set to PDT (America/Los_Angeles).
Installation to a hard drive works as expected. PDT in startup and in
shells, etc.
Creating a livecd-creator iso with the same tz setting, then booting,
shows A/L_A in the /etc/sysconfig/clock file, as expected.
However the date is always EDT in the boot messages, shells, etc.
During startup I see :
(lvm)
Press I to enter interactive startup
Setting clock (utc) Mon Jun 4 00:12:59 EDT 2007
(udev)
I'm not clear on what is happening between lvm and udev in the Linux
startup sequence.
If someone could give me a hint about what to look for and where to look
for it I would appreciate the help.
---
John
14 years, 5 months
[PATCH] Make USB disk into full DVD installer
by Warren Togami
<changelog>
This patch allows livecd-iso-to-disk.sh to detect if the specified .iso
image is an Anaconda DVD installer. If so, it copies it to the USB disk
and configures syslinux to boot it. Anaconda will automatically find
the DVD iso on the USB stick and install from it.
Requires Fedora 11 Preview DVD iso and later.
</changelog>
* This was tested to with Fedora 11 Preview DVD iso, without breaking
standard LiveCD iso install.
* Code is intentionally not "clean" in order to minimize the size of the
git diff to make it easy to visually understand and confirm the changes.
If this patch is acceptable, it will be followed by another patch that
cleans up the code.
Comments?
Warren Togami
wtogami(a)redhat.com
14 years, 5 months
Live.py question
by David Huff
What is the version parameter in __copy_kernel_and_initramfs used for???
"
def __copy_kernel_and_initramfs(self, destdir, version):
bootdir = self._instroot + "/boot"
makedirs(destdir)
shutil.copyfile(bootdir + "/vmlinuz-" + version,
destdir + "/vmlinuz")
shutil.copyfile(bootdir + "/initrd-" + version + ".img",
destdir + "/initrd.img")
"
I ask because livecd-to-pxeboot looks statically for version 0, if this
ever changes it looks like it would cause the script to fail.
"
# Does it look like an ISO?
if [ ! -d $CDMNT/isolinux -o ! -f $CDMNT/isolinux/initrd0.img ]; then
echo "The ISO image doesn't look like a LiveCD ISO image to me."
exitclean
fi
"
Also all Fedora and RHEL distributions, nonlivecd, have no version in
the initrd.img images on the disk, so if one wanted to use
livecd-to-pxeboot to set up a pxe tree from a regular distro it will
fail. (know its not designed for this however could be a nice to have)
comments.......
PS: also looks like livecd-iso-to-disk does the same thing, statically
looks for version 0
-D
14 years, 5 months
tools/livecd-iso-to-disk.sh
by Jeremy Katz
tools/livecd-iso-to-disk.sh | 1 +
1 file changed, 1 insertion(+)
New commits:
commit e94db68943a0ed78cbbd72b152a2aed0c16a5e03
Author: Warren Togami <wtogami(a)redhat.com>
Date: Tue Apr 28 21:32:08 2009 -0400
chattr -i extlinux.sys
chattr -i extlinux.sys after it is installed, because it isn't useful to
be protected, and it is annoying as it prevents easy removal.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 4effb3e..4ed16c1 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -686,6 +686,7 @@ if [ -z "$multi" ]; then
# and has to be run with the file system mounted
mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/extlinux.conf
extlinux -i $USBMNT/$SYSLINUXPATH
+ chattr -i $USBMNT/$SYSLINUXPATH/extlinux.sys
cleanup
fi
else
14 years, 5 months
[PATCH] chattr -i extlinux.sys
by Warren Togami
chattr -i extlinux.sys after it is installed, because it isn't useful to
be protected, and it is annoying as it prevents easy removal.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 4effb3e..26d431f 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -686,6 +699,7 @@ if [ -z "$multi" ]; then
# and has to be run with the file system mounted
mv $USBMNT/$SYSLINUXPATH/isolinux.cfg
$USBMNT/$SYSLINUXPATH/extlinux.conf
extlinux -i $USBMNT/$SYSLINUXPATH
+ chattr -i $USBMNT/$SYSLINUXPATH/extlinux.sys
cleanup
fi
else
14 years, 5 months
5 commits - imgcreate/fs.py imgcreate/live.py
by Jeremy Katz
imgcreate/fs.py | 8 +++++++-
imgcreate/live.py | 8 ++++----
2 files changed, 11 insertions(+), 5 deletions(-)
New commits:
commit 149e1d01eef4da1064038792e46c8765d8bb0080
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Mon Apr 27 15:31:15 2009 -0400
More ppc syntax fixing (#497193)
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 4b5286e..f91a5d2 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -670,7 +670,7 @@ image=/ppc/ppc%(bit)s/vmlinuz
""" % args
- def __write_yaboot_config(isodir, bit):
+ def __write_yaboot_config(self, isodir, bit):
cfg = self.__get_basic_yaboot_config(name = self.name,
timeout = self._timeout * 100)
commit d218b52f16389d510c74f989e24f471f1ab56075
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Apr 23 12:51:54 2009 -0400
Raise an error if the fsck finds problems
diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index 5dfacec..65f16e4 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -457,7 +457,8 @@ class ExtDiskMount(DiskMount):
else:
bot = t
- self.__fsck()
+ if self.__fsck() != 0:
+ raise CreatorError("fsck returned an error!")
return top
def resparse(self, size = None):
commit 3141a0ca6d0588605619aded646e638305691226
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Apr 23 12:36:58 2009 -0400
Fix up ppc live image creation (#497193)
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 7b07d22..4b5286e 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -733,9 +733,9 @@ image=/ppc/ppc32/vmlinuz
"""configure the boot loader"""
havekernel = { 32: False, 64: False }
- self.__copy_boot_file("mapping", isodir + "/ppc")
- self.__copy_boot_file("bootinfo.txt", isodir + "/ppc")
- self.__copy_boot_file("ofboot.b", isodir + "/ppc/mac")
+ self.__copy_boot_file(isodir + "/ppc", "mapping")
+ self.__copy_boot_file(isodir + "/ppc", "bootinfo.txt")
+ self.__copy_boot_file(isodir + "/ppc/mac", "ofboot.b")
shutil.copyfile(self._instroot + "/usr/lib/yaboot/yaboot",
isodir + "/ppc/mac/yaboot")
commit 786dbdd9edf41866544f6810353ed6c5208d618d
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Apr 23 12:36:44 2009 -0400
Return return code from fsck in case we want to do something with it
diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index cc4d503..5dfacec 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -419,7 +419,8 @@ class ExtDiskMount(DiskMount):
def __fsck(self):
logging.debug("Checking filesystem %s" % self.disk.lofile)
- subprocess.call(["/sbin/e2fsck", "-f", "-y", self.disk.lofile])
+ rc = subprocess.call(["/sbin/e2fsck", "-f", "-y", self.disk.lofile])
+ return rc
def __get_size_from_filesystem(self):
def parse_field(output, field):
commit f2719f41b9e6be0b15b533d166620a31d0730d16
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Apr 23 12:33:45 2009 -0400
Fsck after resize to catch/fix problems (#497377)
diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index 4a698e8..cc4d503 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -397,6 +397,8 @@ class ExtDiskMount(DiskMount):
self.__fsck()
resize2fs(self.disk.lofile, size)
+
+ self.__fsck()
return size
def __create(self):
@@ -453,6 +455,8 @@ class ExtDiskMount(DiskMount):
top = t
else:
bot = t
+
+ self.__fsck()
return top
def resparse(self, size = None):
14 years, 5 months
Branch 'f10-branch' - livecd-tools.spec Makefile
by Jeremy Katz
Makefile | 2 +-
livecd-tools.spec | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
New commits:
commit b9f5f1335a6605ef21e1be1c59cfdaeaea11575b
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Tue Apr 21 14:09:10 2009 -0400
Bump version
diff --git a/Makefile b/Makefile
index 48c89d5..5c65cb8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 020
+VERSION = 020.1
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
diff --git a/livecd-tools.spec b/livecd-tools.spec
index 7ab1468..5956add 100644
--- a/livecd-tools.spec
+++ b/livecd-tools.spec
@@ -4,7 +4,7 @@
Summary: Tools for building live CD's
Name: livecd-tools
-Version: 020
+Version: 020.1
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Base
@@ -64,6 +64,14 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/imgcreate/*.pyc
%changelog
+* Tue Apr 21 2009 Jeremy Katz <katzj(a)redhat.com> - 020.1-1
+- Fix up --base-on (#471656)
+- Fix macro name for excludedocs (bkearney)
+- Fix device command (apevec)
+- Fix unicode errors (Felix Schwarz)
+- Support syslinux in /usr/share
+- Use our syslinux's menu com32 modules in livecd-iso-to-disk (#492370)
+
* Wed Nov 12 2008 Jeremy Katz <katzj(a)redhat.com> - 020-1
- Support setting up a swap file
- Verify integer args in livecd-iso-to-disk (#467257)
14 years, 5 months
liveinst, root and ext3
by Sebastian Vahl
Isn't it possible to install the F11 live images to an ext3
root filesystem (and only one partition)? AFAIR ext2 worked with F9 and
F10 images.
Sebastian
14 years, 5 months
usb install media documentation.
by Ian Kelling
In the official fedora install documentation there is a section "Making USB Media",
http://docs.fedoraproject.org/install-guide/f10/en_US/sn-making-media.htm...
, there are subsections for Windows and Linux. In the linux instructions, the
only instructions for installing livecd-tools are for Fedora. Obviously many
users installing Fedora don't have it on their computer already, which makes
using windows the only documented option. I think its important to have
documentation for using other linux distros.
A lot of laptops don't have cd drives nowadays. Going to try fedora on your
laptop and first thing finding that having windows is the only officially
documented way move to fedora with your hardware is not a good message.
Also, I went to see if this had been discussed before, but there is no search
feature on the archive. Its here:
https://www.redhat.com/archives/fedora-livecd-list/
Any way around that?
- Ian Kelling
14 years, 5 months