My live CD has no boot option in the menu
by Richard W.M. Jones
Can anyone see anything obviously wrong in the attached kickstart?
The live CD appears to build fine (tried both F20 & Rawhide versions
of livecd-creator).
However when booted in qemu:
qemu-system-x86_64 -m 2048 -cdrom livecd-minimal-201405171054.iso -boot d
it only has the "Troubleshooting" menu. There is no other boot menu,
nor does it autoboot (I waited quite a while), nor is there any
visible indication that it is going to autoboot, eg. no countdown.
Also attached is the isolinux.cfg file extracted from the ISO.
Any ideas here?
Rich.
PS. If you want to try building from the kickstart, you will have to
remove or change the --proxy option from the repo lines.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
9 years, 6 months
Can not get persistence
by ToddAndMargo
Hi All,
Xfce 4.8
Scientific Linux 6.4, 64 bit
livecd-tools-13.4.5-1.el6.x86_64
For the life of me I can not get any persistence (things
don't stay between reboots).
What am I doing wrong ("#" is my boot prompt)?
# fdisk /dev/sdc d1, n, p1, t, c, w (use type "C" for fat32)
# mkdosfs -v -c /dev/sdc1
# livecd-iso-to-disk --overlay-size-mb 4095 --format --reset-mbr
/home/kvm/Fedora-Live-Xfce-x86_64-20-1.iso /dev/sdc1
Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9 years, 6 months
RHEL overlay error
by ToddAndMargo
Hi,
# rpm -qa \*livecd\*
livecd-tools-13.4.5-1.el6.x86_64
# uname -r
2.6.32-431.17.1.el6.x86_64
# cat /etc/redhat-release
Scientific Linux release 6.5 (Carbon)
Would you guys please fix this;?
# livecd-iso-to-disk --overlay-size-mb 4095
/home/kvm/Fedora-Live-Xfce-x86_64-20-1.iso /dev/sdc1
Verifying image...
/home/kvm/Fedora-Live-Xfce-x86_64-20-1.iso:
4082da8bab26aa7b4923e691b89437a2
Fragment sums: f11e99a7ac615845eaf5319734bf324a55842a7c09a524936d8545c9f721
Fragment count: 20
Press [Esc] to abort check.
Checking: 100.0%
The media check is complete, the result is: PASS.
It is OK to use this media.
Can't have an overlay of 2048MB or greater on VFAT
Cleaning up to exit...
Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9 years, 6 months
imgcreate/live.py
by Brian C. Lane
imgcreate/live.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit f9b65f9618ab4e6e4f0ae874785f22224f187e3b
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Fri May 16 13:59:57 2014 -0700
Add lorax ppc config files to search path
ppc needs the config files from lorax. This adds the path to
__copy_boot_files
diff --git a/imgcreate/live.py b/imgcreate/live.py
index f0d8809..1001c86 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -847,8 +847,9 @@ class ppcLiveImageCreator(LiveImageCreatorBase):
LiveImageCreatorBase._get_excluded_packages(self)
def __copy_boot_file(self, destdir, file):
- for dir in ["/usr/share/ppc64-utils",
- "/usr/lib/anaconda-runtime/boot"]:
+ for dir in [self._instroot+"/usr/share/ppc64-utils",
+ self._instroot+"/usr/lib/anaconda-runtime/boot",
+ "/usr/share/lorax/config_files/ppc"]:
path = self._instroot + dir + "/" + file
if not os.path.exists(path):
continue
9 years, 6 months
2 commits - tools/livecd-iso-to-disk.sh
by Brian C. Lane
tools/livecd-iso-to-disk.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit a2fd2b101d5a5cc8b785e32af549c1da78dc6fb4
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon May 5 11:42:21 2014 -0700
Use inst.repo and inst.stage2
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 28b5a36..bca3286 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -1196,9 +1196,9 @@ if [ -n "$packages" -a -z "$skipcopy" ]; then
copyFile "$SRC" "$TGTMNT/"
# Setup a repo= to point to the .iso
- sed -i -e "s;initrd.img;initrd.img repo=hd:$TGTLABEL:/;g" $BOOTCONFIG
+ sed -i -e "s;initrd.img;initrd.img inst.repo=hd:$TGTLABEL:/;g" $BOOTCONFIG
if [ -n "$efi" ]; then
- sed -i -e "s;vmlinuz;vmlinuz repo=hd:$TGTLABEL:/;g" $BOOTCONFIG_EFI
+ sed -i -e "s;vmlinuz;vmlinuz inst.repo=hd:$TGTLABEL:/;g" $BOOTCONFIG_EFI
fi
else
echo "Copying package data from $SRC to device"
@@ -1262,13 +1262,13 @@ fi
# DVD Installer for netinst
if [ "$srctype" != "live" ]; then
if [ "$imgtype" = "install" ]; then
- sed -i -e "s;initrd.img;initrd.img stage2=hd:$TGTLABEL:/images/install.img;g" $BOOTCONFIG
+ sed -i -e "s;initrd.img;initrd.img inst.stage2=hd:$TGTLABEL:/images/install.img;g" $BOOTCONFIG
if [ -n "$efi" ]; then
- sed -i -e "s;vmlinuz;vmlinuz stage2=hd:$TGTLABEL:/images/install.img;g" $BOOTCONFIG_EFI
+ sed -i -e "s;vmlinuz;vmlinuz inst.stage2=hd:$TGTLABEL:/images/install.img;g" $BOOTCONFIG_EFI
fi
else
# The initrd has everything, so no stage2
- sed -i -e "s;stage2=\S*;;g" $BOOTCONFIG $BOOTCONFIG_EFI
+ sed -i -e "s;\S*stage2=\S*;;g" $BOOTCONFIG $BOOTCONFIG_EFI
fi
fi
commit 5a50f0e186423cb3c509ea4af67b52c4bcc373f9
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon May 5 11:21:52 2014 -0700
Use rd.live.overlay instead of overlay
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 696407c..28b5a36 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -1291,7 +1291,7 @@ if [ "$overlaysizemb" -gt 0 ]; then
dd if=/dev/null of=$TGTMNT/$LIVEOS/$OVERFILE count=1 bs=1M seek=$overlaysizemb
fi
fi
- sed -i -e "s/r*d*.*live.*ima*ge*/& overlay=${TGTLABEL}/"\
+ sed -i -e "s/r*d*.*live.*ima*ge*/& rd.live.overlay=${TGTLABEL}/"\
$BOOTCONFIG $BOOTCONFIG_EFI
sed -i -e "s/\ ro\ /\ rw\ /" $BOOTCONFIG $BOOTCONFIG_EFI
fi
9 years, 7 months
Is overlay-size-mb compatible with format and reset-mbr-
by ToddAndMargo
Hi All,
Xfce 4.8
Scientific Linux 6.4, 64 bit
livecd-tools-13.4.5-1.el6.x86_64
Can these guys be all on the same command line and
persistence still work?
--overlay-size-mb 4095 --format --reset-mbr
Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9 years, 7 months
Branch 'rhel6-branch' - imgcreate/kickstart.py
by Brian C. Lane
imgcreate/kickstart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9c1868bf39af0d23d58e3aa184345de810443310
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Fri May 2 15:54:42 2014 -0700
fix firewalls being reset when setting selinux state from imgcreate
Move the patch for this from pkg-git into upstream.
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 04191b8..f50a9b8 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -175,7 +175,7 @@ class FirewallConfig(KickstartConfig):
def apply(self, ksfirewall):
if not os.path.exists(self.path("/usr/sbin/lokkit")):
return
- args = ["/usr/sbin/lokkit", "-f", "--quiet", "--nostart"]
+ args = ["/usr/sbin/lokkit", "--quiet", "--nostart"]
if ksfirewall.enabled:
args.append("--enabled")
9 years, 7 months
Changes to 'refs/tags/livecd-tools-13.4.6'
by Brian C. Lane
Tag 'livecd-tools-13.4.6' created by Brian C. Lane <bcl(a)redhat.com> at 2014-05-02 22:17 +0000
Tag as livecd-tools-13.4.6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEVAwUAU2QZhhF+jBaO/jp/AQKDawf/RQk6B733GqIHDJ4KG4Oto5eyXzaQ9oVj
7gDe+JS0cjmdhBsiCawVP7QnI9hlBh4nE5GiC7w9r5WT91S2zPa9sxZyDZf2XOAN
FE9YcRARZd59K1S6DRn2YccW6C0u8t5J9UDd+N0VddM/s2gYf8zIf2QSs49PN5ZG
JB05xLneNagJKorEToEsupdUZcg3SHxc6HhXhN5+6ZAv/Hh8nZvBR22r86O5l4mS
4IymJ3OmbdFVyhn209lJm8pJDuwzPLXjDtPZwAViMGO8L4zOR/wMfded6mlynGuM
w29fozYnDQRhpBYwypMcC8PqD/yEmAszNz+MG9Fb7UZKWoz6Q86X6Q==
=357X
-----END PGP SIGNATURE-----
Changes since livecd-tools-13.4.5:
Brian C. Lane (4):
Change vfat limit from 2047 to 4095
correctly check for selinux state (#896610)
edit-livecd: Remove rebuild_iso_symlinks (#928620)
Version 13.4.6
---
Makefile | 2 +-
docs/livecd-iso-to-disk.pod | 4 ++--
imgcreate/kickstart.py | 3 ++-
tools/edit-livecd | 14 --------------
tools/livecd-iso-to-disk.sh | 12 ++++++------
5 files changed, 11 insertions(+), 24 deletions(-)
---
9 years, 7 months
Branch 'rhel6-branch' - 3 commits - imgcreate/kickstart.py Makefile tools/edit-livecd
by Brian C. Lane
Makefile | 2 +-
imgcreate/kickstart.py | 3 ++-
tools/edit-livecd | 14 --------------
3 files changed, 3 insertions(+), 16 deletions(-)
New commits:
commit 673b12fc5411c2db2b53f3a7e7660f85ae1627eb
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Fri May 2 15:17:32 2014 -0700
Version 13.4.6
diff --git a/Makefile b/Makefile
index 7946173..2bb3fcf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 13.4.5
+VERSION = 13.4.6
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
commit 4ae89e618118ef2b26d59cc93d074bb0005481ca
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Fri May 2 15:07:44 2014 -0700
edit-livecd: Remove rebuild_iso_symlinks (#928620)
There is no need to modify any of these files, just leave them as-is
from the original image.
Resolved: rhbz#928620
diff --git a/tools/edit-livecd b/tools/edit-livecd
index 163589c..673da89 100755
--- a/tools/edit-livecd
+++ b/tools/edit-livecd
@@ -630,19 +630,6 @@ def get_fsvalue(filesystem, tag):
return fs_type.rstrip()
-def rebuild_iso_symlinks(isodir):
- # remove duplicate files and rebuild symlinks to reduce iso size
- efi_vmlinuz = "%s/EFI/BOOT/vmlinuz0" % isodir
- isolinux_vmlinuz = "%s/isolinux/vmlinuz0" % isodir
- efi_initrd = "%s/EFI/BOOT/initrd0.img" % isodir
- isolinux_initrd = "%s/isolinux/initrd0.img" % isodir
-
- if os.path.exists(efi_vmlinuz):
- os.remove(efi_vmlinuz)
- os.remove(efi_initrd)
- os.symlink(isolinux_vmlinuz,efi_vmlinuz)
- os.symlink(isolinux_initrd,efi_initrd)
-
def main():
# LiveOS set to <LIVEIMG.src>
(LiveOS, options) = parse_options(sys.argv[1:])
@@ -699,7 +686,6 @@ def main():
print "Launching shell. Exit to continue."
print "----------------------------------"
editor.launch_shell()
- rebuild_iso_symlinks(editor._LiveImageCreatorBase__isodir)
editor.unmount()
editor.package(output)
logging.info("%s.iso saved to %s" % (editor.name, output))
commit 732095480dd179482af21b953eebebb35ad950f9
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Wed Jan 23 15:50:45 2013 -0800
correctly check for selinux state (#896610)
The check for selinux_enabled was incorrect. selinux is enabled
when in enforcing or permissive mode.
Resolves: rhbz#896610
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 4abba6b..04191b8 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -564,4 +564,5 @@ def get_post_scripts(ks):
return scripts
def selinux_enabled(ks):
- return ks.handler.selinux.selinux == ksconstants.SELINUX_ENFORCING
+ return ks.handler.selinux.selinux in (ksconstants.SELINUX_ENFORCING,
+ ksconstants.SELINUX_PERMISSIVE)
9 years, 7 months