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
9 years, 7 months
tools/livecd-iso-to-disk.sh
by Brian C. Lane
tools/livecd-iso-to-disk.sh | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
New commits:
commit 59b82d7a2fa24e3a3d3f8d4715aa8477d64ca318
Author: Helio Chissini de Castro <helio(a)kde.org>
Date: Tue Sep 17 14:25:11 2013 -0700
litd: Add --label option to override LIVE label
--label will override the default filesystem label of LIVE. This can be
useful when used with install images and inst.ks:LABEL=<SOME>:/custom.cfg
Signed-off-by: Brian C. Lane <bcl(a)redhat.com>
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index b38e3b2..0759dee 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -35,7 +35,7 @@ shortusage() {
[--compress] [--skipcompress] [--swap-size-mb <size>]
[--overlay-size-mb <size>] [--home-size-mb <size>]
[--delete-home] [--crypted-home] [--unencrypted-home]
- [--updates updates.img] [--ks kickstart]
+ [--updates updates.img] [--ks kickstart] [--label label]
<source> <target device>
(Enter livecd-iso-to-disk --help on the command line for more information.)"
@@ -253,6 +253,10 @@ usage() {
Setup inst.ks to point to an kickstart file on the device. Use this for
automating installs on boot.
+ --label label
+ Specifies a specific label instead of default LIVE. Useful when you do
+ unattended installs which pas a label to inst.ks
+
CONTRIBUTORS
livecd-iso-to-disk: David Zeuthen, Jeremy Katz, Douglas McClendon,
@@ -445,7 +449,7 @@ createGPTLayout() {
sleep 5
TGTDEV=${device}1
umount $TGTDEV &> /dev/null || :
- /sbin/mkdosfs -n LIVE $TGTDEV
+ /sbin/mkdosfs -n $label $TGTDEV
TGTLABEL="UUID=$(/sbin/blkid -s UUID -o value $TGTDEV)"
}
@@ -520,7 +524,7 @@ createEXTFSLayout() {
else
mkfs=/sbin/mkfs.ext4
fi
- $mkfs -L LIVE $TGTDEV
+ $mkfs -L $label $TGTDEV
TGTLABEL="UUID=$(/sbin/blkid -s UUID -o value $TGTDEV)"
}
@@ -564,21 +568,21 @@ checkFilesystem() {
fi
TGTLABEL=$(/sbin/blkid -s LABEL -o value $dev)
- if [ "$TGTLABEL" != "LIVE" ]; then
+ if [ "$TGTLABEL" != "$label" ]; then
if [ "$TGTFS" = "vfat" -o "$TGTFS" = "msdos" ]; then
- /sbin/dosfslabel $dev LIVE
+ /sbin/dosfslabel $dev $label
if [ $? -gt 0 ]; then
echo "dosfslabel failed on $dev, device not setup"
exitclean
fi
elif [ "$TGTFS" = "ext2" -o "$TGTFS" = "ext3" -o "$TGTFS" = "ext4" ]; then
- /sbin/e2label $dev LIVE
+ /sbin/e2label $dev $label
if [ $? -gt 0 ]; then
echo "e2label failed on $dev, device not setup"
exitclean
fi
else
- echo "Unknown filesystem type. Try setting its label to LIVE and re-running"
+ echo "Unknown filesystem type. Try setting its label to $label and re-running"
exitclean
fi
fi
@@ -588,7 +592,7 @@ checkFilesystem() {
if [ -n "$TGTUUID" ]; then
TGTLABEL="UUID=$TGTUUID"
else
- TGTLABEL="LABEL=LIVE"
+ TGTLABEL="LABEL=$label"
fi
if [ "$TGTFS" = "vfat" -o "$TGTFS" = "msdos" ]; then
@@ -713,6 +717,7 @@ LIVEOS=LiveOS
HOMEFILE="home.img"
updates=
ks=
+label="LIVE"
if [[ "$*" =~ "--help" ]]; then
usage
@@ -809,6 +814,10 @@ while [ $# -gt 2 ]; do
ks=$2
shift
;;
+ --label)
+ label=$2
+ shift
+ ;;
*)
echo "invalid arg -- $1"
shortusage
@@ -1219,7 +1228,7 @@ fi
echo "Updating boot config file"
# adjust label and fstype
-sed -i -e "s/CDLABEL=[^ ]*/$TGTLABEL/" -e "s/rootfstype=[^ ]*/rootfstype=$TGTFS/" -e "s/LABEL=[^ ]*/$TGTLABEL/" $BOOTCONFIG $BOOTCONFIG_EFI
+sed -i -e "s/CDLABEL=[^ ]*/$TGTLABEL/" -e "s/rootfstype=[^ ]*/rootfstype=$TGTFS/" -e "s/LABEL=[^ :]*/$TGTLABEL/" $BOOTCONFIG $BOOTCONFIG_EFI
if [ -n "$kernelargs" ]; then
sed -i -e "s;initrd.\?\.img;& ${kernelargs};" $BOOTCONFIG
if [ -n "$efi" ]; then
10 years
help:erros with making centos-livecd
by 李永超
when I input the following command:
[root@localhost ~]# livecd-creator --config=livecd-fedora-minimal.ks
--cache=/var/cache/live --fslabel=centos-livecd
mke2fs 1.39 (29-May-2006)
Filesystem label=centos-livecd
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
524288 inodes, 1048576 blocks
10485 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
tune2fs 1.39 (29-May-2006)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Retrieving http://mirror.centos.org/centos/5/os/i386/repodata/repomd.xml...OK
Retrieving
http://www.nanotechnologies.qc.ca/propos/linux/centos-live/i386/live/repo...
Retrieving
http://mirror.centos.org/centos/5/updates/i386/repodata/repomd.xml ...OK
Retrieving file:///mnt/iso/repodata/repomd.xml ...OK
warning: setup-2.5.58-9.el5: Header V3 DSA signature: NOKEY, key ID e8562897
Installing: setup ##################### [ 1/117]
Installing: filesystem ##################### [ 2/117]
Installing: basesystem ##################### [ 3/117]
Installing: termcap ##################### [ 4/117]
Installing: centos-release-notes ##################### [ 5/117]
Installing: tzdata ##################### [ 6/117]
Installing: glibc-common ##################### [ 7/117]
Installing: nash ##################### [ 8/117]
Installing: kernel-headers ##################### [ 9/117]
Installing: cracklib-dicts ##################### [ 10/117]
Installing: libgcc ##################### [ 11/117]
Installing: rootfiles ##################### [ 12/117]
Installing: xkeyboard-config ##################### [ 13/117]
Installing: comps-extras ##################### [ 14/117]
Installing: glibc ##################### [ 15/117]
Installing: mktemp ##################### [ 16/117]
Installing: chkconfig ##################### [ 17/117]
Installing: zlib ##################### [ 18/117]
Installing: popt ##################### [ 19/117]
Installing: audit-libs ##################### [ 20/117]
Installing: glib2 ##################### [ 21/117]
Installing: libtermcap ##################### [ 22/117]
Installing: bash ##################### [ 23/117]
Installing: libsepol ##################### [ 24/117]
Installing: ncurses ##################### [ 25/117]
Installing: info ##################### [ 26/117]
Installing: readline ##################### [ 27/117]
Installing: sed ##################### [ 28/117]
Installing: nspr ##################### [ 29/117]
Installing: sqlite ##################### [ 30/117]
Installing: nss ##################### [ 31/117]
Installing: libattr ##################### [ 32/117]
Installing: libacl ##################### [ 33/117]
Installing: bzip2-libs ##################### [ 34/117]
Installing: binutils ##################### [ 35/117]
Installing: gawk ##################### [ 36/117]
Installing: elfutils-libelf ##################### [ 37/117]
Installing: libstdc++ ##################### [ 38/117]
Installing: db4 ##################### [ 39/117]
Installing: iproute ##################### [ 40/117]
Installing: pcre ##################### [ 41/117]
Installing: grep ##################### [ 42/117]
Installing: hmaccalc ##################### [ 43/117]
Installing: libgomp ##################### [ 44/117]
Installing: cpio ##################### [ 45/117]
Installing: diffutils ##################### [ 46/117]
Installing: cpp ##################### [ 47/117]
Installing: less ##################### [ 48/117]
Installing: gzip ##################### [ 49/117]
Installing: procps ##################### [ 50/117]
Installing: iputils ##################### [ 51/117]
Installing: keyutils-libs ##################### [ 52/117]
Installing: ethtool ##################### [ 53/117]
Installing: slang ##################### [ 54/117]
Installing: libsysfs ##################### [ 55/117]
Installing: mingetty ##################### [ 56/117]
Installing: sgpio ##################### [ 57/117]
Installing: libcap ##################### [ 58/117]
Installing: expat ##################### [ 59/117]
Installing: gdbm ##################### [ 60/117]
Installing: cyrus-sasl-lib ##################### [ 61/117]
Installing: centos-release ##################### [ 62/117]
Installing: crontabs ##################### [ 63/117]
Installing: glibc-headers ##################### [ 64/117]
Installing: glibc-devel ##################### [ 65/117]
Installing: gcc ##################### [ 66/117]
Installing: libselinux ##################### [ 67/117]
Installing: device-mapper ##################### [ 68/117]
Installing: shadow-utils ##################### [ 69/117]
Installing: e2fsprogs-libs ##################### [ 70/117]
Installing: kpartx ##################### [ 71/117]
Installing: e2fsprogs ##################### [ 72/117]
Installing: logrotate ##################### [ 73/117]
Installing: findutils ##################### [ 74/117]
Installing: device-mapper-multipath ##################### [ 75/117]
Installing: libutempter ##################### [ 76/117]
Installing: MAKEDEV ##################### [ 77/117]
Installing: device-mapper-event ##################### [ 78/117]
Installing: lvm2 ##################### [ 79/117]
Installing: psmisc ##################### [ 80/117]
Installing: tar ##################### [ 81/117]
Installing: net-tools ##################### [ 82/117]
Installing: libselinux-utils ##################### [ 83/117]
Installing: coreutils ##################### [ 84/117]
Installing: pam ##################### [ 85/117]
Installing: udev ##################### [ 86/117]
Installing: util-linux ##################### [ 87/117]
Installing: dmraid ##################### [ 88/117]
Installing: SysVinit ##################### [ 89/117]
Installing: tcsh ##################### [ 90/117]
Installing: mtools ##################### [ 91/117]
Installing: rsyslog ##################### [ 92/117]
Installing: krb5-libs ##################### [ 93/117]
Installing: openssl ##################### [ 94/117]
Installing: openldap ##################### [ 95/117]
Installing: dmraid-events ##################### [ 96/117]
Installing: cracklib ##################### [ 97/117]
Installing: syslinux ##################### [ 98/117]
Installing: python ##################### [ 99/117]
Installing: initscripts ##################### [100/117]
Installing: libuser ##################### [101/117]
Installing: python-libs ##################### [102/117]
Installing: rpm ##################### [103/117]
Installing: libsemanage ##################### [104/117]
Installing: passwd ##################### [105/117]
Installing: usermode ##################### [106/117]
Installing: mcstrans ##################### [107/117]
Installing: newt ##################### [108/117]
Installing: iscsi-initiator-utils ##################### [109/117]
Installing: audit-libs-python ##################### [110/117]
Installing: libselinux-python ##################### [111/117]
Installing: rpm-libs ##################### [112/117]
Installing: policycoreutils ##################### [113/117]
Installing: authconfig ##################### [114/117]
Installing: mkinitrd ##################### [115/117]
Installing: module-init-tools ##################### [116/117]
Installing: kernel ##################### [117/117]
ls: /etc/modprobe.d/*.conf: 没有那个文件或目录
Traceback (most recent call last):
File "/usr/sbin/authconfig", line 27, in ?
import authinfo, acutil
File "/usr/share/authconfig/authinfo.py", line 38, in ?
import urllib2
File "/usr/lib/python2.4/urllib2.py", line 93, in ?
import httplib
File "/usr/lib/python2.4/httplib.py", line 70, in ?
import mimetools
File "/usr/lib/python2.4/mimetools.py", line 6, in ?
import tempfile
File "/usr/lib/python2.4/tempfile.py", line 33, in ?
from random import Random as _Random
File "/usr/lib/python2.4/random.py", line 828, in ?
_inst = Random()
File "/usr/lib/python2.4/random.py", line 95, in __init__
self.seed(x)
File "/usr/lib/python2.4/random.py", line 109, in seed
a = long(_hexlify(_urandom(16)), 16)
OSError: [Errno 2] No such file or directory: '/dev/urandom'
Building an initramfs at /boot/livecd-initramfs-2.6.18-348.16.1.el5.img for
kernel 2.6.18-348.16.1.el5
cp: 无法 stat “/lib/terminfo/*”: 没有那个文件或目录
Done; initramfs is 4.3M.
give me some help ,thanks!!
10 years
tools/liveimage-mount
by Brian C. Lane
tools/liveimage-mount | 1 +
1 file changed, 1 insertion(+)
New commits:
commit ff65c3993cb6226dfb13f04c78301dca046f6b76
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Thu Sep 5 17:01:21 2013 -0700
liveimage-mount: add missing import
diff --git a/tools/liveimage-mount b/tools/liveimage-mount
index 185f070..90cfe90 100755
--- a/tools/liveimage-mount
+++ b/tools/liveimage-mount
@@ -27,6 +27,7 @@ import getopt
import tempfile
import subprocess
+from imgcreate.errors import *
def usage(ecode):
print """Usage:
10 years