F17 imgcreate SELinux failures
by Daniel Drake
Hi,
We use python-imgcreate to build OLPC images:
http://dev.laptop.org/git/projects/olpc-os-builder/tree/modules/base/buil...
and we distribute this to our customers to build their own, customised
images too.
Under F17, we aren't able to build images in this way when selinux is
enforcing on the host system.
When packages get installed and want to run ldconfig or groupadd,
selinux blocks them.
audit.log says e.g.:
type=SELINUX_ERR msg=audit(1338332428.453:68272):
security_compute_sid: invalid context
unconfined_u:unconfined_r:ldconfig_t:s0-s0:c0.c1023 for
scontext=unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023
tcontext=system_u:object_r:ldconfig_exec_t:s0 tclass=process
type=SYSCALL msg=audit(1338332428.453:68272): arch=40000003 syscall=11
success=no exit=-13 a0=994dc48 a1=994c2f8 a2=994bfa0 a3=994c2f8
items=0 ppid=19050 pid=19051 auid=1009 uid=0 gid=0 euid=0 suid=0
fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=5527 comm="sh"
exe="/usr/bin/bash"
subj=unconfined_u:unconfined_r:rpm_script_t:s0-s0:c0.c1023 key=(null)
Is this a known issue?
Thanks,
Daniel
11 years, 3 months
Fedora-17-i686-Live-LXDE.iso boot error
by ne1uno@hotmail.com
After I get past the status bar on the bottom of the screen, the boot process stops and reports the following:
-----
dracut Warning: No boot device "live:/dev/disk/by-label/Fedora-17-i686-Live-LXDE.iso" found
Dropping to debug shell
sh: can't access tty; job control turned off
dracut:/#
-----
And sure enough, there is no /dev/disk/by-label but /dev/disk/by-id.
I had the same problem with Fedora 16 LXDE also. The regular Desktop LiveCD (Gnome version) works fine.
Thank you.
11 years, 3 months
Misconfigured devicemapper setup within the livecd?
by Joshua C.
I'm getting a strange error with the latest livecds. They are custom
made but the changes I made to the kickstart files concern my own
scripts and extra packages I want to have in the livecd. This started
to occur in the lastest 3-4 weeks. I cannot say when exactly it
started to apper. I filed a kernel-bug here
https://bugzilla.redhat.com/show_bug.cgi?id=823205 but maybe this is a
devicemapper problem. I know that there were some changes to the
livecd-tools and lorax packges so maybe something there introduced
this bug. Can someone take a look at it? More information can be found
in my bug report.
--Joshua
11 years, 3 months
Is livecd-creator broken?
by Valent Turkovic
I tried last version of livecd-creator currently in Fedora 16, and
then updated to latest version from testing-updates repo, but still I
get ISO image that is broken...
Did anybody get working iso image from Fedora 16 or Fedora 17
kickstart files using livecd-creator ?
if you did please share how you managed to get a working iso image.
Cheers,
Valent.
--
follow me - www.twitter.com/valentt & http://kernelreloaded.blog385.com
linux, anime, spirituality, wireless, scuba, linuxmce smart home, zwave
ICQ: 2125241, Skype: valent.turkovic, MSN: valent.turkovic(a)hotmail.com
11 years, 3 months
Re: [Fedora-livecd-list] is liveusb-creator working for you?
by Valent Turkovic
On Mon, May 7, 2012 at 9:31 AM, Chris Smart <chris(a)kororaa.org> wrote:
> On 07/05/12 08:13, valent.turkovic(a)gmail.com wrote:
>> I created Fedora 16 respin (with latest packages from updates repo)
>> and custom remix iso images but when I transfer iso image to usb with
>> liveusb-creator or via dd command I just get black screen on boot, not
>> even grub menu comes up :(
>>
>> Are others seeing this also or is everything working out for you?
>>
>
> I haven't tried it recently, but the kernel caches the writing to the
> disk - the only times I've seen that happen is when I've pulled out the
> disk too early while the kernel is still writing.
>
> You can try the sync command and maybe check with iotop.
>
> -c
I used sync every time it doesn't help, can anybody please try and see
does it work for you or not. If it doesn't work it is a mayor bug that
I'll report right away.
Cheers,
Valent.
11 years, 3 months
/dev/live, /mnt/live, LiveOS/home.img unavailable in Fedora-17
by Frederick Grose
Please note that the current Fedora-17-Beta-TC2-Live images lack
some traditional Live CD/USB features.
See this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=740280
/dev/live was a link to the installation partition on the Live USB, such as
/dev/sdc1,
or /dev/sr0 on a Live CD/DVD.
How would a script determine this partition without human input?
/mnt/live was a convenient mounting of the installation partition
filesystem.
It allowed easy access to pre-existing content on the Live USB device or to
the /LiveOS and /syslinux directories.
The --home-size-mb NNN option of livecd-iso-to-disk produced a
/LiveOS/home.img
filesystem for the liveuser's home directory.
This feature made possible the --encrypted-home option, which would secure
the privacy of a user directory on a Live USB system.
The home.img filesystem was also read/write/delete without consuming the
LiveOS overlay. This is important for non-short-term Live USB deployments,
such as Sugar on a Stick, where overlay exhaustion can be a significant
problem.
Is there a workaround for these (missing) features?
--Fred
11 years, 4 months
Changes to 'refs/tags/livecd-tools-15.13'
by Brian C. Lane
Tag 'livecd-tools-15.13' created by Brian C. Lane <bcl(a)redhat.com> at 2012-05-07 23:50 +0000
Tag as livecd-tools-15.13
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEVAwUAT6hf0hF+jBaO/jp/AQKqIAf/WzSRkdEYW85RvwSsRMDKFsm5HFztZQFM
DGs835k5scxFOZ9d8L9HzBjSI72+3sdlAOKPEczb7bv4FWXzktYbYGAjgQmAEL4c
vby9bOOLfV3CISP8lOdx1DJadH/r13yD8B257Zjz33sW6BhAIBX5jmyAvgb5O8ef
58G95YR2R0ah1AV7h0YUnDYYHRY3cmtZQq7QKf4PavIFb7wqnKtHzNMYBIbzqEyI
Tbhuc7SEdtJTUKvZpR6quWZykw9p7IDksaRBHXGtYNCBdeFoxsAH9U30OGXQkug+
GjDU7zdtwpm9InmXXdgfxdWKdxNpbNwPqVzbdJoIV4s1KhiaSgiQKw==
=ZqmL
-----END PGP SIGNATURE-----
Changes since livecd-tools-15.12:
Brian C. Lane (3):
copy repo data to USB for F17 (#806166)
fix syntax problem in detectsrctype
Version 15.13
---
Makefile | 2
tools/livecd-iso-to-disk.sh | 148 +++++++++++++-------------------------------
2 files changed, 45 insertions(+), 105 deletions(-)
---
11 years, 4 months
Branch 'f15-branch' - 3 commits - Makefile tools/livecd-iso-to-disk.sh
by Brian C. Lane
Makefile | 2
tools/livecd-iso-to-disk.sh | 148 +++++++++++++-------------------------------
2 files changed, 45 insertions(+), 105 deletions(-)
New commits:
commit cc6f9fd380e12bb748ed6d942537b7f606090e3e
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon May 7 16:50:24 2012 -0700
Version 15.13
diff --git a/Makefile b/Makefile
index 8002575..cfec31b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 15.12
+VERSION = 15.13
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
commit 73a2e8d77e1bdb10793577e38bc6c0ff6b43b3db
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Thu Apr 12 11:08:15 2012 -0700
fix syntax problem in detectsrctype
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 7a366c1..da5c5d8 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -631,7 +631,7 @@ detectsrctype() {
srctype=live
return
fi
- if [ -e $SRCMNT/images/install.img -o $SRCMNT/isolinux/initrd.img ]; then
+ if [ -e $SRCMNT/images/install.img -o -e $SRCMNT/isolinux/initrd.img ]; then
if [ -n "$packages" ]; then
srctype=installer
else
commit de4b9d0f6bdf3f53d3a596bdb1d6c53351ff4673
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Thu Apr 26 14:43:41 2012 -0700
copy repo data to USB for F17 (#806166)
Fedora 17 runs from the media so repo= cannot be used to mount the same
device for access to the repo so we now copy the repodata from the iso
over to the / of the USB. This requires anaconda-17.23-1 or later.
For releases before F17 the iso is still copied and repo= is setup to
point to it.
This reverts the use of 2 partitions that was used to work around this.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 9d87eb2..7a366c1 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -273,14 +273,11 @@ cleanup() {
sleep 2
[ -d "$SRCMNT" ] && umount $SRCMNT && rmdir $SRCMNT
[ -d "$TGTMNT" ] && umount $TGTMNT && rmdir $TGTMNT
- if [ -n "$REPOMNT" ]; then
- [ -d "$REPOMNT" ] && umount $REPOMNT && rmdir $REPOMNT
- fi
}
exitclean() {
RETVAL=$?
- if [ -d "$SRCMNT" ] || [ -d "$TGTMNT" ] || [ -n "$REPOMNT" ];
+ if [ -d "$SRCMNT" ] || [ -d "$TGTMNT" ];
then
[ "$RETVAL" = 0 ] || echo "Cleaning up to exit..."
cleanup
@@ -419,16 +416,7 @@ createGPTLayout() {
/sbin/parted --script $device mklabel gpt
partinfo=$(LC_ALL=C /sbin/parted --script -m $device "unit MB print" |grep ^$device:)
dev_size=$(echo $partinfo |cut -d : -f 2 |sed -e 's/MB$//')
-
- # Is a 2nd partition needed for package iso?
- if [ -n "$packages" ]; then
- src_size=$(du -s -B 1MB "$SRC" | awk {'print $1;'})
- # iso size + 7% of slop for filesystem metadata
- p2_size=$(($src_size * 107 / 100))
- else
- p2_size=0
- fi
- p1_size=$(($dev_size - 3 - $p2_size))
+ p1_size=$(($dev_size - 3))
if [ $p1_size -le 0 ]; then
echo "Your device isn't big enough to hold $SRC"
@@ -438,11 +426,6 @@ createGPTLayout() {
p1_start=1
p1_end=$(($p1_size + 1))
/sbin/parted -s $device u MB mkpart '"EFI System Partition"' fat32 $p1_start $p1_end set 1 boot on
- if [ $p2_size -gt 0 ]; then
- p2_start=$p1_end
- p2_end=$(($p2_size + $p2_start))
- /sbin/parted -s $device u MB mkpart '"LIVE REPO"' fat32 $p2_start $p2_end
- fi
# Sometimes automount can be _really_ annoying.
echo "Waiting for devices to settle..."
/sbin/udevadm settle
@@ -451,13 +434,6 @@ createGPTLayout() {
umount $TGTDEV &> /dev/null || :
/sbin/mkdosfs -n LIVE $TGTDEV
TGTLABEL="UUID=$(/sbin/blkid -s UUID -o value $TGTDEV)"
-
- if [ $p2_size -gt 0 ]; then
- REPODEV=${device}2
- umount $REPODEV &> /dev/null || :
- /sbin/mkdosfs -n LIVE-REPO $REPODEV
- REPOLABEL="UUID=$(/sbin/blkid -s UUID -o value $REPODEV)"
- fi
}
createMSDOSLayout() {
@@ -472,16 +448,7 @@ createMSDOSLayout() {
/sbin/parted --script $device mklabel msdos
partinfo=$(LC_ALL=C /sbin/parted --script -m $device "unit MB print" |grep ^$device:)
dev_size=$(echo $partinfo |cut -d : -f 2 |sed -e 's/MB$//')
-
- # Is a 2nd partition needed for package iso?
- if [ -n "$packages" ]; then
- src_size=$(du -s -B 1MB "$SRC" | awk {'print $1;'})
- # iso size + 7% of slop for filesystem metadata
- p2_size=$(($src_size * 107 / 100))
- else
- p2_size=0
- fi
- p1_size=$(($dev_size - 3 - $p2_size))
+ p1_size=$(($dev_size - 3))
if [ $p1_size -le 0 ]; then
echo "Your device isn't big enough to hold $SRC"
@@ -491,11 +458,6 @@ createMSDOSLayout() {
p1_start=1
p1_end=$(($p1_size + 1))
/sbin/parted -s $device u MB mkpart primary fat32 $p1_start $p1_end set 1 boot on
- if [ $p2_size -gt 0 ]; then
- p2_start=$p1_end
- p2_end=$(($p2_size + $p2_start))
- /sbin/parted -s $device u MB mkpart primary fat32 $p2_start $p2_end
- fi
# Sometimes automount can be _really_ annoying.
echo "Waiting for devices to settle..."
/sbin/udevadm settle
@@ -508,13 +470,6 @@ createMSDOSLayout() {
umount $TGTDEV &> /dev/null
/sbin/mkdosfs -n LIVE $TGTDEV
TGTLABEL="UUID=$(/sbin/blkid -s UUID -o value $TGTDEV)"
-
- if [ $p2_size -gt 0 ]; then
- REPODEV=${device}2
- umount $REPODEV &> /dev/null || :
- /sbin/mkdosfs -n LIVE-REPO $REPODEV
- REPOLABEL="UUID=$(/sbin/blkid -s UUID -o value $REPODEV)"
- fi
}
createEXTFSLayout() {
@@ -529,16 +484,7 @@ createEXTFSLayout() {
/sbin/parted -s $device mklabel msdos
partinfo=$(LC_ALL=C /sbin/parted -s -m $device "u MB print" |grep ^$device:)
dev_size=$(echo $partinfo |cut -d : -f 2 |sed -e 's/MB$//')
-
- # Is a 2nd partition needed for package iso?
- if [ -n "$packages" ]; then
- src_size=$(du -s -B 1MB "$SRC" | awk {'print $1;'})
- # iso size + 7% of slop for filesystem metadata
- p2_size=$(($src_size * 107 / 100))
- else
- p2_size=0
- fi
- p1_size=$(($dev_size - 3 - $p2_size))
+ p1_size=$(($dev_size - 3))
if [ $p1_size -le 0 ]; then
echo "Your device isn't big enough to hold $SRC"
@@ -548,11 +494,6 @@ createEXTFSLayout() {
p1_start=1
p1_end=$(($p1_size + 1))
/sbin/parted -s $device u MB mkpart primary ext2 $p1_start $p1_end set 1 boot on
- if [ $p2_size -gt 0 ]; then
- p2_start=$p1_end
- p2_end=$(($p2_size + $p2_start))
- /sbin/parted -s $device u MB mkpart primary ext2 $p2_start $p2_end
- fi
# Sometimes automount can be _really_ annoying.
echo "Waiting for devices to settle..."
/sbin/udevadm settle
@@ -568,13 +509,6 @@ createEXTFSLayout() {
fi
$mkfs -L LIVE $TGTDEV
TGTLABEL="UUID=$(/sbin/blkid -s UUID -o value $TGTDEV)"
-
- if [ $p2_size -gt 0 ]; then
- REPODEV=${device}2
- umount $REPODEV &> /dev/null || :
- $mkfs -L LIVE-REPO $REPODEV
- REPOLABEL="UUID=$(/sbin/blkid -s UUID -o value $REPODEV)"
- fi
}
checkGPT() {
@@ -689,9 +623,7 @@ fi
detectsrctype() {
if [[ -e "$SRCMNT/Packages" ]]; then
- # This will cause the source .iso to be copied to a second partiton
- # on the target and the boot args to have repo=... pointing to the iso
- echo "/Packages found, will copy source .iso to target"
+ echo "/Packages found, will copy source packages to target"
packages=1
fi
if [[ -e "$SRCMNT/LiveOS/squashfs.img" ]]; then
@@ -960,10 +892,6 @@ fi
TGTMNT=$(mktemp -d /media/tgttmp.XXXXXX)
mount $mountopts $TGTDEV $TGTMNT || exitclean
-if [ -n "$REPODEV" ]; then
- REPOMNT=$(mktemp -d /media/repotmp.XXXXXX)
- mount $mountopts $REPODEV $REPOMNT || exitclean
-fi
trap exitclean SIGINT SIGTERM
@@ -1121,23 +1049,6 @@ if [ "$srctype" = "live" -a -z "$skipcopy" ]; then
sync
fi
-# DVD installer copy
-# Also copies over the source .iso if the image is a new-style LiveOS DVD (F17+)
-if [ \( "$srctype" = "installer" -o "$srctype" = "netinst" \) ]; then
- echo "Copying DVD image to target device."
- mkdir -p $TGTMNT/images/
- if [ "$imgtype" = "install" ]; then
- copyFile $SRCMNT/images/install.img $TGTMNT/images/install.img || exitclean
- fi
-fi
-
-# Copy source .iso to repo partition
-if [ -n "$packages" -a -z "$skipcopy" ]; then
- echo "Copying $SRC"
- copyFile "$SRC" $REPOMNT/
- sync
-fi
-
# Adjust syslinux sources for replication of installed images
# between filesystem types.
if [[ -d $SRCMNT/isolinux/ ]]; then
@@ -1155,6 +1066,7 @@ BOOTCONFIG=$TGTMNT/$SYSLINUXPATH/isolinux.cfg
# Set this to nothing so sed doesn't care
BOOTCONFIG_EFI=
if [ -n "$efi" ]; then
+ echo "Setting up $EFI_BOOT"
cp $SRCMNT$EFI_BOOT/* $TGTMNT$EFI_BOOT
# FIXME
@@ -1194,7 +1106,43 @@ if [ -n "$efi" ]; then
fi
fi
-if [[ live == $srctype ]]; then
+# DVD installer copy
+if [ -z "$skipcopy" -a \( "$srctype" = "installer" -o "$srctype" = "netinst" \) ]; then
+ echo "Copying DVD image to target device."
+ mkdir -p $TGTMNT/images/
+ if [ "$imgtype" = "install" ]; then
+ for img in install.img updates.img product.img; do
+ if [ -e $SRCMNT/images/$img ]; then
+ copyFile $SRCMNT/images/$img $TGTMNT/images/$img || exitclean
+ fi
+ done
+ fi
+fi
+
+# Copy packages over.
+# Before Fedora17 we could copy the .iso and setup a repo=
+# F17 and later look for repodata on the source media.
+# The presence of packages and LiveOS indicates F17 or later.
+if [ -n "$packages" -a -z "$skipcopy" ]; then
+ if [ "$srctype" != "live" ]; then
+ echo "Copying $SRC to device"
+ copyFile "$SRC" "$TGTMNT/"
+
+ # Setup a repo= to point to the .iso
+ sed -i -e "s;initrd.img;initrd.img repo=hd:$TGTLABEL:/;g" $BOOTCONFIG
+ if [ -n "$efi" ]; then
+ sed -i -e "s;vmlinuz;vmlinuz repo=hd:$TGTLABEL:/;g" $BOOTCONFIG_EFI
+ fi
+ else
+ echo "Copying package data from $SRC to device"
+ rsync --inplace -rLDP --exclude EFI/ --exclude images/ --exclude isolinux/ \
+ --exclude TRANS.TBL --exclude LiveOS/ "$SRCMNT/" "$TGTMNT/"
+ fi
+ echo "Waiting for device to finish writing"
+ sync
+fi
+
+if [ "$srctype" = "live" ]; then
# Copy this installer script.
cp -fTp "$thisScriptpath" $TGTMNT/$LIVEOS/livecd-iso-to-disk &> /dev/null
@@ -1230,14 +1178,6 @@ if [ -n "$efi" ]; then
sed -i -e "s;findiso;;g" $BOOTCONFIG_EFI
fi
-# Add repo= to point to the source .iso with the packages
-if [[ -n "$packages" ]]; then
- sed -i -e "s;initrd.img;initrd.img repo=hd:$REPOLABEL:/;g" $BOOTCONFIG
- if [ -n "$efi" ]; then
- sed -i -e "s;vmlinuz;vmlinuz repo=hd:$REPOLABEL:/;g" $BOOTCONFIG_EFI
- fi
-fi
-
# DVD Installer for netinst
if [ "$srctype" != "live" ]; then
if [ "$imgtype" = "install" ]; then
11 years, 4 months
Space available 8GB USB Device
by Cadu
Hi guys!
I'm having problems of space when i try add more packages in live image.
I'm using the command:
livecd-iso-to-disk-oc --noverify --home-size-mb 2048 --overlay-size-mb 2048
${ISO} ${LOOP}
*
getdisk DEV = /dev/loop2
Unable to fit live image + overlay on available space on USB
stick
+ Size of live image: 2986
+ Overlay size: 2048
+ Home overlay size: 2048
---------------------------
= Requested: 7082- Available: 7075
---------------------------
= To fit, free or decrease requested size total by: 7
Cleaning up to exit...*
*
*
My question is: Which parameter can set the total space of my 8G pendrive?
Why the space is limited in 7075?
Thanks a lot!
--
[]'s
Carlos Eduardo
*
Seja a mudança que você deseja ver no mundo.*
"Mahatma Gandhi"
**** <http://www.frasesdodia.com.br/archives/80>
11 years, 4 months
is liveusb-creator working for you?
by Valent Turkovic
Hi,
I created Fedora 16 respin (with latest packages from updates repo)
and custom remix iso images but when I transfer iso image to usb with
liveusb-creator or via dd command I just get black screen on boot, not
even grub menu comes up :(
Are others seeing this also or is everything working out for you?
I tried both 32 and 64 bit versions, and it is the same on both.
Cheers,
Valent.
--
follow me - www.twitter.com/valentt & http://kernelreloaded.blog385.com
linux, anime, spirituality, wireless, scuba, linuxmce smart home, zwave
ICQ: 2125241, Skype: valent.turkovic, MSN: valent.turkovic(a)hotmail.com
11 years, 4 months