Thanks for livecd-tools patches
by Bruno Wolff III
I'd like to thank all of the people that contributed patches on the list
or in bugs for livecd-tools. Most of these are now in 034. A few I just
wasn't able to get into shape quickly enough. I also appreciate the early
testing that caught a few mistakes I made.
13 years, 6 months
imgcreate/live.py
by Bruno Wolff III
imgcreate/live.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6f79b742038a5a04cc26c54cb3449448a087fd91
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Tue Sep 14 20:45:33 2010 -0500
Fix bad path brought in using old patch. Thanks Spot!
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 9153e10..fcb7198 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -372,7 +372,7 @@ class x86LiveImageCreator(LiveImageCreatorBase):
def __copy_syslinux_background(self, isodest):
background_path = self._instroot + \
- "/usr/share/anaconda/syslinux-vesa-splash.jpg"
+ "/usr/share/anaconda/boot/syslinux-vesa-splash.jpg"
if not os.path.exists(background_path):
# fallback to F13 location
13 years, 6 months
tools/livecd-iso-to-disk.sh
by Bruno Wolff III
tools/livecd-iso-to-disk.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 20838d345bfb2942eafad4661caa9f1d6b3b5645
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Tue Sep 14 07:28:15 2010 -0500
Still needed to fix one /dev/loop* .
Thanks Marc.
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 00f201a..329ce4f 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -99,7 +99,7 @@ resetMBR() {
}
checkMBR() {
- if [[ "$DEV" =~ "/dev/loop*" ]]; then
+ if isdevloop "$DEV"; then
return 0
fi
getdisk $1
13 years, 6 months
[PATCH] Fixed buggy [[ "$DEV" =~ "/dev/loop*" ]] tests with new isdevloop() function
by Marc Herbert
This was accidentally working in old bash versions, not anymore in
Fedora 13's bash 4.1.7. Now using proper prefix matching instead of
the previous regex matching disguised as pattern matching.
---
tools/livecd-iso-to-disk.sh | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index f4d0855..846fa73 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -39,10 +39,15 @@ exitclean() {
exit 1
}
+isdevloop()
+{
+ [ x"${1#/dev/loop}" != x"$1" ]
+}
+
getdisk() {
DEV=$1
- if [[ "$DEV" =~ "/dev/loop*" ]]; then
+ if isdevloop "$DEV"; then
device="$DEV"
return
fi
@@ -65,7 +70,7 @@ getdisk() {
}
resetMBR() {
- if [[ "$DEV" =~ "/dev/loop*" ]]; then
+ if isdevloop "$DEV"; then
return
fi
getdisk $1
@@ -94,7 +99,7 @@ resetMBR() {
}
checkMBR() {
- if [[ "$DEV" =~ "/dev/loop*" ]]; then
+ if isdevloop "$DEV"; then
return 0
fi
getdisk $1
@@ -124,7 +129,7 @@ checkPartActive() {
if [ "$dev" = "$device" ]; then
return
fi
- if [[ "$dev" =~ "/dev/loop*" ]]; then
+ if isdevloop "$dev"; then
return
fi
--
1.7.2
13 years, 6 months
imgcreate/live.py
by Bruno Wolff III
imgcreate/live.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fd2df98902f7225587d5305f2f04e35ae23647a7
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Mon Sep 13 22:33:41 2010 -0500
Fix label for basic video boot menu item
diff --git a/imgcreate/live.py b/imgcreate/live.py
index e4e0c2e..9153e10 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -519,7 +519,7 @@ menu hiddenrow 5
fslabel = self.fslabel,
isofstype = "auto",
liveargs = kern_opts,
- long = long,
+ long = long + " (Basic Video)",
short = "linux" + index,
basicvideo = basic,
xdriver = xdriver,
13 years, 6 months
tools/livecd-iso-to-disk.sh
by Bruno Wolff III
tools/livecd-iso-to-disk.sh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
New commits:
commit 09e2a07fca5cb43ee19afe500c75a5ea20ae7114
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Mon Sep 13 21:55:34 2010 -0500
Missing parts of regex fix patch
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index 6023509..00f201a 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -70,7 +70,7 @@ getdisk() {
}
resetMBR() {
- if [[ "$DEV" =~ "/dev/loop*" ]]; then
+ if isdevloop "$DEV"; then
return
fi
getdisk $1
@@ -129,7 +129,7 @@ checkPartActive() {
if [ "$dev" = "$device" ]; then
return
fi
- if [[ "$dev" =~ "/dev/loop*" ]]; then
+ if isdevloop "$DEV"; then
return
fi
@@ -189,7 +189,11 @@ createMSDOSLayout() {
partinfo=$(LC_ALL=C /sbin/parted --script -m $device "unit b print" |grep ^$device:)
size=$(echo $partinfo |cut -d : -f 2 |sed -e 's/B$//')
/sbin/parted --script $device unit b mkpart primary fat32 17408 $(($size - 17408)) set 1 boot on
- USBDEV=${device}1
+ if ! isdevloop "$DEV"; then
+ USBDEV=${device}1
+ else
+ USBDEV=${device}
+ fi
# Sometimes automount can be _really_ annoying.
echo "Waiting for devices to settle..."
/sbin/udevadm settle
13 years, 6 months
mkbackup.py - Development of script to make LiveCD/DVD images from the running system
by Jasper Hartline
Here is what I have done so far on mkbackup.py
For anyone interested in knowing how this will be done..
I think I will use dump and restore to produce the Live images for now
which will be limited to Ext2/3/4
but I am glad to hear suggestions about supporting other filesystems
and or how to use any other tools.s
This should be interesting to see how it works as a backup media.
Being Live-runnable and installable later with much much easy using Anaconda.
The file is available at this URL and one attached. The on online will
be updated periodically.
Then I'll attach it to the mailing list here periodically too.
http://autopsy.liveprojects.info/scripts/mkbackup.py
13 years, 6 months
imgcreate/live.py
by Bruno Wolff III
imgcreate/live.py | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
New commits:
commit ef154abad01d221f1917c58946926770cd80f5fa
Author: Bruno Wolff III <bruno(a)wolff.to>
Date: Mon Sep 13 20:00:44 2010 -0500
Revise basic video change to fix issue with default menu item
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 1e0f117..e4e0c2e 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -452,24 +452,12 @@ menu hiddenrow 5
template = """label %(short)s
menu label %(long)s
kernel vmlinuz%(index)s
- append initrd=initrd%(index)s.img root=%(rootlabel)s rootfstype=%(isofstype)s %(liveargs)s %(extra)s
-
-
- label %(short)s
- menu label %(long)s %(basicvideo)s
- kernel vmlinuz%(index)s
append initrd=initrd%(index)s.img root=%(rootlabel)s rootfstype=%(isofstype)s %(liveargs)s %(xdriver)s %(extra)s
"""
else:
template = """label %(short)s
menu label %(long)s
kernel mboot.c32
- append xen%(index)s.gz --- vmlinuz%(index)s root=%(rootlabel)s rootfstype=%(isofstype)s %(liveargs)s %(extra)s --- initrd%(index)s.img
-
-
- label %(short)s
- menu label %(long)s %(basicvideo)s
- kernel mboot.c32
append xen%(index)s.gz --- vmlinuz%(index)s root=%(rootlabel)s rootfstype=%(isofstype)s %(liveargs)s %(xdriver)s %(extra)s --- initrd%(index)s.img
"""
return template % args
@@ -504,7 +492,7 @@ menu hiddenrow 5
# Basic video driver
basic = "system with basic video driver"
- xdriver = "xdriver=vesa"
+ xdriver = "xdriver=vesa nomodeset"
# tell dracut not to ask for LUKS passwords or activate mdraid sets
@@ -519,14 +507,25 @@ menu hiddenrow 5
liveargs = kern_opts,
long = long,
short = "linux" + index,
- basicvideo = basic,
- xdriver = xdriver,
+ basicvideo = "",
+ xdriver = "",
extra = "",
index = index)
if default:
cfg += "menu default\n"
+ cfg += self.__get_image_stanza(is_xen, isDracut,
+ fslabel = self.fslabel,
+ isofstype = "auto",
+ liveargs = kern_opts,
+ long = long,
+ short = "linux" + index,
+ basicvideo = basic,
+ xdriver = xdriver,
+ extra = "",
+ index = index)
+
if checkisomd5:
cfg += self.__get_image_stanza(is_xen, isDracut,
fslabel = self.fslabel,
13 years, 6 months
Development of biarch live CD script.
by Richard Shaw
On Fri, Aug 20, 2010 at 6:05 AM, Jasper Hartline
<jasper.hartline(a)gmail.com> wrote:
> On Thu, Aug 19, 2010 at 11:15 PM, Jasper Hartline
> <jasper.hartline(a)gmail.com> wrote:
>> On Thu, Aug 19, 2010 at 3:20 PM, Jasper Hartline
>
>> I'll keep workking with this and update you with the latest, as soon
>> as I get more done.
>>
>
> Well. I have failed to decrypt the FileSystem class for pyparted.
> It seems you create a format object
> and then pass that to Partition, like this.. below
> however, upon looking at the loop device and using hexdump, and dumpe2fs
> and trying to mount it, etc. It seems it is corrupt or is not a valid
> filesystem.
>
> So I'm not sure what is going on.
> Also, to get the size we can just use size divided by 512.
> That gives us the maximum number of sectors minus 1 for the MBR.
>
> #!/usr/bin/python
>
> import os
> import sys
> import parted
>
>
> size = os.stat("/tmp/file").st_size
> sectors = size / 512 - 1
>
> device = parted.Device(path="/dev/loop0")
> disk = parted.freshDisk(device, 'msdos')
>
> start = 2
> end = sectors
>
> new_geom = parted.Geometry(device=device,
> start=start,
> end=end)
>
> format = parted.FileSystem(type="ext2", geometry=new_geom).create()
>
> partition = parted.Partition(disk=disk,
> fs=format,
> type=82,
> geometry=new_geom)
>
>
> constraint = parted.Constraint(exactGeom=new_geom)
>
>
>
>
> disk.addPartition(partition=partition,
> constraint=constraint)
>
>
> disk.commit()
>
> So here attached is what I have so far, it is what I would like to
> continue to work on and
> fox the format routing when we figure out how to use pyparted properly.
>
> So far I have it setting up correctly and the master boot record is proper.
> /dev/loop0 on /tmp/tmprjsmh3 type ext3 (rw)
> /dev/loop1 on /tmp/tmpKTCs75 type iso9660 (rw)
> /dev/loop2 on /tmp/tmpLi76ER type iso9660 (rw)
> [root@localhost tmp]# ls -l /tmp/tmprjsmh3
> total 28
> drwx------ 2 root root 16384 Aug 20 03:54 lost+found
> drwxr-xr-x 2 root root 4096 Aug 20 03:54 syslinux
> drwxr-xr-x 2 root root 4096 Aug 20 03:54 x64
> drwxr-xr-x 2 root root 4096 Aug 20 03:54 x86
> [root@localhost tmp]#
I'll keep banging away at it. I'm digging through the pyparted source.
Richard
13 years, 6 months
Changes to 'refs/tags/livecd-tools-034'
by Bruno Wolff III
Tag 'livecd-tools-034' created by Bruno Wolff III <bruno(a)wolff.to> at 2010-09-12 03:09 +0000
livecd-tools-034
Changes since livecd-tools-033:
Bill Nottingham (1):
Set default boot language for USB images to the current locale.
Bruno Wolff III (8):
Replace "zlib" with "gzip" to fix thinko with the compressor name.
Try normal umount before falling back to lazy umount.
Don't create sparse files one byte too large.
Change --skipcopy to not overwrite other large areas.
Fix issue with using netinst ISOs.
Allow use of stage2 for repos to help with netinst ISOs.
Handle partition devices that have a separator character in the name.
Change version to 034.
Daiki Ueno (1):
Set up locale or there can be problems handling non-ascii characters.
Daniel Walsh (1):
Allow creation of SELinux enabled LiveCD from an SELinux disabled host (bz 519709)
Jasper Hartline (3):
Add support for ext4 now that syslinux supports it.
Initial checkin of a new expermiental tool for live backup images.
Updated version of mkbiarch with docs and install.
Jasper O'neal Hartline (2):
Display progress information when copying image to usb.
Add basic video driver option to syslinux/isolinux configuration.
Marc Herbert (1):
Fix for enumerating loop devices using bash 4.1.7.
Richard Shaw (1):
A new experimental script for creating live images for both i686 and x86_64.
Ville Skyttä (1):
Use grep instead of depreceated egrep.
---
Makefile | 4
docs/livecd-creator.pod | 4
docs/livecd-iso-to-disk.pod | 4
docs/mkbiarch.8 | 89 ++++++++++++
imgcreate/creator.py | 4
imgcreate/fs.py | 31 +++-
imgcreate/kickstart.py | 5
imgcreate/live.py | 22 +++
imgcreate/yuminst.py | 2
tools/livecd-creator | 4
tools/livecd-iso-to-disk.sh | 150 +++++++++++++++++----
tools/mkbackup.py | 99 ++++++++++++++
tools/mkbiarch.py | 303 ++++++++++++++++++++++++++++++++++++++++++++
13 files changed, 672 insertions(+), 49 deletions(-)
---
13 years, 6 months