problem when using livecd-iso-to-pxeboot
by Jiang Jim
I want to pxe a official CentOS-6.3-x86_64-LiveCD.iso to other servers.
I face to some problem, I use livecd-iso-to-pxeboot to build a tftpboot/.
I can get vmlinuxz0 and initrd0.img
This is my pxelinux.cfg/default
DEFAULT pxeboot
TIMEOUT 20
PROMPT 0
LABEL pxeboot
KERNEL livecd/vmlinuz0
APPEND rootflags=loop initrd=livecd/initrd0.img
root=live:/CentOS-6.3-x86_64-LiveCD.iso rootfstype=auto ro liveimg
nodiskmount nolvmmount rhgb vga=791 rd.luks=0 rd.md=0 rd.dm=0
rd.live.check
ONERROR LOCALBOOT 0
But someting wrong in root section
cannot open root device "live:/CentOS-6.3-x86_64-LiveCD.iso"
I want to find out where CentOS-6.3-x86_64-LiveCD.iso It put into initrd0.img
I extract the content of initrd0.img, but when I extract coip img,
700mb content become 21m
I can't find where the CentOS-6.3-x86_64-LiveCD.iso is.
Then I found the code of livecd-iso-to-pxeboot
( cd "$ISODIRNAME" && echo "$ISOBASENAME" | cpio -H newc -L -o ) |
gzip -9 |
cat $CDMNT/isolinux/initrd0.img - > tftpboot/initrd0.img
I can't understand why this commend is using cat to put two file,
initrd and iso together.
10 years, 5 months
errors in creating an image
by Gareth
Hi
This is all output here:
[root@localhost livecd]# LANG=C livecd-creator --config=mini.ks
--fslabel=centos-mini
mke2fs 1.39 (29-May-2006)
Filesystem label=centos-mini
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
524288 inodes, 1048576 blocks
10485 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
tune2fs 1.39 (29-May-2006)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Retrieving http://mirror.centos.org/centos/5/os/x86_64/repodata/repomd.xml...OK
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/repodata/primary.xml.gz ...OK
Retrieving
http://www.nanotechnologies.qc.ca/propos/linux/centos-live/x86_64/live/re...
Retrieving
http://www.nanotechnologies.qc.ca/propos/linux/centos-live/x86_64/live/re...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/repodata/repomd.xml ...OK
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/repodata/primary.sqlite....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/basesystem-8.0-5.1.1.e...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/rootfiles-8.1-1.1.1.no...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/crontabs-1.10-11.el5.n...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/sgpio-1.2.0_10-2.el5.x...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libattr-2.4.32-1.1.x86...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libtermcap-2.0.8-46.1....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/mktemp-1.5-24.el5.x86_...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/mcstrans-0.2.11-3.el5....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/keyutils-libs-1.2-1.el...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/mingetty-1.07-5.2.2.x8...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libacl-2.2.39-8.el5.x8...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-9.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/passwd-0.73-2.x86_64.r...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libutempter-1.1.4-4.el...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/hmaccalc-0.9.6-4.el5.x...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libcap-1.10-26.x86_64....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/device-mapper-event-1....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/dmraid-events-1.0.0.rc...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/gdbm-1.8.0-28.el5.x86_...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/bzip2-libs-1.0.3-6.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-notes-5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/logrotate-3.7.4-14.x86...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libsysfs-2.1.0-1.el5.x...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/comps-extras-11.4-1.el...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/zlib-1.2.3-7.el5.x86_6...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-libelf-0.137-...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libselinux-utils-1.33....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-56.el5.x8...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/psmisc-22.2-11.x86_64....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/cracklib-2.8.9-3.3.x86...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/ethtool-6-4.el5.x86_64...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libselinux-python-1.33...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-11.el5_8....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libselinux-1.33.4-5.7....
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/popt-1.10.2.3-32.el...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/audit-libs-1.8-2.el5.x...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/audit-libs-python-1.8-...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libgcc-4.1.2-54.el5.x8...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/gzip-1.3.5-13.el5.cent...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/less-436-9.el5.x86_64....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/newt-0.52.2-15.el5.x86...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/SysVinit-2.86-17.el5.x...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/pcre-6.6-6.el5_6.1.x86...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/e2fsprogs-libs-1.39-35...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/nspr-4.9.2-2.el5_9....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/cpio-2.6-25.el5.x86_64...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/setup-2.5.58-9.el5.noa...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/cyrus-sasl-lib-2.1.22-...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/iputils-20020927-46.el...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libsepol-1.15.2-3.el5....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/MAKEDEV-3.23-1.2.x86_6...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libsemanage-1.9.1-4.4....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/usermode-1.88-3.el5.2....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/chkconfig-1.3.30.2-2.e...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/grep-2.5.1-55.el5.x86_...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/sed-4.1.5-8.el5.x86_64...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/info-4.8-14.el5.x86_64...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/sqlite-3.3.6-6.x86_64....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/mtools-3.9.10-2.fc6.x8...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/diffutils-2.8.1-16.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/procps-3.2.7-22.el5.x8...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/termcap-5.5-1.20060701...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/findutils-4.2.27-6.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/openldap-2.3.43-25.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/xkeyboard-config-0.8-1...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/slang-2.0.6-4.el5.x86_...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libstdc++-4.1.2-54.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/net-tools-1.60-82.el5....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/module-init-tools-3.3-...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/kpartx-0.4.7-54.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/libuser-0.54.7-3.el5.x...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/rsyslog-3.22.1-7.el5.x...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/authconfig-5.3.21-7.el...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/mkinitrd-5.1.19.6-79.e...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/tcsh-6.14-17.el5_5.2.x...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/policycoreutils-1.33.1...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/krb5-libs-1.6.1-70.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/glib2-2.12.3-4.el5_3.1...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/dmraid-1.0.0.rc13-65.e...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/tar-1.15.1-32.el5_8.x8...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/tzdata-2013b-1.el5....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/iproute-2.6.18-15.el5....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/device-mapper-1.02.67-...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/e2fsprogs-1.39-35.el5....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/db4-4.3.29-10.el5_5.2....
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/rpm-libs-4.4.2.3-32...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/pam-0.99.6.2-12.el5.x8...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/filesystem-2.4.0-3.el5...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/iscsi-initiator-utils-...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/shadow-utils-4.0.17-21...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/nash-5.1.19.6-79.el5.x...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/nss-3.13.6-3.el5_9....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/ncurses-5.5-24.2006071...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/syslinux-4.02-7.2.el5....
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/rpm-4.4.2.3-32.el5_...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/openssl-0.9.8e-26.e...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/initscripts-8.45.42-1....
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/gawk-3.1.5-16.el5.x86_...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/bash-3.2-32.el5.x86_64...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/util-linux-2.13-0.59.e...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/udev-095-14.29.el5.x86...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/binutils-2.17.50.0.6-2...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/device-mapper-multi...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/lvm2-2.02.88-10.el5.x8...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/cracklib-dicts-2.8.9-3...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/coreutils-5.97-34.el5_...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/glibc-2.5-107.el5_9...
Retrieving
http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-libs-2.4.3-56.e...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/glibc-common-2.5-10...
Retrieving
http://mirror.centos.org/centos/5/updates/x86_64/RPMS/kernel-2.6.18-348.4...
warning: libgcc-4.1.2-54.el5: Header V3 DSA signature: NOKEY, key ID
e8562897
Installing: libgcc ##################### [ 1/111]
Installing: setup ##################### [ 2/111]
Installing: filesystem ##################### [ 3/111]
Installing: basesystem ##################### [ 4/111]
Installing: cracklib-dicts ##################### [ 5/111]
Installing: termcap ##################### [ 6/111]
Installing: centos-release-notes ##################### [ 7/111]
Installing: tzdata ##################### [ 8/111]
Installing: glibc-common ##################### [ 9/111]
Installing: glibc ##################### [ 10/111]
Installing: mktemp ##################### [ 11/111]
Installing: chkconfig ##################### [ 12/111]
Installing: zlib ##################### [ 13/111]
Installing: popt ##################### [ 14/111]
Installing: audit-libs ##################### [ 15/111]
Installing: glib2 ##################### [ 16/111]
Installing: nspr ##################### [ 17/111]
Installing: libtermcap ##################### [ 18/111]
Installing: bash ##################### [ 19/111]
Installing: libsepol ##################### [ 20/111]
Installing: ncurses ##################### [ 21/111]
Installing: info ##################### [ 22/111]
Installing: readline ##################### [ 23/111]
Installing: sed ##################### [ 24/111]
Installing: nss ##################### [ 25/111]
Installing: bzip2-libs ##################### [ 26/111]
Installing: libattr ##################### [ 27/111]
Installing: libacl ##################### [ 28/111]
Installing: sqlite ##################### [ 29/111]
Installing: gawk ##################### [ 30/111]
Installing: elfutils-libelf ##################### [ 31/111]
Installing: libstdc++ ##################### [ 32/111]
Installing: db4 ##################### [ 33/111]
Installing: iproute ##################### [ 34/111]
Installing: pcre ##################### [ 35/111]
Installing: grep ##################### [ 36/111]
Installing: hmaccalc ##################### [ 37/111]
Installing: binutils ##################### [ 38/111]
Installing: cpio ##################### [ 39/111]
Installing: diffutils ##################### [ 40/111]
Installing: less ##################### [ 41/111]
Installing: gzip ##################### [ 42/111]
Installing: procps ##################### [ 43/111]
Installing: iputils ##################### [ 44/111]
Installing: gdbm ##################### [ 45/111]
Installing: sgpio ##################### [ 46/111]
Installing: expat ##################### [ 47/111]
Installing: cyrus-sasl-lib ##################### [ 48/111]
Installing: slang ##################### [ 49/111]
Installing: mingetty ##################### [ 50/111]
Installing: libcap ##################### [ 51/111]
Installing: libsysfs ##################### [ 52/111]
Installing: ethtool ##################### [ 53/111]
Installing: keyutils-libs ##################### [ 54/111]
Installing: centos-release ##################### [ 55/111]
Installing: crontabs ##################### [ 56/111]
Installing: nash ##################### [ 57/111]
Installing: rootfiles ##################### [ 58/111]
Installing: xkeyboard-config ##################### [ 59/111]
Installing: comps-extras ##################### [ 60/111]
Installing: libselinux ##################### [ 61/111]
Installing: device-mapper ##################### [ 62/111]
Installing: shadow-utils ##################### [ 63/111]
Installing: e2fsprogs-libs ##################### [ 64/111]
Installing: kpartx ##################### [ 65/111]
Installing: e2fsprogs ##################### [ 66/111]
Installing: findutils ##################### [ 67/111]
Installing: logrotate ##################### [ 68/111]
Installing: device-mapper-multipath ##################### [ 69/111]
Installing: MAKEDEV ##################### [ 70/111]
Installing: libutempter ##################### [ 71/111]
Installing: lvm2 ##################### [ 72/111]
Installing: libselinux-utils ##################### [ 73/111]
Installing: psmisc ##################### [ 74/111]
Installing: tar ##################### [ 75/111]
Installing: net-tools ##################### [ 76/111]
Installing: device-mapper-event ##################### [ 77/111]
Installing: coreutils ##################### [ 78/111]
Installing: python ##################### [ 79/111]
Installing: pam ##################### [ 80/111]
Installing: udev ##################### [ 81/111]
Installing: util-linux ##################### [ 82/111]
Installing: python-libs ##################### [ 83/111]
Installing: openssl ##################### [ 84/111]
Installing: dmraid ##################### [ 85/111]
Installing: openldap ##################### [ 86/111]
Installing: libuser ##################### [ 87/111]
Installing: passwd ##################### [ 88/111]
Installing: usermode ##################### [ 89/111]
Installing: libsemanage ##################### [ 90/111]
Installing: SysVinit ##################### [ 91/111]
Installing: newt ##################### [ 92/111]
Installing: audit-libs-python ##################### [ 93/111]
Installing: libselinux-python ##################### [ 94/111]
Installing: iscsi-initiator-utils ##################### [ 95/111]
Installing: tcsh ##################### [ 96/111]
Installing: mtools ##################### [ 97/111]
Installing: rsyslog ##################### [ 98/111]
Installing: initscripts ##################### [ 99/111]
Installing: mcstrans ##################### [100/111]
Installing: cracklib ##################### [101/111]
Installing: krb5-libs ##################### [102/111]
Installing: dmraid-events ##################### [103/111]
Installing: syslinux ##################### [104/111]
Installing: authconfig ##################### [105/111]
Installing: mkinitrd ##################### [106/111]
Installing: module-init-tools ##################### [107/111]
Installing: rpm ##################### [108/111]
Installing: rpm-libs ##################### [109/111]
Installing: kernel ##################### [110/111]
ls: /etc/modprobe.d/*.conf: No such file or directory
Installing: policycoreutils ##################### [111/111]
Traceback (most recent call last):
File "/usr/sbin/authconfig", line 27, in ?
import authinfo, acutil
File "/usr/share/authconfig/authinfo.py", line 38, in ?
import urllib2
File "/usr/lib64/python2.4/urllib2.py", line 93, in ?
import httplib
File "/usr/lib64/python2.4/httplib.py", line 70, in ?
import mimetools
File "/usr/lib64/python2.4/mimetools.py", line 6, in ?
import tempfile
File "/usr/lib64/python2.4/tempfile.py", line 33, in ?
from random import Random as _Random
File "/usr/lib64/python2.4/random.py", line 828, in ?
_inst = Random()
File "/usr/lib64/python2.4/random.py", line 95, in __init__
self.seed(x)
File "/usr/lib64/python2.4/random.py", line 109, in seed
a = long(_hexlify(_urandom(16)), 16)
OSError: [Errno 2] No such file or directory: '/dev/urandom'
Removing password for user root.
passwd: Success
Building an initramfs at /boot/livecd-initramfs-2.6.18-348.4.1.el5.img for
kernel 2.6.18-348.4.1.el5
cp: cannot stat `/lib/terminfo/*': No such file or directory
Done; initramfs is 4.3M.
e2fsck 1.39 (29-May-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
centos-mini: 16355/524288 files (0.3% non-contiguous), 165987/1048576 blocks
e2fsck 1.39 (29-May-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
centos-mini: 16355/81920 files (0.3% non-contiguous), 150824/150824 blocks
Creating little endian 3.0 filesystem on
/var/tmp/imgcreate-uXC5lE/iso-fQfKN-/LiveOS/osmin.img, block size 65536.
Little endian filesystem, data block size 65536, compressed data,
compressed metadata, compressed fragments
Filesystem size 0.25 Kbytes (0.00 Mbytes)
3.04% of uncompressed filesystem size (8.20 Kbytes)
Inode table size 43 bytes (0.04 Kbytes)
69.35% of uncompressed inode table size (62 bytes)
Directory table size 21 bytes (0.02 Kbytes)
100.00% of uncompressed directory table size (21 bytes)
Number of duplicate files found 0
Number of inodes 2
Number of files 1
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 1
Number of uids 1
root (0)
Number of gids 0
Creating little endian 3.0 filesystem on
/var/tmp/imgcreate-uXC5lE/iso-fQfKN-/LiveOS/squashfs.img, block size 65536.
Little endian filesystem, data block size 65536, compressed data,
compressed metadata, compressed fragments
Filesystem size 129042.89 Kbytes (126.02 Mbytes)
3.08% of uncompressed filesystem size (4194560.32 Kbytes)
Inode table size 21160 bytes (20.66 Kbytes)
8.07% of uncompressed inode table size (262306 bytes)
Directory table size 46 bytes (0.04 Kbytes)
100.00% of uncompressed directory table size (46 bytes)
Number of duplicate files found 0
Number of inodes 3
Number of files 1
Number of fragments 0
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 2
Number of uids 1
root (0)
Number of gids 0
Size of boot image is 4 sectors -> No emulation
7.37% done, estimate finish Tue Apr 23 07:20:17 2013
14.71% done, estimate finish Tue Apr 23 07:20:17 2013
22.07% done, estimate finish Tue Apr 23 07:20:17 2013
29.41% done, estimate finish Tue Apr 23 07:20:17 2013
36.77% done, estimate finish Tue Apr 23 07:20:17 2013
44.11% done, estimate finish Tue Apr 23 07:20:17 2013
51.47% done, estimate finish Tue Apr 23 07:20:17 2013
58.81% done, estimate finish Tue Apr 23 07:20:17 2013
66.17% done, estimate finish Tue Apr 23 07:20:17 2013
73.51% done, estimate finish Tue Apr 23 07:20:17 2013
80.87% done, estimate finish Tue Apr 23 07:20:17 2013
88.21% done, estimate finish Tue Apr 23 07:20:17 2013
95.58% done, estimate finish Tue Apr 23 07:20:17 2013
Total translation table size: 4266
Total rockridge attributes bytes: 1498
Total directory bytes: 4096
Path table size(bytes): 40
Max brk space used 0
68020 extents written (132 MB)
Inserting md5sum into iso image...
md5 = 25d17e807360703f3fc1eabbf6b97646
Inserting fragment md5sums into iso image...
fragmd5 = b1887fe3db3c61acae9fd38b9729afd67c4f183576adaf79861a4797177e
frags = 20
Setting supported flag to 0
Exception exceptions.AttributeError: "'NoneType' object has no attribute
'sysconf'" in <bound method LiveCDYum.__del__ of
<imgcreate.yuminst.LiveCDYum object at 0x140f8690>> ignored
--
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*OpenStack contributor*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*
10 years, 5 months
[PATCH] fix build with syslinux >= 5
by Joshua C.
>From 127ed90d89325e3c070959404e55b79c56e8a562 Mon Sep 17 00:00:00 2001
From: Joshua Covington <joshuacov_at_gmail_dot_com>
Date: Wed, 24 Apr 2013 17:54:27 +0200
Subject: [PATCH] fix build with syslinux >= 5
This is based on F17 but should be easily rebased to f18+.
Syslinux 5.xx switched from the COM32 object format to much more
powerful ELF object format
that allows undefined symbols to be resolved at runtime and dynamic
loading of module
dependencies, which means modules now become shared object files
instead of statically
linked binaries - reducing both disk space and runtime memory
consumption. Furthermore
it split non-core functionality into ldlinux.c32
For more information look in the changelog under http://www.syslinux.org/wiki/
Introduce these changes in the livecd-tools package.
---
imgcreate/live.py | 21 +++++++++++++++++++++
tools/livecd-iso-to-disk.sh | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 87d5129..3384fe5 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -416,6 +416,27 @@ class x86LiveImageCreator(LiveImageCreatorBase):
files = ["isolinux.bin", menu]
if mboot:
files += [mboot]
+
+ # Since Syslinux >= 5 and the switch from the COM32 object
format to ELF
+ # we need 'libcom32.c32' and 'libutil.c32' for '*menu.c32' to
work properly
+ # as well as 'ldlinux.c32' for the bootloader.
+ version = 0
+ syslinux_version = subprocess.check_output([self._instroot +
"/usr/bin/rpm", "-qi", "syslinux"])
+ if len(syslinux_version) <= 0:
+ raise CreatorError("syslinux not installed or not in rpm database")
+
+ for strings in syslinux_version.split('\n'):
+ if strings.startswith('Version'):
+ for part in strings.split(':'):
+ if part.startswith(' '):
+ version = int(float(part.strip()))
+ break
+
+ if version >= 5:
+ for lib in ("libcom32.c32", "libutil.c32", "ldlinux.c32"):
+ for dir in ("/usr/lib/syslinux/", "/usr/share/syslinux/"):
+ if os.path.isfile(self._instroot + dir + lib):
+ files += [lib]
for f in files:
if os.path.exists(self._instroot + "/usr/lib/syslinux/" + f):
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 0b4d2c8..7104d7c 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -1358,6 +1358,26 @@ if [ -z "$multi" ]; then
cp /usr/lib/syslinux/menu.c32 $TGTMNT/$SYSLINUXPATH/menu.c32
fi
+ # Since Syslinux >= 5 and the switch from the COM32 object format to ELF
+ # we need 'libcom32.c32' and 'libutil.c32' for '*menu.c32' to work properly
+ # as well as 'ldlinux.c32' for the bootloader.
+ syslinux_version=`/usr/bin/rpm -qi syslinux | grep Version | cut
-d ':' -f 2 | cut -d '.' -f 1`
+ if (( "$syslinux_version" >= 5 )); then
+ if [ -f /usr/share/syslinux/libcom32.c32 -a -f
/usr/share/syslinux/libutil.c32 -a -f /usr/share/syslinux/ldlinux.c32
]; then
+ cp /usr/share/syslinux/libcom32.c32
$TGTMNT/$SYSLINUXPATH/libcom32.c32
+ cp /usr/share/syslinux/libutil.c32
$TGTMNT/$SYSLINUXPATH/libutil.c32
+ cp /usr/share/syslinux/ldlinux.c32
$TGTMNT/$SYSLINUXPATH/ldlinux.c32
+ elif [ -f /usr/lib/syslinux/libcom32.c32 -a -f
/usr/lib/syslinux/libutil.c32 -a -f /usr/lib/syslinux/ldlinux.c32 ];
then
+ cp /usr/lib/syslinux/libcom32.c32
$TGTMNT/$SYSLINUXPATH/libcom32.c32
+ cp /usr/lib/syslinux/libutil.c32 $TGTMNT/$SYSLINUXPATH/libutil.c32
+ cp /usr/lib/syslinux/ldlinux.c32 $TGTMNT/$SYSLINUXPATH/ldlinux.c32
+ else
+ echo "ERROR: Cannot find 'libcom32.c32, libutil.c32,
ldlinux.c32' which are needed for Syslinux >= 5."
+ cleanup
+ exit 1
+ fi
+ fi
+
if [ "$TGTFS" == "vfat" -o "$TGTFS" == "msdos" ]; then
# syslinux expects the config to be named syslinux.cfg
# and has to run with the file system unmounted
@@ -1366,6 +1386,9 @@ if [ -z "$multi" ]; then
if [ -f $TGTMNT/$SYSLINUXPATH/ldlinux.sys ]; then
rm -f $TGTMNT/$SYSLINUXPATH/ldlinux.sys
fi
+ if [ -f $TGTMNT/$SYSLINUXPATH/ldlinux.c32 ]; then
+ rm -f $TGTMNT/$SYSLINUXPATH/ldlinux.c32
+ fi
cleanup
if [ -n "$SYSLINUXPATH" ]; then
syslinux -d $SYSLINUXPATH $TGTDEV
@@ -1373,6 +1396,17 @@ if [ -z "$multi" ]; then
syslinux $TGTDEV
fi
elif [ "$TGTFS" == "ext2" -o "$TGTFS" == "ext3" -o "$TGTFS" ==
"ext4" -o "$TGTFS" == "btrfs" ]; then
+ if (( "$syslinux_version" >= 5 )); then
+ if [ -f /boot/extlinux/libcom32.c32 -a -f
/boot/extlinux/libutil.c32 -a -f /boot/extlinux/ldlinux.c32 ]; then
+ cp /boot/extlinux/libcom32.c32
$TGTMNT/$SYSLINUXPATH/libcom32.c32
+ cp /boot/extlinux/libutil.c32 $TGTMNT/$SYSLINUXPATH/libutil.c32
+ cp /boot/extlinux/ldlinux.c32 $TGTMNT/$SYSLINUXPATH/ldlinux.c32
+ else
+ echo "ERROR: Cannot find 'libcom32.c32, libutil.c32,
ldlinux.c32' which are needed for Syslinux >= 5."
+ cleanup
+ exit 1
+ fi
+ fi
# extlinux expects the config to be named extlinux.conf
# and has to be run with the file system mounted
mv $TGTMNT/$SYSLINUXPATH/isolinux.cfg
$TGTMNT/$SYSLINUXPATH/extlinux.conf
--
1.8.2
--
--joshua
10 years, 5 months
live-cd tools environment limit?
by Gareth
Hi, all
Is there any environment limit for livecd-tools installed from 'yum
install'?
Now, python 2.4 is required, not 2.6 in centos 6.3
Will centos works fine with this tool?
I have created some livecd images, but when machine start up with my custom
livecd, it stoped at grub page (after pressing down at grub page, no
response later).
Any response is helpful.
Thanks
--
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*OpenStack contributor*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*
10 years, 5 months
livecd-iso-to-disk with file as target
by John.Florian@dart.biz
Hi all,
Is there any way I can get livecd-iso-to-disk to do its thing with a
target that is not a regular block-device?
I spin images regularly throughout the work day and then have to transfer
the image to a CF or SD card using this tool, then drop said card into a
host for each test cycle. This is, of course, tedious. I'd like to
shorten the process by using a VM as the host and simply point this VM to
a disk image file that I populate directly with livecd-iso-to-disk.
Presently, the tool balks at my attempt complaining with the error that,
"test.img is not a block device".
I already have used the VM to run the ISO directly, but that is
insufficient for my use case because I absolutely need the persistent
storage that usually is possible via the remaining space of the CF/SD
card. Yes, I could create a second virtual disk for the persistent
storage, but that would require lots of retooling of my various OS hooks
and arguably be sufficiently different to the normal deployment that it
would be a weak test at best.
--
John Florian
10 years, 5 months
Changes to 'refs/tags/livecd-tools-19.2'
by Brian C. Lane
Tag 'livecd-tools-19.2' created by Brian C. Lane <bcl(a)redhat.com> at 2013-04-03 17:29 +0000
Tag as livecd-tools-19.2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQEVAwUAUVxnExF+jBaO/jp/AQKhGQf9ELZpSokYTDkTrRlaguKm8TlzSzaGrY2X
PYSXevefHJmj0PR3XEdPjaS5vArtMzdhk6NTyF1fWLxKcVAgad3CPBup9k2XRxnu
O2MD6/nAJKnLqonyyF3ze/xDtqgurY5urEUSbheuMzvB/f7GRcacUS4caDr/Kaxx
QIIGcDXwEhQwZU6I7jAgSvn/k2oZEaPQufN/swVNBV4NuEkz1bvekXRH5Aq2BJZA
mj1vedYN5WFhRgOUH/00XuSD4kTv2pIKVSdzhpkUZMO/GQVK61IvxCVjhGjas0vr
45Hc177qCEQMDpiLokAPfFZWuDsimz41xBWQg6QSw9bNZit+OypNqg==
=V6xh
-----END PGP SIGNATURE-----
Changes since livecd-tools-19.1:
Brian C. Lane (4):
Properly generate kernel stanzas (#928093)
Output details of dep check failure
Use parted to check for GPT disklabel (#947653)
Version 19.2
---
Makefile | 2 +-
imgcreate/live.py | 8 +-------
imgcreate/yuminst.py | 10 +++++-----
tools/livecd-iso-to-disk.sh | 2 +-
4 files changed, 8 insertions(+), 14 deletions(-)
---
10 years, 5 months
Changes to 'refs/tags/livecd-tools-19.0'
by Brian C. Lane
Tag 'livecd-tools-19.0' created by Brian C. Lane <bcl(a)redhat.com> at 2013-03-08 18:03 +0000
Tag as livecd-tools-19.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQEVAwUAUTon6RF+jBaO/jp/AQLRMgf/W+qlMxwdwXfowYU3GU4lnb8yFrB6Xu9v
rfcMz1g/YdBIQVnCx/WIafs4d+TK2Gxo7qSGX3Cv1TNZ+h6lwjRIHZhgCjy+HStO
sBNE4gNGZ/O4OmpAoxaks4V3KPZM0gY8oD4D5Rv8Amg0lH/Txn0hDupy5y5UVzBt
cPZT9c2dsn9UIMzakF+FTzeevSgBNZNOwIXbSirqqRfHUSYU1F0pVy5JLGxnRiEh
O/CSxuDGj1SnSExaq9PcuOzD6QiHgmk5dA2T9sXKltJYPhDeqN/RJxQaJZsHHzy/
FfIBwhvyPWp5QAHxAXzi7/a209e7c/SDgMfbo71zvhPHYx26zDGNTA==
=e79f
-----END PGP SIGNATURE-----
Changes since livecd-tools-18.14:
Brian C. Lane (13):
use cp -r instead of -a
don't require shim and grub2-efi (#856893)
not copying UEFI files shouldn't be fatal (#856893)
Remove grub 0.97 splash
Version 18.9
add remainder of virtio modules to initrd (#864012)
don't pass None to mksquashfs (#869300)
default to symlink for /etc/localtime (#885246)
Simplify kickstart example (#903378)
Merge branch 'f18-branch' into master-test
correctly check for selinux state (#896610)
iso9660 is now a module, include it
Version 19.0
---
Makefile | 2 +-
config/livecd-fedora-minimal.ks | 10 +---------
imgcreate/fs.py | 2 +-
imgcreate/kickstart.py | 20 ++++++++++++--------
imgcreate/live.py | 2 +-
5 files changed, 16 insertions(+), 20 deletions(-)
---
10 years, 5 months
Changes to 'refs/tags/livecd-tools-19.1'
by Brian C. Lane
Tag 'livecd-tools-19.1' created by Brian C. Lane <bcl(a)redhat.com> at 2013-03-16 14:34 +0000
Tag as livecd-tools-19.1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQEVAwUAUUSC9xF+jBaO/jp/AQJ0sAgAi9nQPSX3h87i/h/gk81RMij0pfL4ex9r
E8I6gNKRkN2p95qUEtYyvzkUnQQv3g5qJK3PVwzEYnK+Kaho+s69uZQSayzVIZkS
sCiqrua1cxCMjExHLJoO6gwk+guW+BzSRME5sB8/tNSM/qUJQ36m6/q7Rqjvc/EQ
aQiOW+sf9VRQKyAvlvOnHLNcb48nJ+Lq64dM9MnrEP3yq/jfFO8FlKfaaUbal0dg
zH6+sat0EuiO9zkm2Qy2flWfMD+tTtzV8Yjqc23bo/BDV6Kbrot332TV2VPuKECy
akhw7otDCTRMSvjJTuMnErHonLnzJ+xX+gVYq2To2RCIdPK6dx94hw==
=PPcS
-----END PGP SIGNATURE-----
Changes since livecd-tools-19.0:
Brian C. Lane (3):
disable dracut hostonly and rescue image (#921422)
iso9660 module is names isofs
Version 19.1
---
Makefile | 2 +-
imgcreate/live.py | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
---
10 years, 5 months
Changes to 'refs/tags/livecd-tools-18.15'
by Brian C. Lane
Tag 'livecd-tools-18.15' created by Brian C. Lane <bcl(a)redhat.com> at 2013-04-03 17:46 +0000
Tag as livecd-tools-18.15
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQEVAwUAUVxq2RF+jBaO/jp/AQIdSwf8DX34w12v1gZbmfLjge5qRSM6yXFRKiZy
H2wUITpelmQFo/zXistdljzGaQ4kLq1koqlUVFRbq9yIOSwUBRrFWG75SYmeCqQ7
GJpGMiVCwQdGJl2ZlGaMQA/xr59D3kzDGOCWjv13M3iQ3r+wnie4NQwGf5GbZRhy
0PrDzQqaaFzmssG0/npxDXQ+qPVwNHhtzMhljuY7fo24BAxnYgL6uYYkZ4zkmwgM
pJ+a1VQw5c0e9SmUWF/909xs2DEbLdUz93AC+JfdFOOYrHSCHYhR2WAmMkjrkboe
vBNMz2dlDKEOSZl2QRfKdBjLHmM5wls9KmDBiGkdBaR/Xo43u2Cfxg==
=e2k3
-----END PGP SIGNATURE-----
Changes since livecd-tools-18.14:
Brian C. Lane (7):
default to symlink for /etc/localtime (#885246)
Simplify kickstart example (#903378)
correctly check for selinux state (#896610)
Properly generate kernel stanzas (#928093)
Output details of dep check failure
Use parted to check for GPT disklabel (#947653)
Version 18.15
---
Makefile | 2 +-
config/livecd-fedora-minimal.ks | 10 +---------
imgcreate/kickstart.py | 20 ++++++++++++--------
imgcreate/live.py | 8 +-------
imgcreate/yuminst.py | 10 +++++-----
tools/livecd-iso-to-disk.sh | 2 +-
6 files changed, 21 insertions(+), 31 deletions(-)
---
10 years, 5 months
Changes to 'refs/tags/livecd-tools-17.16'
by Brian C. Lane
Tag 'livecd-tools-17.16' created by Brian C. Lane <bcl(a)redhat.com> at 2013-04-03 17:51 +0000
Tag as livecd-tools-17.16
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
iQEVAwUAUVxsEhF+jBaO/jp/AQLfNAf+PqeazPlS2s1oCrqKP36JKeBxWcW3Dens
HDZbQdsE0Hey2Tu2ejF/UkIrO+z9icMpZm/tTdBAUx48J6QnvG1ztnW1TlUe5P0X
ynN/maUtV3PFugzxmUjzbGZIGMuHCkhmpklId7L0e7pVc5q7hX+JtqVpMjrbLGF7
hN6hKcBW76xX3JJTQYePpNx2openQ8iL+s/H05eOtSJR3keKTOI113QxAMwhGPHc
5LQwAwauktMSi/TRCCVUDmZvOWgce6ty0EoHyEOYsVQto3j1DF/B5F1IDUM7TmRa
8JeYYneJsVfiWr2fgOzE2g6zmEwl37EYrfu1xpPY/VLvSK0k1yc0Xw==
=vFhq
-----END PGP SIGNATURE-----
Changes since livecd-tools-17.15:
Brian C. Lane (5):
correctly check for selinux state (#896610)
Properly generate kernel stanzas (#928093)
Output details of dep check failure
Use parted to check for GPT disklabel (#947653)
Version 17.15
---
Makefile | 2 +-
imgcreate/kickstart.py | 3 ++-
imgcreate/live.py | 8 +-------
imgcreate/yuminst.py | 10 +++++-----
tools/livecd-iso-to-disk.sh | 2 +-
5 files changed, 10 insertions(+), 15 deletions(-)
---
10 years, 5 months