Converting LiveCD ISO to PXE
by Marco André Dinis
Hi
I have a customized LiveCD (created with kickstart) that I want to boot
from PXE.
The ISO works fine when used directly as boot device.
Converting the ISO to PXE gives me a non-working live operating system.
I use livecd-iso-to-pxeboot to create the file structure, then move it to
TFTP server directory
Here's what happens on the client:
-PXE boot detects the server and starts to download the 2 files: vmlinuz0
and then initrd0.img
-After some time I'm dropped to a dracut shell, complaining it couldn't
found /dev/mapper/live-rw
Doing this on the dracut shell solves the problem:
>
> mkdir cdrom; mount LiveCD.iso cdrom; exit
After this, the system starts to boot normally.
Any suggestions?
9 years, 5 months
2 commits - imgcreate/live.py Makefile
by Brian C. Lane
Makefile | 2 +-
imgcreate/live.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3b50e268224d46a915e8347a6422e00ffd59ed50
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Tue Apr 15 14:59:22 2014 -0700
Version 21.1
diff --git a/Makefile b/Makefile
index 284c436..74e64e1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 21.0
+VERSION = 21.1
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
commit a267c4ab89ff97bcbad550b9ec331d5a0631d444
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Tue Apr 15 14:03:41 2014 -0700
Update syslinux files for syslinux 6.02-4
The new version of syslinux depends on several other .c32 files from the
syslinux-nonlinux package.
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 7f2d639..f0d8809 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -428,7 +428,7 @@ class x86LiveImageCreator(LiveImageCreatorBase):
return "mboot.c32"
def __copy_syslinux_files(self, isodir, menu, mboot = None):
- files = ["isolinux.bin", menu]
+ files = ["isolinux.bin", "ldlinux.c32", "libcom32.c32", "libutil.c32", menu]
if mboot:
files += [mboot]
9 years, 5 months
Changes to 'refs/tags/livecd-tools-21.1'
by Brian C. Lane
Tag 'livecd-tools-21.1' created by Brian C. Lane <bcl(a)redhat.com> at 2014-04-15 21:59 +0000
Tag as livecd-tools-21.1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEVAwUAU02r0xF+jBaO/jp/AQKwBQf/TS560UR7Rf5QRfjtuXXF9TeMYlkDTvAN
NWGgezbNvr++VYm0uJNmdTOP+8obFPT7J4di51pzr50518IUWJBdbtXOqPkxwMqT
62KQdz69Z3kgk7PiRJPH/s3qm6YAjKPBBlDluMdrCPrBk9WluXnjE86u8zZ7LvyP
sRvbaqaQTGEZ9Mn3/RryBOUkb+DVc96hcXv2dBzHHdGnZlR4EF0sCfF14y5ZotlG
44+D7se7CF7iKHkxiIzLW/6rtbkyOyXJyzUThWOOgtM2qEiApna/fMKXuq/24+lT
9xj2g9eHI5zfDQhSLP8nkKUGu2TxnyX2641RIydnik17dclVSVz1yw==
=BY7x
-----END PGP SIGNATURE-----
Changes since livecd-tools-21.0:
Brian C. Lane (2):
Update syslinux files for syslinux 6.02-4
Version 21.1
---
Makefile | 2 +-
imgcreate/live.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
9 years, 5 months
Branch 'rhel6-branch' - docs/livecd-iso-to-disk.pod tools/livecd-iso-to-disk.sh
by Brian C. Lane
docs/livecd-iso-to-disk.pod | 4 ++--
tools/livecd-iso-to-disk.sh | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 82ea9d39534295be211d4ac1d9880bed985dab4a
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Apr 7 10:04:28 2014 -0700
Change vfat limit from 2047 to 4095
This is a backport of commit 16b6c36202f5a78.
The actual filesystem limit is 2^32−1
diff --git a/docs/livecd-iso-to-disk.pod b/docs/livecd-iso-to-disk.pod
index 1ccab66..4ddef23 100644
--- a/docs/livecd-iso-to-disk.pod
+++ b/docs/livecd-iso-to-disk.pod
@@ -32,11 +32,11 @@ Disables the image validation process which occurs before the image is installed
=item --overlay-size-mb
-This option sets the overlay size in megabytes. The overlay is additional storage available to the live operating system if the operating system supports it. The USB storage device must have enough free space for the image and the overlay.
+This option sets the overlay size in mebibytes (integer values only). The overlay makes persistent storage available to the live operating system, if the operating system supports it. The persistent LiveOS overlay holds image-change snapshots (using write-once, difference-tracking storage) in the /LiveOS/overlay-<device_id> file, which, *one should note*, always grows in size due to the storage mechanism. (The fraction of allocated space that has been consumed may be displayed by issuing the 'dmsetup status' command in a terminal session of a running LiveOS installation.) One way to conserve the unrecoverable, overlay file space, is to specify a persistent home folder for user files, see --home-size-mb below. The target storage device must have enough free space for the image and the overlay. A maximum <size> of 4095 MiB is permitted for vfat-formatted devices. If there is insufficient room on your device, you will be given information to help in adjusting your setti
ngs.
=item --home-size-mb
-Sets the home directory size in megabytes.
+Sets the home directory size in mebibytes (integer values only). A persistent home directory will be made in the /LiveOS/home.img filesystem image file. This file space is encrypted by default, but not compressed (one may bypass encryption with the --unencrypted-home installation option). Files in this home folder may be erased to recover and reuse their storage space. The target storage device must have enough free space for the image, any overlay, and the home directory. Note that the --delete-home option must also be selected to replace an existing persistent home with a new, empty one. A maximum <size> of 4095 MiB is permitted for vfat-formatted devices. If there is insufficient room on your device, you will be given information to help in adjusting your settings.
=item --unencrypted-home
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 3e149d7..eb7be61 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -560,22 +560,22 @@ checkMBR $USBDEV
if [ "$overlaysizemb" -gt 0 -a "$USBFS" = "vfat" ]; then
- if [ "$overlaysizemb" -gt 2047 ]; then
- echo "Can't have an overlay of 2048MB or greater on VFAT"
+ if [ "$overlaysizemb" -gt 4095 ]; then
+ echo "Can't have an overlay of 4095MB or greater on VFAT"
exitclean
fi
fi
if [ "$homesizemb" -gt 0 -a "$USBFS" = "vfat" ]; then
- if [ "$homesizemb" -gt 2047 ]; then
- echo "Can't have a home overlay greater than 2048MB on VFAT"
+ if [ "$homesizemb" -gt 4095 ]; then
+ echo "Can't have a home overlay greater than 4095MB on VFAT"
exitclean
fi
fi
if [ "$swapsizemb" -gt 0 -a "$USBFS" = "vfat" ]; then
- if [ "$swapsizemb" -gt 2047 ]; then
- echo "Can't have a swap file greater than 2048MB on VFAT"
+ if [ "$swapsizemb" -gt 4095 ]; then
+ echo "Can't have a swap file greater than 4095MB on VFAT"
exitclean
fi
fi
9 years, 5 months
Persistance
by ToddAndMargo
Hi All,
Scientific Linux 6.5, 64 bit (Red Hat Enterprise Linux 6.5 clone)
$ rpm -qa \*livecd-tools\*
livecd-tools-13.4.5-1.el6.x86_64
I love my Fedora Live USB a little too much. Can't get enough
space to add everything I want to it.
Do you know of a way to overcome the 4GB persistent
storage restriction? ("overlay-live-xxxxx" I presume.)
I am trying to do this:
livecd-iso-to-disk --overlay-size-mb 7194
/home/kvm/Fedora-Live-Xfce-x86_64-20-1.iso /dev/sdc1
But get told overlay can only be 2048 max.
I have Googled my rear end off with not luck. Closest
I have come was
http://www.pendrivelinux.com/create-a-larger-than-4gb-casper-partition/
But it does not work with Fedora Live USB.
I am presuming the problem is that fat32 does not allow files larger
than ~4 GB. Is there any way to point the persistent file
to a second EXT4 partition on the stick?
Many thanks,
-T
It ain't what you don't know that gets you into trouble. It's
what you know for sure that just ain't so.
--Mark Twain
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9 years, 5 months