F10 issues
by Christopher Johnston
I seem to be having a number of issues when I attempt to create a livecd in
F10. I have noticed when creating a livecd the app is having issues
umounting the temp filesystem during the build which is kind of annoying as
I have to manually umount the filesystem each time I create a livecd. Is
anyone noticing this same behavior? I thought it may have something to do
with my ks.cfg I am using but to make sure it wasnt that I use minimal
kickstart configuration that comes packed with the RPM and got the same
results.
Another thing I am noticing are some filesystem errors coming up when the
FSCK is done which is causing issues for me when I attempt to insert a file
into the livecd. Notice the output below for the deleted/unused inode?
When I boot the livecd the file is generally missing or corrupted.
Unmounting directory /root/LIVECD/imgcreate-1OWjfU/install_root
umount: /root/LIVECD/imgcreate-1OWjfU/install_root: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Losetup remove /dev/loop4
ioctl: LOOP_CLR_FD: Device or resource busy
Unmounting directory /root/LIVECD/imgcreate-1OWjfU/install_root
umount: /root/LIVECD/imgcreate-1OWjfU/install_root: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Checking filesystem /root/LIVECD/imgcreate-1OWjfU/tmp-9HElVv/ext3fs.img
e2fsck 1.41.3 (12-Oct-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Entry 'testfile' in /usr/local/bin (8199) has deleted/unused inode 8204.
Clear? yes
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Inode 32769 ref count is 52, should be 53. Fix? yes
Unattached inode 32812
Connect to /lost+found? yes
Inode 32812 ref count is 2, should be 1. Fix? yes
Pass 5: Checking group summary information
Block bitmap differences: +132014
Fix? yes
Free blocks count wrong for group #4 (28170, counted=28169).
Fix? yes
Free blocks count wrong (194301, counted=194300).
Fix? yes
Inode bitmap differences: +32812
Fix? yes
Free inodes count wrong for group #4 (4559, counted=4558).
Fix? yes
Free inodes count wrong (55120, counted=55119).
Fix? yes
14 years, 10 months
[PATCH] small fix for --multi mode
by Jason Farrell
One other tiny patch for the mostly unused "--multi" mode. The
"initrd=" in isolinux.cfg wasn't getting replaced, and, it's easier if
the $LIVEOS/$SYSLINUXPATH paths are absolute when editing the "main"
/syslinux/syslinux.cfg or /syslinux/extlinux.conf menu entries to add
them for multibooting.
I had a larger ambition for expanding upon the "--multi" mode
creation, but I read in an earlier message that the livecd-iso-to-disk
script is eventually going to be phased out in favor of a better CLI
interface on the python liveusb-creator. So, looking forward to seeing
live image + *installer image* multiboot creator capability soon, as
it currently takes a bit too much manual syslinux hackery to do it.
Fedora Ambassadors, and many others, could definitely use an easier
way to create a multi-image bootable usbkey. 8GB+ keys are only around
$20 these days...
[root@nano livecd-foo]# diff -Naur livecd-iso-to-disk.sh.orig
livecd-iso-to-disk.sh
--- livecd-iso-to-disk.sh.orig 2009-06-17 17:57:21.000000000 -0400
+++ livecd-iso-to-disk.sh 2009-06-17 19:33:20.109631051 -0400
@@ -691,8 +696,8 @@
fi
else
# we need to do some more config file tweaks for multi-image mode
- sed -i -e "s;kernel vm;kernel $LIVEOS/syslinux/vm;"
$USBMNT/$SYSLINUXPATH/isolinux.cfg
- sed -i -e "s;initrd i;initrd $LIVEOS/syslinux/i;"
$USBMNT/$SYSLINUXPATH/isolinux.cfg
+ sed -i -e "s;kernel vm;kernel /$LIVEOS/syslinux/vm;"
$USBMNT/$SYSLINUXPATH/isolinux.cfg
+ sed -i -e "s;initrd=i;initrd=/$LIVEOS/syslinux/i;"
$USBMNT/$SYSLINUXPATH/isolinux.cfg
mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/syslinux.cfg
cleanup
fi
--
Jason "zcat" Farrell
14 years, 10 months
2 commits - tools/livecd-iso-to-disk.sh
by Jeremy Katz
tools/livecd-iso-to-disk.sh | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
New commits:
commit a3227625a1317026fbbd331fcbca560716b6cfa8
Author: Jason Farrell <farrellj(a)gmail.com>
Date: Wed Jun 17 19:53:15 2009 -0400
small fix for --multi mode
One other tiny patch for the mostly unused "--multi" mode. The
"initrd=" in isolinux.cfg wasn't getting replaced, and, it's easier if
the $LIVEOS/$SYSLINUXPATH paths are absolute when editing the "main"
/syslinux/syslinux.cfg or /syslinux/extlinux.conf menu entries to add
them for multibooting.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 01dadb3..672e6db 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -696,8 +696,8 @@ if [ -z "$multi" ]; then
fi
else
# we need to do some more config file tweaks for multi-image mode
- sed -i -e "s;kernel vm;kernel $LIVEOS/syslinux/vm;" $USBMNT/$SYSLINUXPATH/isolinux.cfg
- sed -i -e "s;initrd i;initrd $LIVEOS/syslinux/i;" $USBMNT/$SYSLINUXPATH/isolinux.cfg
+ sed -i -e "s;kernel vm;kernel /$LIVEOS/syslinux/vm;" $USBMNT/$SYSLINUXPATH/isolinux.cfg
+ sed -i -e "s;initrd=i;initrd=/$LIVEOS/syslinux/i;" $USBMNT/$SYSLINUXPATH/isolinux.cfg
mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/syslinux.cfg
cleanup
fi
commit dd2f7eccd287932b1d84287877997a9cf94a0d33
Author: Jason Farrell <farrellj(a)gmail.com>
Date: Wed Jun 17 19:28:54 2009 -0400
Make overlay space requirements clearer
My biggest annoyance with the livecd-iso-to-disk script has simply
been having to do a little math in my head when trying to fit the
largest possible overlay combo onto my liveusb. The script should be
doing this work - it should tell you by how much you're over so you
can free it and/or quickly adjust your sizes.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index de439d5..01dadb3 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -476,13 +476,18 @@ if [ -n "$skipcompress" ]; then
fi
free=$(df -B1M $USBDEV |tail -n 1 |awk {'print $4;'})
-if [ $(($overlaysizemb + $homesizemb + $livesize + $swapsizemb)) -gt $(($free + $tbd)) ]; then
+ tba=$(($overlaysizemb + $homesizemb + $livesize + $swapsizemb))
+if [ $tba -gt $(($free + $tbd)) ]; then
echo "Unable to fit live image + overlay on available space on USB stick"
- echo "Size of live image: $livesize"
- [ "$overlaysizemb" -gt 0 ] && echo "Overlay size: $overlaysizemb"
- [ "$homesizemb" -gt 0 ] && echo "Home overlay size: $homesizemb"
- [ "$swapsizemb" -gt 0 ] && echo "Home overlay size: $swapsizemb"
- echo "Available space: $(($free + $tbd))"
+ echo "+ Size of live image: $livesize"
+ [ "$overlaysizemb" -gt 0 ] && echo "+ Overlay size: $overlaysizemb"
+ [ "$homesizemb" -gt 0 ] && echo "+ Home overlay size: $homesizemb"
+ [ "$swapsizemb" -gt 0 ] && echo "+ Swap overlay size: $swapsizemb"
+ echo "---------------------------"
+ echo "= Requested: $tba"
+ echo "- Available: $(($free + $tbd))"
+ echo "---------------------------"
+ echo "= To fit, free or decrease requested size total by: $(($tba - $free + $tbd))"
exitclean
fi
14 years, 10 months
[PATCH] Make overlay space requirements clearer
by Jason Farrell
My biggest annoyance with the livecd-iso-to-disk script has simply
been having to do a little math in my head when trying to fit the
largest possible overlay combo onto my liveusb. The script should be
doing this work - it should tell you by how much you're over so you
can free it and/or quickly adjust your sizes.
BEFORE:
[root@nano livecd-foo]# livecd-iso-to-disk --noverify
--overlay-size-mb 12000 --home-size-mb 8000 --swap-size-mb 1024
--delete-home Fedora-11-i686-Live.iso /dev/loop0
Unable to fit live image + overlay on available space on USB stick
Size of live image: 679
Overlay size: 12000
Home overlay size: 8000
Home overlay size: 1024
Available space: 15947
Cleaning up to exit...
AFTER:
[root@nano livecd-foo]# ./livecd-iso-to-disk.sh --noverify
--overlay-size-mb 12000 --home-size-mb 8000 --swap-size-mb 1024
--delete-home Fedora-11-i686-Live.iso /dev/loop0
Unable to fit live image + overlay on available space on USB stick
+ Size of live image: 679
+ Overlay size: 12000
+ Home overlay size: 8000
+ Swap overlay size: 1024
---------------------------
= Requested: 21703
- Available: 15947
---------------------------
= To fit, free or decrease requested size total by: 9296
Cleaning up to exit...
diff -Naur livecd-iso-to-disk.sh.orig livecd-iso-to-disk.sh
--- livecd-iso-to-disk.sh.orig 2009-06-17 17:57:21.000000000 -0400
+++ livecd-iso-to-disk.sh 2009-06-17 19:12:33.897509289 -0400
@@ -476,13 +476,18 @@
fi
free=$(df -B1M $USBDEV |tail -n 1 |awk {'print $4;'})
-if [ $(($overlaysizemb + $homesizemb + $livesize + $swapsizemb)) -gt
$(($free + $tbd)) ]; then
+tba=$(($overlaysizemb + $homesizemb + $livesize + $swapsizemb))
+if [ $tba -gt $(($free + $tbd)) ]; then
echo "Unable to fit live image + overlay on available space on USB stick"
- echo "Size of live image: $livesize"
- [ "$overlaysizemb" -gt 0 ] && echo "Overlay size: $overlaysizemb"
- [ "$homesizemb" -gt 0 ] && echo "Home overlay size: $homesizemb"
- [ "$swapsizemb" -gt 0 ] && echo "Home overlay size: $swapsizemb"
- echo "Available space: $(($free + $tbd))"
+ echo "+ Size of live image: $livesize"
+ [ "$overlaysizemb" -gt 0 ] && echo "+ Overlay size: $overlaysizemb"
+ [ "$homesizemb" -gt 0 ] && echo "+ Home overlay size: $homesizemb"
+ [ "$swapsizemb" -gt 0 ] && echo "+ Swap overlay size: $swapsizemb"
+ echo "---------------------------"
+ echo "= Requested: $tba"
+ echo "- Available: $(($free + $tbd))"
+ echo "---------------------------"
+ echo "= To fit, free or decrease requested size total by: $(($tba
- $free + $tbd))"
exitclean
fi
--
Jason "zcat" Farrell
14 years, 10 months
tools/livecd-iso-to-disk.sh
by Jeremy Katz
tools/livecd-iso-to-disk.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 8f7d47f50ab4b21e0fa36dfd8325a75b896936ef
Author: Matthias Clasen <mclasen(a)redhat.com>
Date: Wed Jun 17 11:13:23 2009 -0400
Switch to using blkid instead of vol_id (#506360)
Newer udev dropped vol_id
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 4ed16c1..de439d5 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -153,7 +153,7 @@ createGPTLayout() {
sleep 5
umount $USBDEV &> /dev/null
/sbin/mkdosfs -n LIVE $USBDEV
- USBLABEL="UUID=$(/lib/udev/vol_id -u $USBDEV)"
+ USBLABEL="UUID=$(/sbin/blkid -s UUID -o value $USBDEV)"
}
createMSDOSLayout() {
@@ -175,7 +175,7 @@ createMSDOSLayout() {
sleep 5
umount $USBDEV &> /dev/null
/sbin/mkdosfs -n LIVE $USBDEV
- USBLABEL="UUID=$(/lib/udev/vol_id -u $USBDEV)"
+ USBLABEL="UUID=$(/sbin/blkid -s UUID -o value $USBDEV)"
}
checkGPT() {
@@ -209,17 +209,17 @@ checkGPT() {
checkFilesystem() {
dev=$1
- USBFS=$(/lib/udev/vol_id -t $dev)
+ USBFS=$(/sbin/blkid -s TYPE -o value $dev)
if [ "$USBFS" != "vfat" -a "$USBFS" != "msdos" -a "$USBFS" != "ext2" -a "$USBFS" != "ext3" ]; then
echo "USB filesystem must be vfat or ext[23]"
exitclean
fi
- USBLABEL=$(/lib/udev/vol_id -u $dev)
+ USBLABEL=$(/sbin/blkid -s UUID -o value $dev)
if [ -n "$USBLABEL" ]; then
USBLABEL="UUID=$USBLABEL" ;
else
- USBLABEL=$(/lib/udev/vol_id -l $dev)
+ USBLABEL=$(/sbin/blkid -s LABEL -o value $dev)
if [ -n "$USBLABEL" ]; then
USBLABEL="LABEL=$USBLABEL"
else
@@ -546,7 +546,7 @@ if [ "$LIVEOS" != "LiveOS" ]; then sed -i -e "s;liveimg;liveimg live_dir=$LIVEOS
if [ "$overlaysizemb" -gt 0 ]; then
echo "Initializing persistent overlay file"
- OVERFILE="overlay-$( /lib/udev/vol_id -l $USBDEV )-$( /lib/udev/vol_id -u $USBDEV )"
+ OVERFILE="overlay-$( /sbin/blkid -s LABEL -o value $USBDEV )-$( /sbin/blkid -s UUID -o value $USBDEV )"
if [ "$USBFS" = "vfat" ]; then
# vfat can't handle sparse files
dd if=/dev/zero of=$USBMNT/$LIVEOS/$OVERFILE count=$overlaysizemb bs=1M
14 years, 10 months
docs/livecd-iso-to-disk.pod
by Jeremy Katz
docs/livecd-iso-to-disk.pod | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
New commits:
commit d4c5e39d9898ced0ef8fd0ebe41938d1460a78cf
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Mon Jun 15 15:38:50 2009 -0400
Update for current options (#505742)
Update for current options based on a patch from Michel
Duquaine (michelduquaine AT gmail DOT com)
diff --git a/docs/livecd-iso-to-disk.pod b/docs/livecd-iso-to-disk.pod
index 7449c17..9274ab8 100644
--- a/docs/livecd-iso-to-disk.pod
+++ b/docs/livecd-iso-to-disk.pod
@@ -6,7 +6,7 @@ livecd-iso-to-disk - installs bootable CD images on a USB storage devices.
=head1 SYNOPSIS
-B<livecd-iso-to-disk> [--reset-mbr] [--noverify] [--overlay-size-mb <size>] <path-to-iso> <usb storage device>
+B<livecd-iso-to-disk> [--format] [--reset-mbr] [--noverify] [--overlay-size-mb <size>] [\-\-home\-size\-mb <size>] [\-\-unencrypted\-home] [\-\-skipcopy] <path-to-iso> <usb storage device>
=head1 DESCRIPTION
@@ -18,6 +18,10 @@ B<livecd-iso-to-disk> is not a destructive process; any data you currently have
=over 4
+=item --format
+
+Formats the USB stick and creates a GPT partition table.
+
=item --reset-mbr
Sets the Master Boot Record(MBR) of the USB storage device to the mbr.bin file from the image's syslinux directory.
@@ -30,6 +34,18 @@ Disables the image validation process which occurs before the image is installed
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.
+=item --home-size-mb
+
+Sets the home directory size in megabytes.
+
+=item --unencrypted-home
+
+Disables the encryption of the home directory.
+
+=item --skipcopy
+
+Skips the copy of the live image to the USB stick.
+
=back
=head1 CONTRIBUTORS
14 years, 10 months
imgcreate/creator.py
by Jeremy Katz
imgcreate/creator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 553761bd6a5ad1ac672319bad5d873a39386424d
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Tue Jun 9 15:14:27 2009 -0400
Bind mount /dev/shm also (#502921)
diff --git a/imgcreate/creator.py b/imgcreate/creator.py
index 823afc5..1f8971f 100644
--- a/imgcreate/creator.py
+++ b/imgcreate/creator.py
@@ -517,7 +517,7 @@ class ImageCreator(object):
# bind mount system directories into _instroot
for (f, dest) in [("/sys", None), ("/proc", None),
- ("/dev/pts", None),
+ ("/dev/pts", None), ("/dev/shm", None),
(cachesrc, "/var/cache/yum")]:
self.__bindmounts.append(BindChrootMount(f, self._instroot, dest))
14 years, 10 months
Custom Fedora Remix
by Valent Turkovic
http://kernelreloaded.blog385.com/index.php/archives/fedora-remix/
In our local LUG we have been brewing a custom distro based upon
Fedora and Omega linux distributions. We also added a lot of
applications from many categories; like gps, astronomy, office and
multimedia software.
What makes it apart from distributions that it is based upon are these points:
# Much more pre-installed software
# Latest updated packages
# Bonus (proprietary) software (Skype, Flash…)
# Support for broadcom wireless chipset (via firmware)
# Multiple desktop environments: Gnome, KDE, Enlightenment, LXDE…
Why did we make this distribution? Because there are just too many
things missing by default in current Fedora. Due to laws in US and
because the software in question isn’t licenced under open source
licence Fedora can’t provide things like skype and flash that most of
users are just too depended upon and can’t work without them.
Any comments and suggestions are welcome, tell us what we are doing
wrong and how to make this distro better.
--
http://kernelreloaded.blog385.com/
linux, blog, anime, spirituality, windsurf, wireless
registered as user #367004 with the Linux Counter, http://counter.li.org.
ICQ: 2125241, Skype: valent.turkovic
14 years, 10 months
livecd-creator problem in use
by Arthur Wang
Hello,
I built a open-source project--virt-p2v, and it uses livecd-creator. At the last step of building, an error occur, the error log is as follows:
Retrieving http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Everything... ...OK
Retrieving http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Everything... ...OK
Retrieving http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Everything... ...OK
Retrieving http://download.fedora.redhat.com/pub/fedora/linux/releases/10/Everything... ...OK
Traceback (most recent call last):
File "/usr/share/yum-cli/callback.py", line 124, in callback
fd = os.open(rpmloc, os.O_RDONLY)
OSError: [Errno 2] No such file or directory: '/var/tmp/imgcreate-FmND9q/install_root/var/cache/yum/updates/packages/setup-2.7.4-4.fc10.noarch.rpm'
error: python callback <bound method RPMInstallCallback.callback of <callback.RPMInstallCallback instance at 0xac997ec>> failed, aborting!
make: *** [build] error 1
the author of the open-source project is Richard Jones , and he got a result that "This looks a lot like a livecd-creator problem ", is there anyone had meet this problem?
My build entironment is fedora 10.
Arthur Wang
Research Department, CPD
Huawei Technologies Co., Ltd.
Phone: 86-755-28976096
Email: wangjihai(a)huawei.com
2009-06-02
14 years, 10 months