Is it possible to configure the firewall in %post?
by Aaron Cohen
I'm trying to configure a firewall for my livecd. Currently, I'm
calling lokkit in %post, though I've also tried using iptables and
iptables-save. Unfortunately, no matter what I try, my configuration
seems to be discarded.
As far as I can tell, "lokkit" is run after the post scripts, to
enable or disable selinux. This seems to recreate
/etc/sysconfig/iptables and move my changes to
/etc/sysconfig/iptables.old.
My understanding is that "lokkit --selinux=enforcing" is not supposed
to do anything other than enable selinux, but it definitely seems to
also discard firewall configuration in my testing.
Is this intended?
Thanks,
Aaron
12 years, 5 months
Rawhide: Live Desktop Build fails
by Amit Saha
Hello all:
I am trying to build a custom distro by using Fedora desktop as a
"base" from the "rawhide" repository: (I am on Fedora 15)
<code>
sudo livecd-creator --config=fedora-live-desktop.ks
--fslabel=Fedora-Desktop --cache=/mnt/data/Fedora-Scientific/cache/
</code>
This fails with:
Error creating Live CD : Failed to build transaction :
gjs-1.29.0-1.fc16.i686 requires gecko-libs(x86-32) = 2.0.1
totem-pl-parser-2.32.5-1.fc16.i686 requires libquvi.so.0
totem-pl-parser-2.32.5-1.fc16.i686 requires libquvi.so.0(VER_0.1.0)
Has anyone observed this? I am using the kickstart files from the git repo.
Any help appreciated.
Thanks,
Amit
12 years, 5 months
fedora15 liveCD
by Jose Islas
Hello everyone,
I dont know if this the righ place, but I have been trying for a while
fedora 15 from live cd version, but installation is not successfulI and I
got this message:
Dropping to debug shell
sh: can't access tty; job control turned off
any idea what is going on?
12 years, 5 months
Re: [Fedora-livecd-list] fedora15 liveCD
by Antonio Olivares
--- On Thu, 6/23/11, Jose Islas <islas.fedora.2009(a)gmail.com> wrote:
From: Jose Islas <islas.fedora.2009(a)gmail.com>
Subject: [Fedora-livecd-list] fedora15 liveCD
To: livecd(a)lists.fedoraproject.org
Date: Thursday, June 23, 2011, 4:10 PM
Hello everyone,
I dont know if this the righ place, but I have been trying for a while fedora 15 from live cd version, but installation is not successfulI and I got this message:
Dropping to debug shell
sh: can't access tty; job control turned off
any idea what is going on?
-----Inline Attachment Follows-----
It could mean several things; i.e, maybe you don't have enough ram for the installation? F15 needed more than 512 MB of ram, I encountered this issue several times when I wanted to install F15 xfce into a laptop with 512 MB and I could not :(
There are other possibilities, but this is the main one I have encountered.
Regards,
Antonio
12 years, 5 months
Preconfigured liveCD
by Chris Robson
All
I would like to create a LiveCD with preconfigured files. For example,
ifcfg-eth0 set to specific values, custom services file (aka
/etc/init.d/myservice), custom
/etc/sysconfig/network/vncservers/iptables files. Is there examples of
how to do that or some docs on how? All I see on the LiveCD webpage is
how to build a LiveCD using the LiveCD tools.
Thanks
Chris
12 years, 5 months
/etc/mtab symlink to /proc/self/mounts
by gregory.fowler@oracle.com
Hi
I use el6 based Live CDs and I think this last commit is causing the
liveinst anaconda scripts some headaches. After pulling version 16.3
of the tools from the git repo and updating my Build Host, I started
having problems doing install to HD from LiveCD.
Basically, anaconda included in el6 and el6u1 assumes that /etc/mtab is
a regular file with rw attributes.
When the installer tries to open the file for writing and populate it,
we are getting a traceback because /etc/mtab is symlinked to
/proc/self/mounts and that file is not writable.
If it is necessary to symlink /etc/mtab to proc/self/mounts in the
livecd creator tool, would it be possible to implement a fix for
anaconda scripts that do not like seeing /etc/mtab as a link to a read
only /proc file?
**Commit:
http://git.fedorahosted.org/git/?p=livecd;a=commit;h=9e431a9c86398705ec7b...
diff --git a/imgcreate/creator.py
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
b/imgcreate/creator.py
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
index ec4c1ba
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>..675dcf6
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
100644(file)
--- a/imgcreate/creator.py
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
+++ b/imgcreate/creator.py
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
@@ -536,7
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
+536,7
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
@@ class ImageCreator(object):
self.__create_minimal_dev()
- os.symlink("../proc/mounts", self._instroot + "/etc/mtab")
+ os.symlink("/proc/self/mounts", self._instroot + "/etc/mtab")
self.__write_fstab()
@@ -548,11
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
+548,6
<http://git.fedorahosted.org/git?p=livecd;a=blob;f=imgcreate/creator.py;h=...>
@@ class ImageCreator(object):
from the install root.
"""
- try:
- os.unlink(self._instroot + "/etc/mtab")
- except OSError:
- pass
-
self.__destroy_selinuxfs()
self._undo_bindmounts()
**Install to HD Failure:
The failure looks like
Traceback (most recent call first):
File "/usr/lib/anaconda/livecd.py", line 408, in doPostInstall
f.close()
File "/usr/lib/anaconda/backend.py", line 239, in doPostInstall
anaconda.backend.doPostInstall(anaconda)
File "/usr/lib/anaconda/dispatch.py", line 208, in moveStep
rc = stepFunc(self.anaconda)
File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/gui.py", line 1381, in nextClicked
self.anaconda.dispatch.gotoNext()
File "/usr/lib/anaconda/iw/progress_gui.py", line 79, in renderCallback
self.intf.icw.nextClicked()
File "/usr/lib/anaconda/gui.py", line 1402, in handleRenderCallback
self.currentWindow.renderCallback()
IOError: [Errno 22] Invalid argument
...
IOError: [Errno 22] Invalid argument
Local variables in innermost frame:
**Simple test:
When I echo foo into /proc/self/mounts ..
[root@bur374-199 ~]# echo foo >> /proc/self/mounts
-bash: echo: write error: Invalid argument
...Looks like the anaconda python exception.
**Workaround:
I think this file from anaconda package /usr/lib/anaconda/livecd.py ,
needs to take into account the possibility that /etc/mtab is symlinked
to a ro file in proc and either do nothing (patch below), or unlink
and create a regular file before trying to write data.
I have had to add this patch to my el6 finish scripts as a workaround.
###Finish script to fix anaconda liveinst when /etc/mtab is symlinked
%post
cat > /tmp/apatch << EOF_patch
--- /usr/lib/anaconda/livecd.py 2011-06-10 12:53:52.141225479 -0400
+++ /usr/lib/anaconda/livecd.py_new 2011-06-10 12:57:17.190133970 -0400
@@ -403,9 +403,10 @@
# now write out the "real" fstab and mtab
anaconda.id.storage.write(anaconda.rootPath)
- f = open(anaconda.rootPath + "/etc/mtab", "w+")
- f.write(anaconda.id.storage.mtab)
- f.close()
+ if not os.path.islink("/etc/mtab"):
+ f = open(anaconda.rootPath + "/etc/mtab", "w+")
+ f.write(anaconda.id.storage.mtab)
+ f.close()
# copy over the modprobe.conf
if os.path.exists("/etc/modprobe.conf"):
EOF_patch
patch -d /usr/lib/anaconda < /tmp/apatch
Thanks
Gregory Fowler
12 years, 5 months
Fedora Minimal ISO Build
by Muhammad Ammar
Hi All,
I want to create a Fedora ISO as mini as possible. Is there any kickstart
that can serve this purpose and drop me to a Shell?
Second, What is the best way to create a customized ISO as mini as possible?
Any Tips/Guide etc?
Regards,
12 years, 5 months
feature idea: boot option to copy entire livecd into RAM
by Eric Smith
I'm using a Fedora 14 live CD at the moment to make an image copy of one
hard disk to another. It's working fine, but every minute or two the
optical drive spins up for no apparent reason. I'm not sure what's doing
that, but it occurs to me that it might be possible to kill two birds with
one stone here, the other bird being that interactive use of the live CD is
painfully slow due to the relatively poor performance of the optical drive.
How difficult would it be to have livecd-creator build the image such that
there is a boot option to copy the entire livecd into a ramdisk, and unmount
the optical drive? Since most new laptops have at least 3GB of RAM, this
seems like it might be useful to a lot of users. It also would allow the
optical drive to be used for other purposes while running the live image.
I suppose someone might ask why I am not using a live image on a USB flash
drive rather than the optical drive. That's because the Sony VAIO I'm using
seems to have BIOS issues that prevent successfully booting from a USB flash
drive. :-(
Eric
12 years, 6 months
Branch 'f13-branch' - 2 commits - Makefile tools/livecd-iso-to-disk.sh
by Brian C. Lane
Makefile | 2 +-
tools/livecd-iso-to-disk.sh | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 774d8adcc955fe9f03ff9396e0be61c068d6b369
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Wed Jun 1 14:07:18 2011 -0700
Version 13.3
diff --git a/Makefile b/Makefile
index 34349d5..c62a6fa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 13.2
+VERSION = 13.3
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
commit 1bc3c2e1c8d868412ef93de2d300c33c9074dd7b
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Wed Jun 1 13:39:18 2011 -0700
extlinux doesn't support ext4 or btrfs on F13 (#709778)
F13 is using extlinux 3.84 which does not support ext3 or btrfs. Remove
support for these and setup the USB as ext3 instead.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index a2e7d34..3b6c151 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -234,7 +234,7 @@ createEXTFSLayout() {
getpartition ${device#/dev/}
USBDEV=${device}${partnum}
umount $USBDEV &> /dev/null
- /sbin/mkfs.ext4 -L LIVE $USBDEV
+ /sbin/mkfs.ext3 -L LIVE $USBDEV
USBLABEL="UUID=$(/sbin/blkid -s UUID -o value $USBDEV)"
}
@@ -271,8 +271,8 @@ checkFilesystem() {
USBFS=$(/sbin/blkid -s TYPE -o value $dev)
if [ "$USBFS" != "vfat" ] && [ "$USBFS" != "msdos" ]; then
- if [ "$USBFS" != "ext2" ] && [ "$USBFS" != "ext3" ] && [ "$USBFS" != "ext4" ] && [ "$USBFS" != "btrfs" ]; then
- echo "USB filesystem must be vfat, ext[234] or btrfs"
+ if [ "$USBFS" != "ext2" ] && [ "$USBFS" != "ext3" ]; then
+ echo "USB filesystem must be vfat, ext[23]"
exitclean
fi
fi
@@ -289,7 +289,7 @@ checkFilesystem() {
echo "Need to have a filesystem label or UUID for your USB device"
if [ "$USBFS" = "vfat" -o "$USBFS" = "msdos" ]; then
echo "Label can be set with /sbin/dosfslabel"
- elif [ "$USBFS" = "ext2" -o "$USBFS" = "ext3" -o "$USBFS" = "ext4" ]; then
+ elif [ "$USBFS" = "ext2" -o "$USBFS" = "ext3" ]; 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."
@@ -925,7 +925,7 @@ if [ -z "$multi" ]; then
else
syslinux $USBDEV
fi
- elif [ "$USBFS" == "ext2" -o "$USBFS" == "ext3" -o "$USBFS" == "ext4" -o "$USBFS" == "btrfs" ]; then
+ elif [ "$USBFS" == "ext2" -o "$USBFS" == "ext3" ]; 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
12 years, 6 months
Fedora 14 livecd-creator issues
by Muhammad Ammar
Hi All,
I am creating a custom Fedora 15 live iso, but livecd-creator throwing the
following errors:
Transaction couldn't start:
installing package wxPython-2.8.12.0-1.fc15.i686 needs 46MB on the /
filesystem
installing package simple-scan-2.32.0.1-2.fc15.i686 needs 48MB on the /
filesystem
installing package xdg-user-dirs-gtk-0.8-6.fc15.i686 needs 48MB on the /
filesystem
installing package mousetweaks-3.0.0-1.fc15.i686 needs 52MB on the /
filesystem
installing package NetworkManager-openconnect-0.8.999-1.fc15.i686 needs 52MB
on the / filesystem
installing package PackageKit-gtk3-module-0.6.14-2.fc15.i686 needs 52MB on
the / filesystem
installing package gucharmap-3.0.1-2.fc15.i686 needs 60MB on the /
filesystem
installing package lzop-1.03-3.fc15.i686 needs 60MB on the / filesystem
installing package sssd-1.5.7-1.fc15.i686 needs 64MB on the / filesystem
installing package man-db-2.5.9-4.fc15.i686 needs 66MB on the / filesystem
installing package gvfs-archive-1.8.1-1.fc15.i686 needs 66MB on the /
filesystem
installing package gvfs-smb-1.8.1-1.fc15.i686 needs 66MB on the / filesystem
installing package gvfs-gphoto2-1.8.1-1.fc15.i686 needs 67MB on the /
filesystem
installing package wireless-tools-1:29-6.1.fc15.i686 needs 67MB on the /
filesystem
installing package device-mapper-multipath-0.4.9-15.fc15.i686 needs 67MB on
the / filesystem
installing package grub2-1:1.98-3.fc14.i686 needs 70MB on the / filesystem
installing package biosdevname-0.3.8-1.fc15.i686 needs 70MB on the /
filesystem
installing package rng-tools-3-3.fc15.i686 needs 70MB on the / filesystem
installing package mesa-dri-drivers-7.11-0.9.20110509.0.fc15.i686 needs
105MB on the / filesystem
installing package cryptsetup-luks-1.2.0-2.fc15.i686 needs 105MB on the /
filesystem
installing package pam_pkcs11-0.6.2-7.fc15.i686 needs 106MB on the /
filesystem
installing package ntsysv-1.3.52-1.fc15.i686 needs 106MB on the / filesystem
installing package setuptool-1.19.11-3.fc15.i686 needs 106MB on the /
filesystem
installing package iptstate-2.2.2-5.fc15.i686 needs 106MB on the /
filesystem
installing package passwdqc-1.2.2-2.fc15.i686 needs 107MB on the /
filesystem
installing package smartmontools-1:5.40-8.fc15.i686 needs 108MB on the /
filesystem
installing package PackageKit-command-not-found-0.6.14-2.fc15.i686 needs
108MB on the / filesystem
installing package sudo-1.7.4p5-3.fc15.i686 needs 108MB on the / filesystem
installing package at-spi2-atk-2.0.0-1.fc15.i686 needs 109MB on the /
filesystem
installing package lshw-B.02.15-2.fc15.i686 needs 110MB on the / filesystem
installing package pciutils-3.1.7-5.fc15.i686 needs 110MB on the /
filesystem
installing package usbutils-001-3.fc15.i686 needs 110MB on the / filesystem
installing package xorg-x11-apps-7.6-2.fc15.i686 needs 111MB on the /
filesystem
installing package prelink-0.4.5-1.fc15.i686 needs 113MB on the / filesystem
installing package at-3.1.12-8.fc15.i686 needs 113MB on the / filesystem
installing package irqbalance-2:0.56-4.fc15.i686 needs 113MB on the /
filesystem
installing package testdisk-6.12-1.fc15.i686 needs 114MB on the / filesystem
installing package pinfo-0.6.10-3.fc15.i686 needs 114MB on the / filesystem
installing package pam_krb5-2.3.11-4.fc15.i686 needs 115MB on the /
filesystem
installing package psacct-6.5.5-2.fc15.i686 needs 115MB on the / filesystem
installing package xorg-x11-utils-7.5-2.fc15.i686 needs 115MB on the /
filesystem
installing package cifs-utils-4.9-1.fc15.i686 needs 115MB on the /
filesystem
installing package syslinux-4.02-4.fc15.i686 needs 117MB on the / filesystem
installing package xorg-x11-resutils-7.5-2.fc15.i686 needs 117MB on the /
filesystem
installing package iptables-ipv6-1.4.10-2.fc15.i686 needs 118MB on the /
filesystem
installing package tmpwatch-2.10.2-1.fc15.i686 needs 118MB on the /
filesystem
installing package efibootmgr-0.5.4-11.fc15.i686 needs 118MB on the /
filesystem
installing package file-5.05-3.fc15.i686 needs 118MB on the / filesystem
installing package cyrus-sasl-plain-2.1.23-16.fc15.i686 needs 118MB on the /
filesystem
installing package acl-2.2.49-9.fc15.i686 needs 118MB on the / filesystem
installing package attr-2.4.44-7.fc15.i686 needs 119MB on the / filesystem
installing package bc-1.06.95-3.fc15.i686 needs 119MB on the / filesystem
installing package lsof-4.84-4.fc15.i686 needs 119MB on the / filesystem
installing package unzip-6.0-4.fc15.i686 needs 119MB on the / filesystem
installing package ed-1.5-2.fc15.i686 needs 120MB on the / filesystem
installing package mcelog-2:1.0-0.3.pre3.fc15.i686 needs 120MB on the /
filesystem
installing package setserial-2.17-27.fc15.i686 needs 120MB on the /
filesystem
installing package ethtool-2:2.6.38-1.fc15.i686 needs 120MB on the /
filesystem
installing package symlinks-1.4-3.fc15.i686 needs 120MB on the / filesystem
installing package vconfig-1.9-9.fc15.i686 needs 120MB on the / filesystem
Error creating Live CD : Unable to install: Could not run transaction.
Unmounting directory /var/tmp/imgcreate-Z4Fd9Z/install_root
Losetup remove /dev/loop0
Any solution/Guide?
Regards,
12 years, 6 months