shutting down f19-livecd corrups raid1
by Joshua C.
My raid1 gets corrupted _everytime_ I shut down a
f19-kde-livecd-image. I used kernel.f19 and mdadm.f19 in a f17-livecd
and everything works fine. So these two are not the problem.
What should I look at? maybe dracut???
PS: Testing and experimenting isn't a good idea here because it takes
almost 3 hours for the raid to rebuild...
--
--joshua
10 years
screen resolution in fallback mode
by Turtle Wabbit
I noticed recently that Fedora 18 in fallback mode does not give many
choices for screen resolution. Where, on the same machine, Fedora 17 in
fallback mode will present me with more choices. Why is F18 limiting my
choices? Is there a way I can change this?
10 years, 3 months
Changes to 'refs/tags/livecd-tools-20.1'
by Brian C. Lane
Tag 'livecd-tools-20.1' created by Brian C. Lane <bcl(a)redhat.com> at 2013-11-18 22:44 +0000
Tag as livecd-tools-20.1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
iQEVAwUAUoqYVBF+jBaO/jp/AQKTpQf/fDigIwUVFV+zTWHfwiGQ+SQG0CVhzLDU
rGAjWEI4C5ClHFYVIXau+ntJhyhZuB6qLxC3ryvSmJUmMReRDVF8LfzrMwNBaP8i
GzRBxKcwe0KC4q9gxoTRwxR4DArrPGbjmvdpsT4dawSOxZ9uMKhWBvtJEK+/iul6
tr2kOqNPX5spZzNIKu+XdlcC0uT7l3Zf5XHcwq8bt7vTYvbX2ElpEym4MMx+K7UR
dNQL3XEsuBmErWsjuYowB1RvyeldFDE5KklPzyoKNtKDeAybnf0Pt5GyufhDXNDi
0eAYi9bLqY0NOFH8BCA4PnRX4tuy0IegoRrMTYiby5ntq/wtKbHPVQ==
=bpmZ
-----END PGP SIGNATURE-----
Changes since livecd-tools-20.0:
Adam Williamson (3):
drop 'xdriver=vesa' from basic graphics mode parameters (per ajax)
make UEFI boot menu resemble the BIOS and non-live boot menus more
add 'troubleshooting' submenu with 'basic graphics mode' to UEFI boot menu
Bill Nottingham (2):
Don't use mkfs.extN options for any filesystem types.
Ensure filesystem modules end up in the live image initramfs.
Brian C. Lane (3):
Change vfat limit from 2047 to 4095 (#995552)
liveimage-mount: add missing import
Version 20.1
Helio Chissini de Castro (1):
litd: Add --label option to override LIVE label
---
Makefile | 2 -
docs/livecd-iso-to-disk.pod | 4 +--
imgcreate/fs.py | 15 +++++++++-----
imgcreate/live.py | 20 ++++++++++++++----
tools/livecd-iso-to-disk.sh | 47 ++++++++++++++++++++++++++------------------
tools/liveimage-mount | 1
6 files changed, 57 insertions(+), 32 deletions(-)
---
10 years, 4 months
Changes to 'refs/tags/livecd-tools-20.0'
by Brian C. Lane
Tag 'livecd-tools-20.0' created by Brian C. Lane <bcl(a)redhat.com> at 2013-08-07 18:27 +0000
Tag as livecd-tools-20.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
iQEVAwUAUgKRqRF+jBaO/jp/AQJN5wf/UzFVt3p9hcFAbEUfwtusihIjjZmif/Xx
MTVH89Ygge7VBcgKMrtC0yHtt8nOC23tg6kk5vubMgj1oUw5GThgtP99vsUvW5FG
FprjVwJnXn/k/WqnNfzLzTR0sD1zqd8fRheM1zoDL7u0KyCJeqeKTNe2hkMebPur
h4d+rjn30d9VKpXHs7YGfoKOwTnPpzmhzHVlpaePnA7nwp3qcE/ksoQu65uEwqbv
aEmCoGv75Jt6HCmyJCNuejqPiepwAnkmA9U/ETc8sAqSfdzlYGYx5DJpeWwk1gGY
Wjx7xNahiSobWnf/VPPpxpD7sstCA/3QtGbezeEE1YBotVV/e10Kyg==
=Yj1O
-----END PGP SIGNATURE-----
Changes since livecd-tools-19.6:
Brian C. Lane (1):
Version 20.0
Mathieu Bridon (1):
Install docs in unversioned doc directory (#992144)
---
Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
10 years, 4 months
Makefile
by Brian C. Lane
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 677d50b552e54fc24d62e1fa80d65d97c7b6aebb
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Mon Nov 18 14:44:15 2013 -0800
Version 20.1
diff --git a/Makefile b/Makefile
index 16fe3f1..ce4e5e0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION = 20.0
+VERSION = 20.1
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
10 years, 4 months
3 commits - imgcreate/live.py
by Brian C. Lane
imgcreate/live.py | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
New commits:
commit 5c6835528ef3b6d4f7891676d9933663f4d3ac18
Author: Adam Williamson <awilliam(a)redhat.com>
Date: Fri Nov 15 09:54:27 2013 -0800
add 'troubleshooting' submenu with 'basic graphics mode' to UEFI boot menu
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 2cd4178..7f2d639 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -791,6 +791,16 @@ search --no-floppy --set=root -l '%(isolabel)s'
long = "Test this media & start " + self.product,
extra = "rd.live.check",
index = index)
+ cfg += """
+submenu 'Troubleshooting -->' {
+"""
+ cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
+ liveargs = kernel_options,
+ long = "Start " + self.product + " in basic graphics mode",
+ extra = "nomodeset", index = index)
+
+ cfg+= """}
+"""
break
return cfg
commit cad74f5842214f6ae4288aa9bd443b18202a7df6
Author: Adam Williamson <awilliam(a)redhat.com>
Date: Fri Nov 15 09:54:26 2013 -0800
make UEFI boot menu resemble the BIOS and non-live boot menus more
Use product name instead of kernel name, and make "media check & boot" rather
than "just boot" the default.
diff --git a/imgcreate/live.py b/imgcreate/live.py
index af78061..2cd4178 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -734,7 +734,7 @@ menu end
def __get_basic_efi_config(self, **args):
return """
-set default="0"
+set default="1"
function load_video {
insmod efi_gop
@@ -783,12 +783,12 @@ search --no-floppy --set=root -l '%(isolabel)s'
continue
cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
liveargs = kernel_options,
- long = name,
+ long = "Start " + self.product,
extra = "", index = index)
if checkisomd5:
cfg += self.__get_efi_image_stanza(fslabel = self.fslabel,
liveargs = kernel_options,
- long = "Verify and Boot " + name,
+ long = "Test this media & start " + self.product,
extra = "rd.live.check",
index = index)
break
commit 739c69f0ccaee0a25ee8fabe4ff891ad6ec409dc
Author: Adam Williamson <awilliam(a)redhat.com>
Date: Fri Nov 15 09:54:25 2013 -0800
drop 'xdriver=vesa' from basic graphics mode parameters (per ajax)
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 4977703..af78061 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -605,7 +605,7 @@ menu separator
liveargs = kern_opts,
long = "Start " + long + " in ^basic graphics mode.",
short = "basic" + index,
- extra = "xdriver=vesa nomodeset",
+ extra = "nomodeset",
help = "Try this option out if you're having trouble starting.",
index = index))
10 years, 4 months
2 commits - imgcreate/fs.py imgcreate/live.py
by Brian C. Lane
imgcreate/fs.py | 15 ++++++++++-----
imgcreate/live.py | 2 +-
2 files changed, 11 insertions(+), 6 deletions(-)
New commits:
commit 0875dc51726a7ca28f8d5d38543073ab462f9fda
Author: Bill Nottingham <notting(a)redhat.com>
Date: Thu Nov 14 09:39:42 2013 -0500
Ensure filesystem modules end up in the live image initramfs.
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 4fe1ea4..4977703 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -262,7 +262,7 @@ class LiveImageCreatorBase(LoopImageCreator):
return env
def __extra_filesystems(self):
- return "vfat msdos isofs ";
+ return "vfat msdos isofs ext4 xfs btrfs";
def __extra_drivers(self):
retval = "sr_mod sd_mod ide-cd cdrom "
commit f9f941e9ed7c3d6db014259a77283716a0b3716e
Author: Bill Nottingham <notting(a)redhat.com>
Date: Thu Nov 14 09:39:41 2013 -0500
Don't use mkfs.extN options for any filesystem types.
btrfs, xfs, ext4 tested - filesystem is made correctly. Note that filesystem
shrinking is still extN specific.
diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index e3be9a8..37ff9d8 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -453,11 +453,16 @@ class ExtDiskMount(DiskMount):
def __format_filesystem(self):
logging.info("Formating %s filesystem on %s" % (self.fstype, self.disk.device))
- rc = call(["/sbin/mkfs." + self.fstype,
- "-F", "-L", self.fslabel,
- "-m", "1", "-b", str(self.blocksize),
- self.disk.device])
- # str(self.disk.size / self.blocksize)])
+ args = [ "/sbin/mkfs." + self.fstype ]
+ if self.fstype.startswith("ext"):
+ args = args + [ "-F", "-L", self.fslabel, "-m", "1", "-b", str(self.blocksize) ]
+ elif self.fstype == "xfs":
+ args = args + [ "-L", self.fslabel[0:10], "-b", "size=%s" % str(self.blocksize) ]
+ elif self.fstype == "btrfs":
+ args = args + [ "-L", self.fslabel ]
+ args = args + [self.disk.device]
+ print args
+ rc = call(args)
if rc != 0:
raise MountError("Error creating %s filesystem" % (self.fstype,))
10 years, 4 months
[PATCH 1/2] Don't use mkfs.extN options for any filesystem types.
by Bill Nottingham
btrfs, xfs, ext4 tested - filesystem is made correctly. Note that filesystem
shrinking is still extN specific.
---
imgcreate/fs.py | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index e3be9a8..37ff9d8 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -453,11 +453,16 @@ class ExtDiskMount(DiskMount):
def __format_filesystem(self):
logging.info("Formating %s filesystem on %s" % (self.fstype, self.disk.device))
- rc = call(["/sbin/mkfs." + self.fstype,
- "-F", "-L", self.fslabel,
- "-m", "1", "-b", str(self.blocksize),
- self.disk.device])
- # str(self.disk.size / self.blocksize)])
+ args = [ "/sbin/mkfs." + self.fstype ]
+ if self.fstype.startswith("ext"):
+ args = args + [ "-F", "-L", self.fslabel, "-m", "1", "-b", str(self.blocksize) ]
+ elif self.fstype == "xfs":
+ args = args + [ "-L", self.fslabel[0:10], "-b", "size=%s" % str(self.blocksize) ]
+ elif self.fstype == "btrfs":
+ args = args + [ "-L", self.fslabel ]
+ args = args + [self.disk.device]
+ print args
+ rc = call(args)
if rc != 0:
raise MountError("Error creating %s filesystem" % (self.fstype,))
--
1.8.4.2
10 years, 4 months
Recommendations for non-persistent file overlay for embedded LiveCd application?
by Ed Sutton
I am seeking advice on choosing a non-persistent file overlay suited for an embedded LiveCd application where the system is always on? The current approach we are using is based of a RHEL 5.2 LiveCd and uses snapshot device mapper overlay.
It appears /dev/mapper/live-rw overlay resources are not 100% released after file add and file delete operations. For example, as logrotate does with system log files. When dmsetup status reports 70% or more storage consumption the system will become non-responsive and must be restarted. I can reproduce this with about 30 minutes of writing 12, 000 cycles of open a file named test.log, overwrite if exists, write 16MB data, close, repeat.
# overlay setup helper function
do_live_overlay() {
...
# set up the snapshot
echo 0 `blockdev --getsize $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create live-rw
}
This article states that " dmsetup status live-rw consumption reports will only show increases even though allocated overlay sectors are available for reuse if an added file has been deleted".
http://fedoraproject.org/wiki/LiveOS_image
Is UnionFs, tmpfs, unionfs-fuse ( user space) or other options better choices for non-persistent overlay?
Thanks in advance for any tips or suggestions,
-Ed
Using: livecd-tools-014-8
Target and Build machine: CentOs5.2
# overlay setup helper function
do_live_overlay() {
# create a sparse file for the overlay
# overlay: if non-ram overlay searching is desired, do it,
# otherwise, create traditional overlay in ram
OVERLAY_LOOPDEV=$( losetup -f )
l=$(/lib/udev/vol_id -l /dev/root) || l=""
u=$(/lib/udev/vol_id -u /dev/root) || u=""
if ( echo $overlay | grep -q ":" ); then
# pathspec specified, extract
pathspec=$( echo $overlay | sed -e 's/^.*://' )
elif [ "x${overlay}" != "xoff" ]; then
pathspec="/LiveOS/overlay-$l-$u"
fi
if [ -z "$pathspec" -o "$pathspec" == "auto" ]; then
pathspec="/LiveOS/overlay-$l-$u"
fi
devspec=$( echo $overlay | sed -e 's/:.*$//' )
# need to know where to look for the overlay
setup=""
if [ -n "$devspec" -a -n "$pathspec" -a "${overlay}" != "off" ]; then
mkdir /overlayfs
mount -n -t auto $devspec /overlayfs || :
if [ -f /overlayfs$pathspec -a -w /overlayfs$pathspec ]; then
losetup $OVERLAY_LOOPDEV /overlayfs$pathspec
if [ -n "$reset_overlay" ]; then
dd if=/dev/zero of=$OVERLAY_LOOPDEV bs=64k count=1 2>/dev/null
fi
setup="yes"
fi
umount -l /overlayfs || :
fi
if [ -z "$setup" ]; then
if [ -n "$devspec" -a -n "$pathspec" ]; then
echo "Unable to find persistent overlay; using temporary"
sleep 5
fi
dd if=/dev/null of=/overlay bs=1024 count=1 seek=$((512*1024)) 2> /dev/null
losetup $OVERLAY_LOOPDEV /overlay
fi
# set up the snapshot
echo 0 `blockdev --getsize $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create live-rw
}
10 years, 4 months