69665c9
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "import distutils.sysconfig as d; print d.get_python_lib()")}
69665c9
1b697a8
%define debug_package %{nil}
1b697a8
edf454a
Summary: Tools for building live CDs
dc9f982
Name: livecd-tools
052db25
Version: 034
68d7721
Release: 9%{?dist}
69665c9
License: GPLv2
dc9f982
Group: System Environment/Base
b2b9d76
URL: http://git.fedorahosted.org/git/livecd
661f001
# To make source tar ball:
661f001
# git clone git://git.fedorahosted.org/livecd
661f001
# cd livecd
691758f
# make dist
052db25
# scp livecd*.tar.bz2 fedorahosted.org:livecd
052db25
Source0: http://fedorahosted.org/releases/l/i/livecd/%{name}-%{version}.tar.bz2
983c635
Patch0: vesa.patch
898f802
Patch1: regex.patch
d7edf70
Patch2: menulabel.patch
6149030
Patch3: devloop.patch
dad1508
Patch4: livecd-tools-034-newpath.patch
cf6a3c0
Patch5: lzo.patch
dc9f982
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
9592f81
Requires: python-imgcreate = %{version}-%{release}
dc9f982
Requires: mkisofs
1b697a8
Requires: isomd5sum
420b520
Requires: parted
a1883d6
Requires: pyparted
88dab99
%ifarch %{ix86} x86_64
88dab99
Requires: syslinux
68d7721
Requires: /sbin/extlinux
88dab99
%endif
ab477e4
%ifarch ppc
88dab99
Requires: yaboot
88dab99
%endif
69665c9
BuildRequires: python
c80c5e6
BuildRequires: /usr/bin/pod2man
88dab99
dc9f982
dc9f982
%description 
edf454a
Tools for generating live CDs on Fedora based systems including
dc9f982
derived distributions such as RHEL, CentOS and others. See
dc9f982
http://fedoraproject.org/wiki/FedoraLiveCD for more details.
dc9f982
9592f81
%package -n python-imgcreate
9592f81
Summary: Python modules for building system images
9592f81
Group: System Environment/Base
9592f81
Requires: util-linux
9592f81
Requires: coreutils
9592f81
Requires: e2fsprogs
9592f81
Requires: yum >= 3.2.18
9592f81
Requires: squashfs-tools
9592f81
Requires: pykickstart >= 0.96
9592f81
Requires: dosfstools >= 2.11-8
070a904
Requires: system-config-keyboard >= 1.3.0
9592f81
Requires: python-urlgrabber
9592f81
Requires: libselinux-python
9592f81
Requires: dbus-python
9592f81
9592f81
%description -n python-imgcreate
9592f81
Python modules that can be used for building images for things
9592f81
like live image or appliances.
9592f81
9592f81
dc9f982
%prep
dc9f982
%setup -q
a8e3cfb
%patch0 -p1
898f802
%patch1 -p1
d7edf70
%patch2 -p1
6149030
%patch3 -p1
dad1508
%patch4 -p1
cf6a3c0
%patch5 -p1
dc9f982
dc9f982
%build
dc9f982
make
dc9f982
dc9f982
%install
dc9f982
rm -rf $RPM_BUILD_ROOT
dc9f982
make install DESTDIR=$RPM_BUILD_ROOT
dc9f982
dc9f982
%clean
dc9f982
rm -rf $RPM_BUILD_ROOT
dc9f982
dc9f982
%files
dc9f982
%defattr(-,root,root,-)
9592f81
%doc AUTHORS COPYING README HACKING
c80c5e6
%doc config/livecd-fedora-minimal.ks
c80c5e6
%{_mandir}/man*/*
dc9f982
%{_bindir}/livecd-creator
f4b8d43
%{_bindir}/livecd-iso-to-disk
1d54429
%{_bindir}/livecd-iso-to-pxeboot
69665c9
%{_bindir}/image-creator
21d29b5
%{_bindir}/liveimage-mount
Jasper Hartline d5e09a0
%{_bindir}/mkbiarch
9592f81
9592f81
%files -n python-imgcreate
9592f81
%defattr(-,root,root,-)
9592f81
%doc API
69665c9
%dir %{python_sitelib}/imgcreate
69665c9
%{python_sitelib}/imgcreate/*.py
69665c9
%{python_sitelib}/imgcreate/*.pyo
69665c9
%{python_sitelib}/imgcreate/*.pyc
dc9f982
dc9f982
%changelog
68d7721
* Thu Sep 16 2010 Bruno Wolff III <bruno@wolff.to> - 034-9
68d7721
- Change requires to /sbin/extlinux since that will work with old and new
68d7721
  versions of syslinux.
68d7721
3146b6f
* Thu Sep 16 2010 Bruno Wolff III <bruno@wolff.to> - 034-8
dfd9f85
- extlinux is now in a subpackage that is required by livecd-iso-to-disk
dfd9f85
dad1508
* Tue Sep 14 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 034-7
dad1508
- fix background image copying to use new-new logo path
dad1508
dad1508
* Tue Sep 14 2010 Bruno Wolff III <bruno@wolff.to> - 034-6
6149030
- One /dev/loop* change had been missed. Backport patch.
6149030
d7edf70
* Mon Sep 13 2010 Bruno Wolff III <bruno@wolff.to> - 034-5
d7edf70
- Backport basic video menu label fix
d7edf70
898f802
* Mon Sep 13 2010 Bruno Wolff III <bruno@wolff.to> - 034-4
898f802
- Backport missing parts of the regex fix patch
898f802
983c635
* Mon Sep 13 2010 Bruno Wolff III <bruno@wolff.to> - 034-3
983c635
- Backported fix for vesa boot menu item
983c635
a1883d6
* Sun Sep 12 2010 Bruno Wolff III <bruno@wolff.to> - 034-2
a1883d6
- mkbiarch needs pyparted
a1883d6
052db25
* Sat Sep 11 2010 Bruno Wolff III <bruno@wolff.to> - 034-1
052db25
- A new experimental script for creating live images.
052db25
- Handle partition devices that have a separator character in them.
052db25
- Initial checkin of a new expermiental tool for live backup images.
052db25
- Allow use of stage2 for repos to help with netinst ISOs.
052db25
- Fix issue with using netinst ISOs.
052db25
- Add support for ext4 now that syslinux supports it.
052db25
- Fix for enumerating loop devices using bash 4.1.7.
052db25
- Change --skipcopy to not overwrite other large areas.
052db25
- Add basic video driver option to syslinux/isolinux.
052db25
- Don't create sparse files one byte too large.
052db25
- Display progress information when copying image to USB devices.
052db25
- Set default boot language for USB images to the current locale.
052db25
- Use grep instead of depreceated egrep.
052db25
- Set up locale or there can be problems handling nonascii strings.
052db25
- Try normal umount before falling back to lazy umount.
052db25
- Allow creation of SELinux enabled LiveCD from an SELinux disabled system.
052db25
1d83a01
* Tue Jul 30 2010 Bruno Wolff III <bruno@wolff.to> - 033-3
1d83a01
- The previous update got replaced by the python update; another bump is needed.
1d83a01
39ca62f
* Tue Jul 27 2010 Bruno Wolff III <bruno@wolff.to> - 033-2
39ca62f
- Replace 'zlib' with 'gzip' to fix thinko about the compressor name.
39ca62f
66fe36f
* Tue Jul 27 2010 Bruno Wolff III <bruno@wolff.to> - 033-1
7cf3dc9
- Fix for vesa splash file change for bz 617115.
7cf3dc9
- Use lazy umounts as a work around for bz 617844.
7cf3dc9
- Better handling of Environment exceptions for bz 551932.
7cf3dc9
963b991
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 032-5
963b991
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
963b991
21d29b5
* Sat Jun 19 2010 Bruno Wolff III <bruno@wolff.to> - 032-4
21d29b5
- liveimage-mount is new to 023
21d29b5
fa2c06c
* Sat Jun 19 2010 Bruno Wolff III <bruno@wolff.to> - 032-3
fa2c06c
- Change the version in the Makefile
fa2c06c
661f001
* Sat Jun 19 2010 Bruno Wolff III <bruno@wolff.to> - 032-2
661f001
- Fix tar prefix and document how to make it
661f001
420b520
* Sat Jun 19 2010 Bruno Wolff III <bruno@wolff.to> - 032-1
420b520
- Added support for specifying compressors
420b520
- Add Requires for parted - Bug 605639
420b520
- Add rd_NO_DM dracut cmdline options - Bug 589783
420b520
- See http://git.fedorahosted.org/git/?p=livecd;a=shortlog for a list of
420b520
  upstream commits since 031 was tagged.
420b520
5d7055e
* Tue Nov 03 2009 Warren Togami <wtogami@redhat.com> - 031-1
5d7055e
- livecd-iso-to-disk capable of installing installer DVD to USB
5d7055e
2fcd7f9
* Mon Oct 19 2009 Warren Togami <wtogami@redhat.com> - 030-1
0badd66
- Tell dracut not to ask for LUKS passwords or activate mdraid sets
0badd66
- Silence the /etc/modprobe.conf deprecation warning
0badd66
35920cc
* Wed Sep 16 2009 Warren Togami <wtogami@redhat.com> - 028-1
35920cc
- Fix LiveUSB with live images
35920cc
- Fix display of free space during livecd-iso-to-disk error (farrell)
35920cc
317dfb1
* Tue Sep 15 2009 Warren Togami <wtogami@redhat.com> - 027-2
317dfb1
- test patch to make LiveUSB work again, need to be sure it doesn't
317dfb1
  break LiveCD before committing in the next version
317dfb1
f92c633
* Thu Sep 10 2009 Warren Togami <wtogami@redhat.com> - 027-1
f92c633
- Support new dracut output filename /boot/initramfs-*
f92c633
- Fix cleanup of fake /selinux directory during teardown Bug #522224
f92c633
d2310ee
* Mon Aug 24 2009 Jeremy Katz <katzj@redhat.com> - 026-1
d2310ee
- More resize2fs -M usage
d2310ee
- Work with dracut-based initramfs
d2310ee
- Some error handling updates
d2310ee
070a904
* Thu Jul 30 2009 Jeremy Katz <katzj@redhat.com> - 025-1
070a904
- Bind mount /dev/shm also (#502921)
070a904
- Update man pages (Michel Duquaine, #505742)
070a904
- Use blkid instead of vol_id (mclasen, #506360)
070a904
- A few livecd-iso-to-disk tweaks (Martin Dengler, Jason Farrell)
070a904
- Another fix for SELinux being disabled (#508402)
070a904
- Use resize2fs -M and handle resize errors better
070a904
- Use isohybrid on the live image 
070a904
- Use system-config-keyboard instead of rhpl
070a904
cb8d9d1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 024-2
cb8d9d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cb8d9d1
2e62ce1
* Wed May  6 2009 Jeremy Katz <katzj@redhat.com> - 024-1
2e62ce1
- Fix ppc image creation (#497193, help from jwboyer)
2e62ce1
- Fixes for using ext[23] usb stick (wtogami)
2e62ce1
- Check filesystem after resizing and raise an error if there are 
2e62ce1
  problems (#497377)
2e62ce1
9592f81
* Tue Apr 14 2009 Jeremy Katz <katzj@redhat.com> - 023-1
9592f81
- Don't prompt about overwriting when making usb stick (#491234)
9592f81
- Fix up livecd-iso-to-pxeboot for new syslinux paths
9592f81
- Fix --xo variable expansion (Alexander Boström)
9592f81
- Name of EFI partitions doesn't matter for mactel mode (Jim Radford)
9592f81
- Fix unterminated sed command (#492376)
9592f81
- Handle kernel/squashfs mismatch when making usb stick in
9592f81
  --xo mode (Alexander Boström)
9592f81
- Support all of the options for the 'firewall' kickstart directive
9592f81
- Deal with syslinux com32 api incompat when making usb sticks (#492370)
9592f81
- Add options to force fetching of repomd.xml every run (jkeating)
9592f81
- Quiet restorecon (Marc Herbert)
9592f81
- Fix traceback with syslinux disabled (#495269)
9592f81
- Split python-imgcreate module into a subpackage
9592f81
c0236da
* Mon Mar  9 2009 Jeremy Katz <katzj@redhat.com> - 022-1
c0236da
- Fixes for hybird GPT/MBR usb sticks (Stewart Adam)
c0236da
- Support setting SELinux booleans (Dan Walsh)
c0236da
- Fix unicode error messages (Felix Schwarz)
c0236da
- Update man pages (Chris Curran, #484627)
c0236da
- Support syslinux under /usr/share
c0236da
- Remove some legacy support from livecd-iso-to-disk
c0236da
- Basic support for multi-image usb sticks
c0236da
1d49487
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 021-2
1d49487
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1d49487
ab477e4
* Mon Jan 19 2009 Jeremy Katz <katzj@redhat.com> - 021-1
ab477e4
- Start of support for hybrid GPT/MBR usb sticks (Stewart Adam)
ab477e4
- Fix for udev deprecated syntax (#480109)
ab477e4
- Keep cache with --cache (Jan Kratochvil, #479716)
ab477e4
- Use absolute path to cachedir (#479716)
ab477e4
- Support UDF for large ISO spins (Bruno Wolf, #476696)
ab477e4
- Improvements for encrypted /home setup (mdomsch, #475399)
ab477e4
- Don't allow spaces in labels (#475834)
ab477e4
- Fix --tmpdir relative path (dhuff)
ab477e4
- Support ext4 rootfs
ab477e4
- Fix device command version check (apevec)
ab477e4
- Allow URLs for specifying the kickstart config (bkearney)
ab477e4
- Fix macro name for excludedocs (bkearney)
ab477e4
- Fix up --base-on (#471656)
ab477e4
ab477e4
* Wed Nov 12 2008 Jeremy Katz <katzj@redhat.com> - 020-1
ab477e4
- Support setting up a swap file
ab477e4
- Verify integer args in livecd-iso-to-disk (#467257)
ab477e4
- Set up persistent /home on internal mtd0 for XO
ab477e4
- Default to resetting the overlay on XO
ab477e4
- Support copying the raw ext3fs to the usb stick instead of the squash
ab477e4
- Mactel fixes
ab477e4
- Align initrd properly on XO (#467093)
ab477e4
- Make initrd load addr work on newer XO firmwares
ab477e4
- Fix up Xen paths for Xen live images (Michael Ansel)
ab477e4
- Support --defaultdesktop (Orion Poplawski)
9d6ab10
6bb515f
* Fri Oct 10 2008 Jeremy Katz <katzj@redhat.com> - 019-1
6bb515f
- livecd-iso-to-disk: Various other XO fixes
6bb515f
- Cleanup rpmdb locks after package installation
6bb515f
- Fix traceback due to lazy rhpl.keyboard import
6bb515f
- Fix using groups with options (jkeating)
6bb515f
- Support persistent /home on XO's internal flash
6bb515f
- Fix ramdisk load addr in boot/olpc.fth for XO
6bb515f
- Fix up boot from SD
6bb515f
- Fix extracting boot parameters for pxe (apevec)
6bb515f
- Make rpm macro information persist into the image (bkearney)
9592f81
- Support %%packages --instLangs (bkearney)
6bb515f
c80c5e6
* Thu Aug 28 2008 Jeremy Katz <katzj@redhat.com> - 018-1
c80c5e6
- Use logging API for debugging messages (dhuff)
c80c5e6
- Some initial support for booting live images on an XO
c80c5e6
- Refactoring of mount code for appliance-creator (danpb, dhuff)
c80c5e6
- Make --base-on actually work again
c80c5e6
- Drop the image configs; these are now in the spin-kickstarts repo
c80c5e6
- plymouth support
c80c5e6
- Listen to bootloader --append in config
c80c5e6
- Add man pages (Pedro Silva)
c80c5e6
- Support booting from Intel based Macs via EFI on USB (#450193)
c80c5e6
- Fixes for SELinux enforcing (eparis)
c80c5e6
- Eject the CD on shutdown (#239928)
c80c5e6
- Allow adding extra kernel args with livecd-iso-to-disk
c80c5e6
- Support for persistent /home (#445218)
c80c5e6
- Copy timezone to /etc/localtime (#445624)
c80c5e6
- Ensure that commands run by livecd-creator exist
c80c5e6
- Mount a tmpfs for some dirs (#447127)
c80c5e6
01e0ae0
* Tue May  6 2008 Bill Nottingham <notting@redhat.com> - 017-1
01e0ae0
- fix F9 final configs
01e0ae0
01e0ae0
* Thu May  1 2008 Jeremy Katz <katzj@redhat.com> - 016-1
01e0ae0
- Config changes all around, including F9 final configs
01e0ae0
- Fix up the minimal image creation
01e0ae0
- Fix odd traceback error on __del__ (#442443)
01e0ae0
- Add late initscript and split things in half
01e0ae0
- livecd-iso-to-disk: Check the available space on the stick (#443046)
01e0ae0
- Fix partition size overriding (kanarip)
01e0ae0
1d54429
* Thu Mar  6 2008 Jeremy Katz <katzj@redhat.com> - 015-1
1d54429
- Support for using live isos with pxe booting (Richard W.M. Jones and 
1d54429
  Chris Lalancette)
1d54429
- Fixes for SELinux being disabled (Warren Togami)
1d54429
- Stop using mayflower for building the initrd; mkinitrd can do it now
1d54429
- Create a minimal /dev rather than using the host /dev (Warren Togami)
1d54429
- Support for persistent overlays when using a USB stick (based on support 
1d54429
  by Douglas McClendon)
1d54429
69665c9
* Tue Feb 12 2008 Jeremy Katz <katzj@redhat.com> - 014-1
69665c9
- Rework to provide a python API for use by other tools (thanks to 
69665c9
  markmc for a lot of the legwork here)
69665c9
- Fix creation of images with ext2 filesystems and no SELinux
69665c9
- Don't require a yum-cache directory inside of the cachedir (#430066)
69665c9
- Many config updates for rawhide
69665c9
- Allow running live images from MMC/SD (#430444)
69665c9
- Don't let a non-standard TMPDIR break things (Jim Meyering)
69665c9
69665c9
* Mon Oct 29 2007 Jeremy Katz <katzj@redhat.com> - 013-1
69665c9
- Lots of config updates
69665c9
- Support 'device foo' to say what modules go in the initramfs
69665c9
- Support multiple kernels being installed
69665c9
- Allow blacklisting kernel modules on boot with blacklist=foo
69665c9
- Improve bootloader configs
69665c9
- Split configs off for f8
69665c9
1b697a8
* Tue Sep 25 2007 Jeremy Katz <katzj@redhat.com> - 012-1
1b697a8
- Allow %%post --nochroot to work for putting files in the root of the iso
1b697a8
- Set environment variables for when %%post is run
1b697a8
- Add progress for downloads (Colin Walters)
1b697a8
- Add cachedir option (Colin Walters)
1b697a8
- Fixes for ppc/ppc64 to work again
1b697a8
- Clean up bootloader config a little
1b697a8
- Enable swaps in the default desktop config
1b697a8
- Ensure all configs are installed (#281911)
1b697a8
- Convert method line to a repo for easier config reuse (jkeating)
1b697a8
- Kill the modprobe FATAL warnings (#240585)
1b697a8
- Verify isos with iso-to-disk script
1b697a8
- Allow passing xdriver for setting the xdriver (#291281)
1b697a8
- Add turboliveinst patch (Douglas McClendon)
1b697a8
- Make iso-to-disk support --resetmbr (#294041)
1b697a8
- Clean up filesystem layout (Douglas McClendon)
1b697a8
- Manifest tweaks for most configs
1b697a8
88dab99
* Tue Aug 28 2007 Jeremy Katz <katzj@redhat.com> - 011-1
88dab99
- Many config updates for Fedora 8
88dab99
- Support $basearch in repo line of configs; use it
88dab99
- Support setting up Xen kernels and memtest86+ in the bootloader config
88dab99
- Handle rhgb setup
88dab99
- Improved default fs label (Colin Walters)
88dab99
- Support localboot from the bootloader (#252192)
88dab99
- Use hidden menu support in syslinux
88dab99
- Have a base desktop config included by the other configs (Colin Walters)
88dab99
- Use optparse for optino parsing
88dab99
- Remove a lot of command line options; things should be specified via the
88dab99
  kickstart config instead
88dab99
- Beginnings of PPC support (David Woodhouse)
88dab99
- Clean up kernel module inclusion to take advantage of files in Fedora
88dab99
  kernels listing storage drivers
88dab99
ff4abcc
* Wed Jul 25 2007 Jeremy Katz <katzj@redhat.com> - 010-1
ff4abcc
- Separate out configs used for Fedora 7
ff4abcc
- Add patch from Douglas McClendon to make images smaller
ff4abcc
- Add patch from Matt Domsch to work with older syslinux without vesamenu
ff4abcc
- Add support for using mirrorlists; use them
ff4abcc
- Let livecd-iso-to-disk work with uncompressed images (#248081)
ff4abcc
- Raise error if SELinux requested without being enabled (#248080)
ff4abcc
- Set service defaults on level 2 also (#246350)
ff4abcc
- Catch some failure cases
ff4abcc
- Allow specifying tmpdir
ff4abcc
- Add patch from nameserver specification from Elias Hunt
ff4abcc
d60b5f8
* Wed May 30 2007 Jeremy Katz <katzj@redhat.com> - 009-1
d60b5f8
- miscellaneous live config changes
d60b5f8
- fix isomd5 checking syntax error
d60b5f8
e5207e8
* Fri May  4 2007 Jeremy Katz <katzj@redhat.com> - 008-1
e5207e8
- disable screensaver with default config
e5207e8
- add aic7xxx and sym53c8xx drivers to default initramfs
e5207e8
- fixes from johnp for FC6 support in the creator
e5207e8
- fix iso-to-stick to work on FC6
e5207e8
94c5889
* Tue Apr 24 2007 Jeremy Katz <katzj@redhat.com> - 007-1
94c5889
- Disable prelinking by default
94c5889
- Disable some things that slow down the live boot substantially
94c5889
- Lots of tweaks to the default package manifests
94c5889
- Allow setting the root password (Jeroen van Meeuwen)
94c5889
- Allow more specific network line setting (Mark McLoughlin)
94c5889
- Don't pollute the host yum cache (Mark McLoughlin)
94c5889
- Add support for mediachecking
94c5889
2dda366
* Wed Apr  4 2007 Jeremy Katz <katzj@redhat.com> - 006-1
2dda366
- Many fixes to error handling from Mark McLoughlin
2dda366
- Add the KDE config
2dda366
- Add support for prelinking
2dda366
- Fixes for installing when running from RAM or usb stick
2dda366
- Add sanity checking to better ensure that USB stick is bootable
2dda366
c48f5bc
* Thu Mar 29 2007 Jeremy Katz <katzj@redhat.com> - 005-3
c48f5bc
- have to use excludearch, not exclusivearch
c48f5bc
4618413
* Thu Mar 29 2007 Jeremy Katz <katzj@redhat.com> - 005-2
4618413
- exclusivearch since it only works on x86 and x86_64 for now
4618413
fdc7be7
* Wed Mar 28 2007 Jeremy Katz <katzj@redhat.com> - 005-1
fdc7be7
- some shell quoting fixes
fdc7be7
- allow using UUID or LABEL for the fs label of a usb stick
fdc7be7
- work with ext2 formated usb stick
fdc7be7
f4b8d43
* Mon Mar 26 2007 Jeremy Katz <katzj@redhat.com> - 004-1
f4b8d43
- add livecd-iso-to-disk for setting up the live CD iso image onto a usb 
f4b8d43
  stick or similar
f4b8d43
dc9f982
* Fri Mar 23 2007 Jeremy Katz <katzj@redhat.com> - 003-1
dc9f982
- fix remaining reference to run-init
dc9f982
dc9f982
* Thu Mar 22 2007 Jeremy Katz <katzj@redhat.com> - 002-1
dc9f982
- update for new version
dc9f982
dc9f982
* Fri Dec 22 2006 David Zeuthen <davidz@redhat.com> - 001-1%{?dist}
dc9f982
- Initial build.
dc9f982