Livecd Disable susped/hibernate
by Williamson Grant
In the past on Fedora I disable suspend/hibernate on the livedvd/usb. Does not seem to work for F14.
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --set /apps/gnome-power-manager/general/can_hibernate --type bool "0"
>/dev/null ||:
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --set /apps/gnome-power-manager/general/can_suspend --type bool "0"
>/dev/null ||:
Looking at gconf I do not see where it should be set, anyone have an idea, thanks.
13 years, 5 months
2 commits - docs/livecd-creator.pod imgcreate/yuminst.py
by Bruno Wolff III
docs/livecd-creator.pod | 9 +++++++++
imgcreate/yuminst.py | 1 +
2 files changed, 10 insertions(+)
New commits:
commit 37bcbcc7154aba9d098f2c424a69359de3e7780f
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Thu Oct 14 00:09:55 2010 -0500
Add documentation for repo command extensions.
repo commands processed by livecd-creator will do substituions for
$arch, $basearch and $releasever.
diff --git a/docs/livecd-creator.pod b/docs/livecd-creator.pod
index 2c78892..553f865 100644
--- a/docs/livecd-creator.pod
+++ b/docs/livecd-creator.pod
@@ -78,6 +78,15 @@ livecd-creator \
--config=/usr/share/livecd-tools/livecd-fedora-desktop.ks \
--fslabel=Fedora9-LiveCD-foo
+=head1 REPO EXTENSIONS
+
+livecd-creator provides for some extensions to the repo commands similar
+to what yum supports. The strings $arch, $basearch and $releveasever
+are replaced with the system arch, basearch and release version respectively.
+The allows the use of repo commands such as the following:
+
+repo --name=fedora --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
+
=head1 CONTRIBUTORS
David Zeuthen, Jeremy Katz, Douglas McClendon and a team of many other contributors. See the AUTHORS file in the source distribution for the complete list of credits.
commit f29269c6c6ac947be6317a0457440c3849d93d56
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Wed Oct 13 23:37:31 2010 -0500
Provide for support for $releasever in repo commands.
Provide $releasever support similar to $basearch and $arch support in repo
commands. $releasever gets replaced by the version of the package providing
redhat-release (which is what yum uses by default).
diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index 7614ebb..9e54982 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -130,6 +130,7 @@ class LiveCDYum(yum.YumBase):
# takes a variable and substitutes like yum configs do
option = option.replace("$basearch", rpmUtils.arch.getBaseArch())
option = option.replace("$arch", rpmUtils.arch.getCanonArch())
+ option = option.replace("$releasever", yum.config._getsysver("/", "redhat-release"))
return option
repo = yum.yumRepo.YumRepository(name)
13 years, 5 months
kickstart changes in F14?
by Valent Turkovic
Could you please share your kickstart files that you use to create
your custom Fedora Remixes version based on Fedora 14? I have some
issues with mine. Have some mayor things changed?
I used this to create yum .repo files by using echo command in #post
but now that fails for some reason.
This is how I used to create .repo files:
%post
# mintMenu repo
cat >> /etc/yum.repos.d/mintmenu.repo << EOF
[mintMenu]
name=mintMenu
type=rpm-md
baseurl=http://download.opensuse.org/repositories/home:/unamanic/Fedora_13/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/home:/unamanic/Fedora_13...
enabled=1
EOF
But now that I start livecd I see no custom .repo files in /etc/yum.repos.d/
Any help is very appreciated.
TIA,
Valent.
--
pratite me na twitteru - www.twitter.com/valentt
blog: http://kernelreloaded.blog385.com
linux, anime, spirituality, windsurf, wireless, ronjenje, pametne kuće, zwave
registered as user #367004 with the Linux Counter, http://counter.li.org.
ICQ: 2125241, Skype: valent.turkovic, MSN: valent.turkovic(a)hotmail.com
13 years, 5 months
Problems with livecd-creator on Fedora 14 Beta
by Scott Dowdle
Greetings,
I'm trying to use livecd-creator to build a remix.
The system is Fedora 14 Beta 32-bit with the most current versions of everything installed.
livecd-tools-034-7.fc14
I can build the stock KDE respin just fine but when I try to build my own remix using the fedora-livecd-kde.ks as a base I get the following error:
-----
umount: /var/tmp/imagecreate-{random}/install_root: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Umounting directory /var/tmp/imgcreate-{random}/install_root failed, using lazy umount
lazy umount succeeded on /var/tmp/imagecreate-{random}/install_root
loop: can't delete device /dev/loop0: Device or resource busy
flush-253:0 used greatest stack depth: 5372 bytes left
_MontanaLinux-F1: recovering journal
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
_MontanaLinux-F1: ***** FILE SYSTEM WAS MODIFIED *****
_MontanaLinux-F1: 212049/524288 file (0.1% non-contiguous), 1354190/2097152 blocks
e2image 1.41.12 (17-May-2010)
Please run 'e2fsck -f /var/tmp/imgcreate-{random}/tmp-VoLFME/ext3fs.img' first.
Error creating Live CD : resize2fs returned an error (1)! image to debug at /tmp/resize-image-{random}
----
Any idea what might be causing this?
Now to check bugzilla. :)
TYL,
--
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
13 years, 5 months
livedvd text install garbage in console
by Williamson Grant
I wonder if anyone knows the answer here.
Performing a text install from a el6 livedvd, anaconda seems to throw some
garbage on the screen.
Seems to happen when after the luks password is entered.
Has anyone on the list seen something simillar, do I need to switch something off?
13 years, 5 months
2 commits - tools/livecd-iso-to-disk.sh
by Bruno Wolff III
tools/livecd-iso-to-disk.sh | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
New commits:
commit c565fcaa0747b5b69cbb58f3e9dac54845ec289b
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Oct 2 14:55:11 2010 -0500
Allow image to be put on a btrfs file system on a live usb.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 7f07d65..72211d2 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -258,8 +258,8 @@ checkFilesystem() {
USBFS=$(/sbin/blkid -s TYPE -o value $dev)
if [ "$USBFS" != "vfat" ] && [ "$USBFS" != "msdos" ]; then
- if [ "$USBFS" != "ext2" ] && [ "$USBFS" != "ext3" ] && [ "$USBFS" != "ext4" ]; then
- echo "USB filesystem must be vfat or ext[234]"
+ if [ "$USBFS" != "ext2" ] && [ "$USBFS" != "ext3" ] && [ "$USBFS" != "ext4" ] && [ "$USBFS" != "btrfs"]; then
+ echo "USB filesystem must be vfat, ext[234] or btrfs"
exitclean
fi
fi
@@ -278,6 +278,8 @@ checkFilesystem() {
echo "Label can be set with /sbin/dosfslabel"
elif [ "$USBFS" = "ext2" -o "$USBFS" = "ext3" -o "$USBFS" = "ext4" ]; then
echo "Label can be set with /sbin/e2label"
+ elif [ "$USBFS" = "btrfs" ]; then
+ echo "Eventually you'll be able to use /sbin/btrfs filesystem label to add a label."
fi
exitclean
fi
@@ -853,7 +855,7 @@ if [ -z "$multi" ]; then
else
syslinux $USBDEV
fi
- elif [ "$USBFS" == "ext2" -o "$USBFS" == "ext3" -o "$USBFS" == "ext4" ]; then
+ elif [ "$USBFS" == "ext2" -o "$USBFS" == "ext3" -o "$USBFS" == "ext4" -o "$USBFS" == "btrfs" ]; then
# extlinux expects the config to be named extlinux.conf
# and has to be run with the file system mounted
mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/extlinux.conf
commit 52ad0c37237d0ce7343580e32d9565ebbdc86f2e
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Sat Oct 2 14:23:23 2010 -0500
Starting with syslinux 4 ldlinux.sys is used on all file systems.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 329ce4f..7f07d65 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -858,7 +858,12 @@ if [ -z "$multi" ]; then
# and has to be run with the file system mounted
mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/extlinux.conf
extlinux -i $USBMNT/$SYSLINUXPATH
- chattr -i $USBMNT/$SYSLINUXPATH/extlinux.sys
+ # Starting with syslinux 4 ldlinux.sys is used on all file systems.
+ if [ -f "$USBMNT/$SYSLINUXPATH/extlinux.sys" ]; then
+ chattr -i $USBMNT/$SYSLINUXPATH/extlinux.sys
+ elif [ -f "$USBMNT/$SYSLINUXPATH/ldlinux.sys" ]; then
+ chattr -i $USBMNT/$SYSLINUXPATH/ldlinux.sys
+ fi
cleanup
fi
else
13 years, 6 months
[PATCH] F14 livecd-tools: livecd-iso-to-disk with extlinux
by Paul B Schroeder
I was trying to use livecd-iso-to-disk to write to an ext partition
and ran into issues. It seems that in F14 extlinux will be in the
subpackage syslinux-extlinux. And when extlinux runs, it now
creates ldlinux.sys instead of extlinux.sys.
Here's a couple of simple patches to take care of it..
Cheers...Paul...
--- livecd-tools.spec.orig 2010-09-30 14:46:17.322826883 -0500
+++ livecd-tools.spec 2010-09-30 14:41:54.925815565 -0500
@@ -20,6 +20,7 @@
Patch2: menulabel.patch
Patch3: devloop.patch
Patch4: livecd-tools-034-newpath.patch
+Patch5: syslinux-extlinux.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: python-imgcreate = %{version}-%{release}
Requires: mkisofs
@@ -28,6 +29,7 @@
Requires: pyparted
%ifarch %{ix86} x86_64
Requires: syslinux
+Requires: syslinux-extlinux
%endif
%ifarch ppc
Requires: yaboot
@@ -68,6 +70,7 @@
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
make
diff -ur livecd-tools-034.orig/tools/livecd-iso-to-disk.sh livecd-tools-034/tools/livecd-iso-to-disk.sh
--- livecd-tools-034.orig/tools/livecd-iso-to-disk.sh 2010-09-30 10:50:21.249815100 -0500
+++ livecd-tools-034/tools/livecd-iso-to-disk.sh 2010-09-30 11:05:13.223817683 -0500
@@ -858,7 +858,7 @@
# and has to be run with the file system mounted
mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/extlinux.conf
extlinux -i $USBMNT/$SYSLINUXPATH
- chattr -i $USBMNT/$SYSLINUXPATH/extlinux.sys
+ chattr -i $USBMNT/$SYSLINUXPATH/ldlinux.sys
cleanup
fi
else
13 years, 6 months
error: No root device found
by Danishka Navin
Hi,
I was testing my Fedora 13 remix on KVM.
Could not boot 'No root device found. Sleeping for ever' was the error
message.
I have tested this on both Fedora 12 and Fedora 13 systems (as base system).
Is there anyway to fix this issue?
Best Regards,
--
Danishka Navin
http://danishkanavin.blogspot.com
13 years, 6 months
btrfs for Fedora 12 and 13 LiveCD/DVD ?
by Valent Turkovic
Hi,
how to make Fedora 12 and Fedora 13 LiveCD/DVD that is btrfs formated
and not ext4?
What options need to be enables in kicstart file so that
livecd-creator makes btrfs iso images?
I would like to also have compression enabled after btrfs image in
transfered to hard drive or SSD.
Has anybody tried this?
Thank you in advanced,
Valent.
--
pratite me na twitteru - www.twitter.com/valentt
blog: http://kernelreloaded.blog385.com
linux, anime, spirituality, windsurf, wireless, ronjenje, pametne kuće, zwave
registered as user #367004 with the Linux Counter, http://counter.li.org.
ICQ: 2125241, Skype: valent.turkovic, MSN: valent.turkovic(a)hotmail.com
13 years, 6 months