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, 4 months
French fr_FR LiveCD spins
by Nicolas Chauvet
Hello!
Here are the french ks for localized LiveCD spins.
The current problem with adding dictionaries and man-pages is
that they are disabled in the included ks.
(-man-pages-* etc )
So I expect it would be easier to have an "international - offical" ks
that would allow us to add this kind of packages; without having theses
packages removed first.
Or the other way would be to have a +man-pages-fr to override the
removal directive.
The %__install_lang_macro seems really interesting for localization
works. It will save around 200Mo from a liveCD/USB spin. and will make
the KDE Live spin ... a "potential" LiveCD spin.
Everything is already available from Fedora. The packages just need to
use the %find_lang macro from the spec file. Only cups and
NetworkManager-openvpn (for what i've noticed) doesn't seems compatible
and will install all langs...
Cups will probably not been fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=448549
Network-Manager-openvpn
https://bugzilla.redhat.com/show_bug.cgi?id=448551
The testing LiveCD french spins are here
(with additionals packages ).
http://rpms.kwizart.net/fedora/9/ISO/
and the ks used to generated them:
http://rpms.kwizart.net/fedora/9/ISO/ks/livecd-fedora-9-french-20080604-k...
Nicolas Chauvet (kwizart)
%include livecd-fedora-9-desktop.ks
# change some system configurations
# System keyboard
keyboard fr-latin9
# System language
lang fr_FR.UTF-8
# System timezone
timezone Europe/Paris
%packages
# Localized dictionaries and man-pages
hunspell-fr
aspell-fr
man-pages-fr
#Support for your language
@french-support
%end
%pre
# Only install the minimal langs
mkdir -p /etc/rpm
echo "%_install_langs en:fr:fr_FR:fr-FR" > /etc/rpm/macros.lang
%end
%post
# Localized keyboard map
echo fr-latin9 > /etc/X11/Xkbmap
# Localized system timezone
cp -p /usr/share/zoneinfo/Europe/Paris /etc/localtime
# Localized default firefox dictionary
echo "pref(\"spellchecker.dictionary\", \"fr_FR\");" >> \
/usr/lib/firefox-3.0b5/defaults/preferences/all-redhat.js
sed -i -e 's/en-US/fr-FR/g' \
/usr/lib/firefox-3.0b5/defaults/preferences/firefox-l10n.js
%end
%post --nochroot
# Overwrite for a localized README
cp -pR $INSTALL_ROOT/usr/share/doc/HTML/readme-live-image/fr/readme-live-image-fr.txt $LIVE_ROOT/README
%end
%include livecd-fedora-9-kde.ks
# change some system configurations
# System keyboard
keyboard fr-latin9
# System language
lang fr_FR.UTF-8
# System timezone
timezone Europe/Paris
%packages
# Localized dictionaries and man-pages
hunspell-fr
aspell-fr
man-pages-fr
#Support for your language
@french-support
%end
%pre
# Only install the minimal langs
mkdir -p /etc/rpm
echo "%_install_langs en:fr:fr_FR:fr-FR" > /etc/rpm/macros.lang
%end
%post
# Localized keyboard map
echo fr-latin9 > /etc/X11/Xkbmap
# Localized system timezone
cp -p /usr/share/zoneinfo/Europe/Paris /etc/localtime
%end
%post --nochroot
# Overwrite for a localized README
cp -pR $INSTALL_ROOT/usr/share/doc/HTML/readme-live-image/fr/readme-live-image-fr.txt $LIVE_ROOT/README
%end
14 years, 11 months
Periodically remastered LiveCDs?
by Mike Perry
Hey guys,
I was wondering if there are any plans or existing unofficial torrents
that provide remastered "stable" LiveCD images with all the recent
updates applied? For example, I've tried out the FC9 LiveCD and my
wireless card would not work until I installed the iso to a USB and
upgraded my wpa_supplicant and NetworkManager. From googling around,
this seemed like a common problem with the early FC9 installs.
In general, I've noticed the initial release of many distributions is
quite buggy, but that things vastly improve after a couple of months
of updates. Is there any reason why remastered updates aren't provided
officially? Having a more stable LiveCD will definitely give people a
much more favorable opinion of Fedora.
Anyways, great work on the LiveCD effort in general. I was really
impressed with how easy it was to get the USB stick installed in a
non-destructive fashion, even when it contained the very .iso it
installed from. Cool stuff!
--
Mike Perry
Mad Computer Scientist
fscked.org evil labs
15 years
[PATCH] Older authconfig doesn't have --update
by Ruben Kerkhof
Hi list,
This prevents an error message when building live cd's for Centos 4
and Red Hat 4
Signed-off-by: Ruben Kerkhof <ruben(a)rubenkerkhof.com>
---
imgcreate/kickstart.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 11eac7c..377b253 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -163,7 +163,7 @@ class AuthConfig(KickstartConfig):
return
auth = ksauthconfig.authconfig or "--useshadow --enablemd5"
- args = ["/usr/sbin/authconfig", "--update", "--nostart"]
+ args = ["/usr/sbin/authconfig", "--kickstart", "--nostart"]
self.call(args + auth.split())
class FirewallConfig(KickstartConfig):
--
1.5.5.1
15 years
Changes to 'refs/tags/livecd-tools-018'
by Jeremy Katz
Tag 'livecd-tools-018' created by Jeremy Katz <katzj(a)redhat.com> at 2008-08-29 00:16 +0000
livecd-tools-018
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEABECAAYFAki3P9wACgkQbZmr36XllQ1JOgCg5hINMlQEURrFvJvTc6vaGrrJ
wjMAoPycg4E4KBwt28cVsFzBTyUWvfNO
=2nGn
-----END PGP SIGNATURE-----
Changes since livecd-tools-017-69:
---
0 files changed
---
15 years
livecd-tools.spec Makefile
by Jeremy Katz
Makefile | 2 +-
livecd-tools.spec | 20 +++++++++++++++++++-
2 files changed, 20 insertions(+), 2 deletions(-)
New commits:
commit 02dd8e1cf9a09016573c6b5eb6bdd2362e95b05f
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Aug 28 19:56:28 2008 -0400
Bump version
diff --git a/Makefile b/Makefile
index ef45cae..05993c6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 017
+VERSION = 018
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
diff --git a/livecd-tools.spec b/livecd-tools.spec
index a5ca5ec..ab641b8 100644
--- a/livecd-tools.spec
+++ b/livecd-tools.spec
@@ -4,7 +4,7 @@
Summary: Tools for building live CD's
Name: livecd-tools
-Version: 017
+Version: 018
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Base
@@ -63,6 +63,24 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/imgcreate/*.pyc
%changelog
+* Thu Aug 28 2008 Jeremy Katz <katzj(a)redhat.com> - 018-1
+- Use logging API for debugging messages (dhuff)
+- Some initial support for booting live images on an XO
+- Refactoring of mount code for appliance-creator (danpb, dhuff)
+- Make --base-on actually work again
+- Drop the image configs; these are now in the spin-kickstarts repo
+- plymouth support
+- Listen to bootloader --append in config
+- Add man pages (Pedro Silva)
+- Support booting from Intel based Macs via EFI on USB (#450193)
+- Fixes for SELinux enforcing (eparis)
+- Eject the CD on shutdown (#239928)
+- Allow adding extra kernel args with livecd-iso-to-disk
+- Support for persistent /home (#445218)
+- Copy timezone to /etc/localtime (#445624)
+- Ensure that commands run by livecd-creator exist
+- Mount a tmpfs for some dirs (#447127)
+
* Tue May 6 2008 Bill Nottingham <notting(a)redhat.com> - 017-1
- fix F9 final configs
15 years
livecd-tools.spec Makefile
by Jeremy Katz
Makefile | 2 --
livecd-tools.spec | 5 ++---
2 files changed, 2 insertions(+), 5 deletions(-)
New commits:
commit af9dc183e7e8e613948598933cb61bf262821294
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Aug 28 19:42:15 2008 -0400
Stop installing the minimal config; just make it %doc
diff --git a/Makefile b/Makefile
index a8d8659..ef45cae 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,6 @@ install: man
$(INSTALL_DATA) -D README $(DESTDIR)/usr/share/doc/livecd-tools-$(VERSION)/README
$(INSTALL_DATA) -D HACKING $(DESTDIR)/usr/share/doc/livecd-tools-$(VERSION)/HACKING
mkdir -p $(DESTDIR)/usr/share/livecd-tools/
- $(INSTALL_DATA) -D config/*.ks $(DESTDIR)/usr/share/livecd-tools/
mkdir -p $(DESTDIR)/$(PYTHONDIR)/imgcreate
$(INSTALL_PYTHON) -D imgcreate/*.py $(DESTDIR)/$(PYTHONDIR)/imgcreate/
$(call COMPILE_PYTHON,$(DESTDIR)/$(PYTHONDIR)/imgcreate)
@@ -41,7 +40,6 @@ uninstall:
rm -f $(DESTDIR)/usr/bin/livecd-creator
rm -rf $(DESTDIR)/usr/lib/livecd-creator
rm -rf $(DESTDIR)/usr/share/doc/livecd-tools-$(VERSION)
- rm -rf $(DESTDIR)/usr/share/livecd-tools
dist : all
git-archive --format=tar --prefix=livecd-tools-$(VERSION)/ HEAD | bzip2 -9v > livecd-tools-$(VERSION).tar.bz2
diff --git a/livecd-tools.spec b/livecd-tools.spec
index ce4fea8..a5ca5ec 100644
--- a/livecd-tools.spec
+++ b/livecd-tools.spec
@@ -50,13 +50,12 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc AUTHORS COPYING README HACKING
+%doc AUTHORS COPYING README HACKING API
+%doc config/livecd-fedora-minimal.ks
%{_mandir}/man*/*
%{_bindir}/livecd-creator
%{_bindir}/livecd-iso-to-disk
%{_bindir}/livecd-iso-to-pxeboot
-%dir %{_datadir}/livecd-tools
-%{_datadir}/livecd-tools/*
%{_bindir}/image-creator
%dir %{python_sitelib}/imgcreate
%{python_sitelib}/imgcreate/*.py
15 years
tools/livecd-iso-to-disk.sh
by Jeremy Katz
tools/livecd-iso-to-disk.sh | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
New commits:
commit 5b69d94863531e446b9d5c9033347740601cbed0
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Aug 28 17:38:01 2008 -0400
Initial stab at setting up USB/SD for booting on the XO
If you've built a live image with a kernel that will boot on the XO, this
will let you put that image onto a USB stick/SD card with the needed
forth files to boot. Then just drop to the OF prompt while booting your XO
and type either
boot u:\olpc-usb.fth
or
boot sd:\olpc-sd.fth
for booting from USB or SD
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index a2f058e..f3667d1 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -254,6 +254,9 @@ while [ $# -gt 2 ]; do
--mactel)
mactel=1
;;
+ --xo)
+ xo=1
+ ;;
--extra-kernel-args)
kernelargs=$2
shift
@@ -302,7 +305,7 @@ if [ -z "$mactel" ]; then
checkPartActive $USBDEV
[ -n "$resetmbr" ] && resetMBR $USBDEV
checkMBR $USBDEV
-else
+elif [ -n "$mactel" ]; then
[ -n "$resetmbr" ] && createGPTLayout $USBDEV
checkGPT $USBDEV
fi
@@ -479,6 +482,31 @@ if [ -n "$homesizemb" ]; then
fi
fi
+# create the forth files for booting on the XO if requested
+# we'd do this unconditionally, but you have to have a kernel that will
+# boot on the XO anyway.
+if [ -n "$xo" ]; then
+ echo "Setting up /olpc-usb.fth file"
+ args=$(egrep "^[ ]*append" $USBMNT/$SYSLINUXPATH/isolinux.cfg |head -n1 |sed -e 's/.*initrd=[^ ]*//')
+ cat > $USBMNT/olpc-usb.fth <<EOF
+\ Boot script for USB boot
+" $args" to boot-file
+" u:\syslinux\initrd0.img" to ramdisk
+unfreeze
+boot u:\syslinux\vmlinuz0
+EOF
+
+ echo "Setting up /olpc-sd.fth file"
+ cat > $USBMNT/olpc-sd.fth <<EOF
+\ Boot script for SD boot
+" $args" to boot-file
+" sd:\syslinux\initrd0.img" to ramdisk
+unfreeze
+boot sd:\syslinux\vmlinuz0
+EOF
+
+fi
+
echo "Installing boot loader"
if [ -n "$mactel" ]; then
# replace the ia32 hack
15 years
2 commits - imgcreate/kickstart.py tools/livecd-iso-to-disk.sh
by Jeremy Katz
imgcreate/kickstart.py | 9 ++++++---
tools/livecd-iso-to-disk.sh | 5 ++++-
2 files changed, 10 insertions(+), 4 deletions(-)
New commits:
commit abfcd5f100d4f52e65ed674b8bd33db05fa8a155
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Aug 28 15:41:50 2008 -0400
Allow later configs to override repos
When you have a %include'd config file, it can be useful to override the
repo config. This makes it so that the last specification of a specific
repo name wins
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index e352e98..11eac7c 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -21,6 +21,7 @@ import os.path
import shutil
import subprocess
import time
+import logging
import pykickstart.commands as kscommands
import pykickstart.constants as ksconstants
@@ -462,7 +463,7 @@ def get_default_kernel(ks, default = None):
return ks.handler.bootloader.default
def get_repos(ks, repo_urls = {}):
- repos = []
+ repos = {}
for repo in ks.handler.repo.repoList:
inc = []
if hasattr(repo, "includepkgs"):
@@ -479,9 +480,11 @@ def get_repos(ks, repo_urls = {}):
baseurl = repo_urls[repo.name]
mirrorlist = None
- repos.append((repo.name, baseurl, mirrorlist, inc, exc))
+ if repos.has_key(repo.name):
+ logging.warn("Overriding already specified repo %s" %(repo.name,))
+ repos[repo.name] = (repo.name, baseurl, mirrorlist, inc, exc)
- return repos
+ return repos.values()
def convert_method_to_repo(ks):
try:
commit 60d00e6aa7072b2269fbe52411a07e252497b102
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Aug 28 15:36:01 2008 -0400
Add a --force to override the check for existing live images on a stick
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 48ae40b..a2f058e 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -258,6 +258,9 @@ while [ $# -gt 2 ]; do
kernelargs=$2
shift
;;
+ --force)
+ force=1
+ ;;
*)
usage
;;
@@ -358,7 +361,7 @@ if [ $(($overlaysizemb + $homesizemb + $livesize)) -gt $(($free + $tbd)) ]; then
exitclean
fi
-if [ -d $USBMNT/LiveOS ]; then
+if [ -d $USBMNT/LiveOS -a -z "$force" ]; then
echo "Already set up as live image."
if [ -z "$keephome" -a -e $USBMNT/LiveOS/home.img ]; then
echo "WARNING: Persistent /home will be deleted!!!"
15 years
[Fedora Forum] Micro Fedora
by Luya Tshimbalanga
Hello,
A Fedora user nicknamed stevea has posted an topic about making micro Fedora. It
will be nice to take a look because he may be a very important contributors
given his skills in embedded.
"
The minimalFedora system weighed in at 67MB. 58MB was in /lib/modules. I could
easily pare that down to a few MB, remove unused drivers with a little work.
Another 6.5MB was in /boot and 1.7MB in busybox. Aside from the homemade
inittab and rcS (init script) it was all from the Fedora distro,".
References:
-----------
http://forums.fedoraforum.org/showthread.php?t=190084
--
Luya Tshimbalanga
Fedora Project contributor
http://www.fedoraproject.org/wiki/LuyaTshimbalanga
P.S: disregard the comparison with BSD topic.
15 years