creator/mayflower
by Jeremy Katz
creator/mayflower | 284 +++++++++++++++++++++++++++---------------------------
1 files changed, 142 insertions(+), 142 deletions(-)
New commits:
commit 102250453735a5d36052b48cb7d238f06d5ba90a
Author: Jim Meyering <jim(a)meyering.net>
Date: Tue Nov 6 21:38:04 2007 +0100
Remove backslashes from the init-generating here-doc.
Use <<'EOF' rather than <<EOF, so we don't need to backslash-escape
all "$" and "`".
Signed-off-by: Jim Meyering <meyering(a)redhat.com>
diff --git a/creator/mayflower b/creator/mayflower
index 9a5c863..0adb26c 100755
--- a/creator/mayflower
+++ b/creator/mayflower
@@ -204,7 +204,7 @@ for i in bin/* sbin/* lib/udev/*; do
done
done
-cat > sbin/run-init <<EOF
+cat > sbin/run-init <<'EOF'
#!/sbin/nash
setuproot
switchroot
@@ -212,7 +212,7 @@ EOF
chmod 755 sbin/run-init
# Write out init
-cat > init <<EOF
+cat > init <<'EOF'
#!/bin/bash
emergency_shell()
@@ -263,10 +263,10 @@ live_locale=""
# Parse kernel commandline options
#
-for o in \`cat /proc/cmdline\` ; do
- case \$o in
+for o in `cat /proc/cmdline` ; do
+ case $o in
init=*)
- init=\${o#init=}
+ init=${o#init=}
;;
ro)
root_ro=1
@@ -287,33 +287,33 @@ for o in \`cat /proc/cmdline\` ; do
live_ram=1
;;
live_locale=*)
- live_locale=\${o#live_locale=}
+ live_locale=${o#live_locale=}
;;
check)
check_iso=1
;;
blacklist=*)
- blacklist=\${o#blacklist=}
- echo "blacklist \$blacklist" >> /etc/modprobe.conf
+ blacklist=${o#blacklist=}
+ echo "blacklist $blacklist" >> /etc/modprobe.conf
;;
*)
- m=\$(echo \$o |cut -s -d . -f 1)
- opt=\$(echo \$o |cut -s -d . -f 2-)
- if [ -z "\$m" -o -z "\$opt" ]; then
+ m=$(echo $o |cut -s -d . -f 1)
+ opt=$(echo $o |cut -s -d . -f 2-)
+ if [ -z "$m" -o -z "$opt" ]; then
continue
fi
- p=\$(echo \$opt |cut -s -d = -f 1)
- v=\$(echo \$opt |cut -s -d = -f 2-)
- if [ -z "\$p" -o -z "\$v" ]; then
+ p=$(echo $opt |cut -s -d = -f 1)
+ v=$(echo $opt |cut -s -d = -f 2-)
+ if [ -z "$p" -o -z "$v" ]; then
continue
fi
- echo "options \$m \$p=\$v" >> /etc/modprobe.conf
+ echo "options $m $p=$v" >> /etc/modprobe.conf
;;
esac
done
-if [ "\$quiet" != "1" ] ; then
- echo "kernel commandline: \`cat /proc/cmdline\`"
+if [ "$quiet" != "1" ] ; then
+ echo "kernel commandline: `cat /proc/cmdline`"
fi
# First, read rootfs target from embedded /etc/fstab file
@@ -322,14 +322,14 @@ if [ -f /etc/fstab ] ; then
root=$(cat /etc/fstab | while read d m f o r; do if [ "$m" == "/" ] ; then echo $d; fi; done)
rootflags=$(cat /etc/fstab | while read d m f o r; do if [ "$m" == "/" ] ; then echo $o; fi; done)
rootfstype=$(cat /etc/fstab | while read d m f o r; do if [ "$m" == "/" ] ; then echo $f; fi; done)
- if [ "\$quiet" != "1" ] ; then
- echo "fstab suggests root=\$root"
- echo "fstab suggests rootflags=\$rootflags"
- echo "fstab suggests rootfstype=\$rootfstype"
+ if [ "$quiet" != "1" ] ; then
+ echo "fstab suggests root=$root"
+ echo "fstab suggests rootflags=$rootflags"
+ echo "fstab suggests rootfstype=$rootfstype"
# Handle the case with bogus /etc/fstab pointing to /dev/root
# which by definition does not exist...
#
- if [ "\$root" == "/dev/root" ] ; then
+ if [ "$root" == "/dev/root" ] ; then
echo "WARNING: Bogus /etc/fstab file - cannot have /dev/root as the device for /"
root=""
rootflags=""
@@ -340,41 +340,41 @@ fi
# Users can override rootfs target on the kernel commandline
#
-for o in \`cat /proc/cmdline\` ; do
- case \$o in
+for o in `cat /proc/cmdline` ; do
+ case $o in
root=*)
- root=\${o#root=}
+ root=${o#root=}
;;
rootflags=*)
- rootflags=\${o#rootflags=}
+ rootflags=${o#rootflags=}
;;
rootfstype=*)
- rootfstype=\${o#rootfstype=}
+ rootfstype=${o#rootfstype=}
;;
esac
done
# Print out what we are going to do
#
-if [ "\$quiet" != "1" ] ; then
- echo "init=\$init"
- echo "root=\$root"
- echo "rootflags=\$rootflags"
- echo "rootfstype=\$rootfstype"
- echo "root_ro=\$root_ro"
- echo "root_rw=\$root_rw"
+if [ "$quiet" != "1" ] ; then
+ echo "init=$init"
+ echo "root=$root"
+ echo "rootflags=$rootflags"
+ echo "rootfstype=$rootfstype"
+ echo "root_ro=$root_ro"
+ echo "root_rw=$root_rw"
fi
waitforsymlink=0
# generate udev rules to generate /dev/root symlink
-if [ -z \$root ] ; then
+if [ -z $root ] ; then
root=/dev/something
else
- case \$root in
+ case $root in
/dev/disk/by-label/*)
- LABEL=\${root#/dev/disk/by-label/}
- echo "SUBSYSTEM==\"block\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$LABEL\", SYMLINK+=\"root\"" > /etc/udev/rules.d/00-label.rules
- if [ "\$quiet" != "1" ] ; then
+ LABEL=${root#/dev/disk/by-label/}
+ echo "SUBSYSTEM==\"block\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$LABEL\", SYMLINK+=\"root\"" > /etc/udev/rules.d/00-label.rules
+ if [ "$quiet" != "1" ] ; then
echo "Added udev rule 00-label.rules:"
cat /etc/udev/rules.d/00-label.rules
fi
@@ -382,12 +382,12 @@ else
thingtomount=/dev/root
;;
CDLABEL=*)
- CDLABEL=\${root#CDLABEL=}
- echo "KERNEL==\"hd[a-z]\", BUS==\"ide\", SYSFS{removable}==\"1\", ATTRS{media}==\"cdrom\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$CDLABEL\", SYMLINK+=\"root\"" > /etc/udev/rules.d/00-cdlabel.rules
- echo "KERNEL==\"sr[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$CDLABEL\", SYMLINK+=\"root\"" >> /etc/udev/rules.d/00-cdlabel.rules
- echo "KERNEL==\"scd[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$CDLABEL\", SYMLINK+=\"root\"" >> /etc/udev/rules.d/00-cdlabel.rules
- echo "KERNEL==\"pcd[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$CDLABEL\", SYMLINK+=\"root\"" >> /etc/udev/rules.d/00-cdlabel.rules
- if [ "\$quiet" != "1" ] ; then
+ CDLABEL=${root#CDLABEL=}
+ echo "KERNEL==\"hd[a-z]\", BUS==\"ide\", SYSFS{removable}==\"1\", ATTRS{media}==\"cdrom\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$CDLABEL\", SYMLINK+=\"root\"" > /etc/udev/rules.d/00-cdlabel.rules
+ echo "KERNEL==\"sr[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$CDLABEL\", SYMLINK+=\"root\"" >> /etc/udev/rules.d/00-cdlabel.rules
+ echo "KERNEL==\"scd[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$CDLABEL\", SYMLINK+=\"root\"" >> /etc/udev/rules.d/00-cdlabel.rules
+ echo "KERNEL==\"pcd[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$CDLABEL\", SYMLINK+=\"root\"" >> /etc/udev/rules.d/00-cdlabel.rules
+ if [ "$quiet" != "1" ] ; then
echo "Added udev rule 00-cdlabel.rules:"
cat /etc/udev/rules.d/00-cdlabel.rules
fi
@@ -395,9 +395,9 @@ else
thingtomount=/dev/root
;;
LABEL=*)
- LABEL=\${root#LABEL=}
- echo "SUBSYSTEM==\"block\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$LABEL\", SYMLINK+=\"root\"" > /etc/udev/rules.d/00-label.rules
- if [ "\$quiet" != "1" ] ; then
+ LABEL=${root#LABEL=}
+ echo "SUBSYSTEM==\"block\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$LABEL\", SYMLINK+=\"root\"" > /etc/udev/rules.d/00-label.rules
+ if [ "$quiet" != "1" ] ; then
echo "Added udev rule 00-label.rules:"
cat /etc/udev/rules.d/00-label.rules
fi
@@ -405,9 +405,9 @@ else
thingtomount=/dev/root
;;
/dev/disk/by-id/*)
- UUID=\${root#/dev/disk/by-id/}
- echo "SUBSYSTEM==\"block\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"\$UUID\", SYMLINK+=\"root\"" > /etc/udev/rules.d/01-uuid.rules
- if [ "\$quiet" != "1" ] ; then
+ UUID=${root#/dev/disk/by-id/}
+ echo "SUBSYSTEM==\"block\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"$UUID\", SYMLINK+=\"root\"" > /etc/udev/rules.d/01-uuid.rules
+ if [ "$quiet" != "1" ] ; then
echo "Added udev rule 01-uuid.rules:"
cat /etc/udev/rules.d/01-uuid.rules
fi
@@ -415,9 +415,9 @@ else
thingtomount=/dev/root
;;
UUID=*)
- UUID=\${root#UUID=}
- echo "SUBSYSTEM==\"block\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"\$UUID\", SYMLINK+=\"root\"" > /etc/udev/rules.d/01-uuid.rules
- if [ "\$quiet" != "1" ] ; then
+ UUID=${root#UUID=}
+ echo "SUBSYSTEM==\"block\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"$UUID\", SYMLINK+=\"root\"" > /etc/udev/rules.d/01-uuid.rules
+ if [ "$quiet" != "1" ] ; then
echo "Added udev rule 01-uuid.rules:"
cat /etc/udev/rules.d/01-uuid.rules
fi
@@ -425,11 +425,11 @@ else
thingtomount=/dev/root
;;
/dev/*)
- ln -s \$root /dev/root
- thingtomount=\$root
+ ln -s $root /dev/root
+ thingtomount=$root
;;
*)
- thingtomount=\$root
+ thingtomount=$root
;;
esac
fi
@@ -438,7 +438,7 @@ echo "udev_log=\"error\"" >> /etc/udev/udev.conf
# rules for loading modules
#
-echo -n "ACTION==\"add\", SUBSYSTEM==\"?*\", ENV{MODALIAS}==\"?*\", RUN+=\"/sbin/modprobe \$" >> /etc/udev/rules.d/10-modprobe.rules
+echo -n "ACTION==\"add\", SUBSYSTEM==\"?*\", ENV{MODALIAS}==\"?*\", RUN+=\"/sbin/modprobe $" >> /etc/udev/rules.d/10-modprobe.rules
echo "env{MODALIAS}\"" >> /etc/udev/rules.d/10-modprobe.rules
echo "ACTION==\"add\", SUBSYSTEM==\"scsi_device\" RUN+=\"/sbin/modprobe sg\"" >> /etc/udev/rules.d/10-modprobe.rules
echo "ACTION==\"add\", SUBSYSTEM==\"scsi_device\", SYSFS{type}==\"0|7|14\", RUN+=\"/sbin/modprobe sd_mod\"" >> /etc/udev/rules.d/10-modprobe.rules
@@ -453,33 +453,33 @@ echo "KERNEL==\"msr[0-9]*\", NAME=\"cpu/%n/msr\"" > /etc/udev/rules.d/20-cpu.rul
/sbin/modprobe loop max_loop=16
-if [ "\$quiet" != "1" ] ; then
+if [ "$quiet" != "1" ] ; then
echo "starting udevd"
fi
/sbin/udevd --daemon
-if [ "\$quiet" != "1" ] ; then
+if [ "$quiet" != "1" ] ; then
echo "creating devices"
fi
/sbin/udevtrigger
-if [ "\$quiet" != "1" ] ; then
+if [ "$quiet" != "1" ] ; then
echo "waiting for system to settle"
fi
/sbin/udevsettle --timeout=30 || :
-if [ "\$shell" == "1" ] ; then
+if [ "$shell" == "1" ] ; then
echo "Shell requested on kernel commandline. Exit to continue booting."
echo
bash
fi
# don't wait for "mtd0" as no device file will appear
-if [ "\$root" != "mtd0" ] ; then
+if [ "$root" != "mtd0" ] ; then
# If we don't have the /dev/root link.. ask the user to create..
- if [ "\$waitforsymlink" != "1" ] ; then
+ if [ "$waitforsymlink" != "1" ] ; then
if [ ! -L /dev/root ] ; then
echo
echo "--------------------------------------"
@@ -497,17 +497,17 @@ if [ "\$root" != "mtd0" ] ; then
# Wait up to 60 seconds for them to appear...
#
if [ ! -b /dev/root ] ; then
- if [ "\$quiet" != "1" ] ; then
+ if [ "$quiet" != "1" ] ; then
echo "no root yet, udev rule will write symlink..."
echo
echo "waiting up to 60 seconds before dropping to emergency shell."
fi
COUNTDOWN=60
- while [ "x\$COUNTDOWN" != "x0" ] ; do
- if [ "\$quiet" != "1" ] ; then
+ while [ "x$COUNTDOWN" != "x0" ] ; do
+ if [ "$quiet" != "1" ] ; then
echo -n "."
fi
- COUNTDOWN=\$((\$COUNTDOWN - 1))
+ COUNTDOWN=$(($COUNTDOWN - 1))
/bin/sleep 1
if [ -e /dev/root ] ; then
COUNTDOWN=0
@@ -527,53 +527,53 @@ if [ "\$root" != "mtd0" ] ; then
bash
fi
- if [ "\$quiet" != "1" ] ; then
+ if [ "$quiet" != "1" ] ; then
echo "mounting /dev/root"
ls -l /dev/root
fi
- if [ -z \$rootfstype ] ; then
+ if [ -z $rootfstype ] ; then
rootfstype=auto
fi
fi
-if [ "x\$check_iso" == "x1" -a -x /bin/checkisomd5 -a "x\$rootfstype" == "xiso9660" ]; then
+if [ "x$check_iso" == "x1" -a -x /bin/checkisomd5 -a "x$rootfstype" == "xiso9660" ]; then
echo "Verifying ISO image..."
/bin/checkisomd5 --verbose /dev/root
- if [ \$? -ne 0 ]; then
+ if [ $? -ne 0 ]; then
echo "Are you SURE you want to continue?"
echo "Press Enter to continue or ctrl-alt-del to reboot."
read
fi
fi
-if [ "x\$root_ro" == "x1" ] ; then
- if [ -z \$rootflags ] ; then
+if [ "x$root_ro" == "x1" ] ; then
+ if [ -z $rootflags ] ; then
rootflags="ro"
else
- rootflags="\$rootflags,ro"
+ rootflags="$rootflags,ro"
fi
fi
-if [ "x\$root_rw" == "x1" ] ; then
- if [ -z \$rootflags ] ; then
+if [ "x$root_rw" == "x1" ] ; then
+ if [ -z $rootflags ] ; then
rootflags="rw"
else
- rootflags="\$rootflags,rw"
+ rootflags="$rootflags,rw"
fi
fi
-if [ -z \$rootflags ] ; then
+if [ -z $rootflags ] ; then
mountoptions=""
else
- mountoptions=" -o\$rootflags"
+ mountoptions=" -o$rootflags"
fi
-mount -n -t \$rootfstype \$mountoptions \$thingtomount /sysroot
-RES=\$?
+mount -n -t $rootfstype $mountoptions $thingtomount /sysroot
+RES=$?
-if [ "\$RES" != "0" ] ; then
+if [ "$RES" != "0" ] ; then
echo "---------------------------------"
echo "WARNING: Cannot mount rootfs!"
echo "---------------------------------"
@@ -588,8 +588,8 @@ fi
#
# only pass kernel command line if we're launching /sbin/init
-if [ "\$init" == "/sbin/init" ] ; then
- initargs=\$(cat /proc/cmdline)
+if [ "$init" == "/sbin/init" ] ; then
+ initargs=$(cat /proc/cmdline)
else
initargs=""
fi
@@ -598,11 +598,11 @@ fi
do_live_from_base_loop() {
# create a sparse file for the overlay
dd if=/dev/null of=/overlay bs=1024 count=1 seek=$((512*1024)) 2> /dev/null
- OVERLAY_LOOPDEV=\$( losetup -f )
- losetup \$OVERLAY_LOOPDEV /overlay
+ OVERLAY_LOOPDEV=$( losetup -f )
+ losetup $OVERLAY_LOOPDEV /overlay
# set up the snapshot
- echo 0 \`blockdev --getsize \$BASE_LOOPDEV\` snapshot \$BASE_LOOPDEV \$OVERLAY_LOOPDEV p 8 | dmsetup create live-rw
+ echo 0 `blockdev --getsize $BASE_LOOPDEV` snapshot $BASE_LOOPDEV $OVERLAY_LOOPDEV p 8 | dmsetup create live-rw
# set up new /dev/root symlink
rm -f /dev/root
@@ -617,45 +617,45 @@ do_live_from_base_loop() {
# We also use it to dynamically set the system locale from the boot
# menu on live cd's.
#
- if [ "\$live_locale" != "" ] ; then
- echo "LANG=\$live_locale" > /sysroot/etc/sysconfig/i18n
+ if [ "$live_locale" != "" ] ; then
+ echo "LANG=$live_locale" > /sysroot/etc/sysconfig/i18n
fi
# copy over module options
[ -f /etc/modprobe.conf ] && cat /etc/modprobe.conf >> /sysroot/etc/modprobe.conf
# create rule so udev creates /dev/live symlink on real rootfs
- if [ -n "\$CDLABEL" ]; then
- echo "KERNEL==\"hd[a-z]\", BUS==\"ide\", SYSFS{removable}==\"1\", ATTRS{media}==\"cdrom\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$CDLABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"sr[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$CDLABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"scd[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$CDLABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"pcd[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$CDLABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- elif [ -n "\$LABEL" ]; then
- echo "KERNEL==\"hd[a-z]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$LABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"hd[a-z][0-9]*\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$LABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"sd[a-z]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$LABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"sd[a-z][0-9]*\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"\$LABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- elif [ -n "\$UUID" ]; then
- echo "KERNEL==\"hd[a-z]\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"\$UUID\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"hd[a-z][0-9]*\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"\$UUID\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"sd[a-z]\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"\$UUID\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"sd[a-z][0-9]*\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"\$UUID\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ if [ -n "$CDLABEL" ]; then
+ echo "KERNEL==\"hd[a-z]\", BUS==\"ide\", SYSFS{removable}==\"1\", ATTRS{media}==\"cdrom\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$CDLABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"sr[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$CDLABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"scd[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$CDLABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"pcd[0-9]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$CDLABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ elif [ -n "$LABEL" ]; then
+ echo "KERNEL==\"hd[a-z]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$LABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"hd[a-z][0-9]*\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$LABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"sd[a-z]\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$LABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"sd[a-z][0-9]*\", PROGRAM=\"/lib/udev/vol_id -l %N\", RESULT==\"$LABEL\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ elif [ -n "$UUID" ]; then
+ echo "KERNEL==\"hd[a-z]\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"$UUID\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"hd[a-z][0-9]*\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"$UUID\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"sd[a-z]\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"$UUID\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"sd[a-z][0-9]*\", PROGRAM=\"/lib/udev/vol_id -u %N\", RESULT==\"$UUID\", SYMLINK+=\"live\"" >> /sysroot/etc/udev/rules.d/50-udev*
fi
# add rules for loop devices created by this mayflower generated init
# i.e. /dev/live-osimg, /dev/live-osmin, /dev/live-overlay,
# and /dev/live-squashed
- if [ -b "\$SQUASHED_LOOPDEV" ]; then
- echo "KERNEL==\"\${SQUASHED_LOOPDEV#/dev/}\" SYMLINK+=\"live-squashed\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ if [ -b "$SQUASHED_LOOPDEV" ]; then
+ echo "KERNEL==\"${SQUASHED_LOOPDEV#/dev/}\" SYMLINK+=\"live-squashed\"" >> /sysroot/etc/udev/rules.d/50-udev*
fi
- if [ -b "\$OSMIN_SQUASHED_LOOPDEV" ]; then
- echo "KERNEL==\"\${OSMIN_SQUASHED_LOOPDEV#/dev/}\" SYMLINK+=\"live-squashed-osmin\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ if [ -b "$OSMIN_SQUASHED_LOOPDEV" ]; then
+ echo "KERNEL==\"${OSMIN_SQUASHED_LOOPDEV#/dev/}\" SYMLINK+=\"live-squashed-osmin\"" >> /sysroot/etc/udev/rules.d/50-udev*
fi
- if [ -b "\$OSMIN_LOOPDEV" ]; then
- echo "KERNEL==\"\${OSMIN_LOOPDEV#/dev/}\" SYMLINK+=\"live-osmin\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ if [ -b "$OSMIN_LOOPDEV" ]; then
+ echo "KERNEL==\"${OSMIN_LOOPDEV#/dev/}\" SYMLINK+=\"live-osmin\"" >> /sysroot/etc/udev/rules.d/50-udev*
fi
- echo "KERNEL==\"\${BASE_LOOPDEV#/dev/}\" SYMLINK+=\"live-osimg\"" >> /sysroot/etc/udev/rules.d/50-udev*
- echo "KERNEL==\"\${OVERLAY_LOOPDEV#/dev/}\" SYMLINK+=\"live-overlay\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"${BASE_LOOPDEV#/dev/}\" SYMLINK+=\"live-osimg\"" >> /sysroot/etc/udev/rules.d/50-udev*
+ echo "KERNEL==\"${OVERLAY_LOOPDEV#/dev/}\" SYMLINK+=\"live-overlay\"" >> /sysroot/etc/udev/rules.d/50-udev*
mount -n -o ro,remount /sysroot
}
@@ -665,15 +665,15 @@ if [ -e /sysroot/LiveOS/osmin.img ]; then
OSMINSQFS=/sysroot/LiveOS/osmin.img
fi
-if [ -n "\$OSMINSQFS" ]; then
+if [ -n "$OSMINSQFS" ]; then
# decompress the delta data
- dd if=\$OSMINSQFS of=/osmin.img 2> /dev/null
- OSMIN_SQUASHED_LOOPDEV=\$( losetup -f )
- losetup \$OSMIN_SQUASHED_LOOPDEV /osmin.img
+ dd if=$OSMINSQFS of=/osmin.img 2> /dev/null
+ OSMIN_SQUASHED_LOOPDEV=$( losetup -f )
+ losetup $OSMIN_SQUASHED_LOOPDEV /osmin.img
mkdir -p /squashfs.osmin
- mount -n -t squashfs -o ro \$OSMIN_SQUASHED_LOOPDEV /squashfs.osmin
- OSMIN_LOOPDEV=\$( losetup -f )
- losetup \$OSMIN_LOOPDEV /squashfs.osmin/osmin
+ mount -n -t squashfs -o ro $OSMIN_SQUASHED_LOOPDEV /squashfs.osmin
+ OSMIN_LOOPDEV=$( losetup -f )
+ losetup $OSMIN_LOOPDEV /squashfs.osmin/osmin
umount -l /squashfs.osmin
fi
@@ -683,8 +683,8 @@ if [ -e /sysroot/LiveOS/ext3fs.img ]; then
EXT3FS="/sysroot/LiveOS/ext3fs.img"
fi
-if [ -n "\$EXT3FS" ] ; then
- if [ "\$quiet" != "1" ] ; then
+if [ -n "$EXT3FS" ] ; then
+ if [ "$quiet" != "1" ] ; then
echo "setting up embedded ext3 fs "
fi
@@ -692,8 +692,8 @@ if [ -n "\$EXT3FS" ] ; then
mknod /dev/mapper/control c 10 63
modprobe dm_snapshot
- BASE_LOOPDEV=\$( losetup -f )
- losetup \$BASE_LOOPDEV \$EXT3FS
+ BASE_LOOPDEV=$( losetup -f )
+ losetup $BASE_LOOPDEV $EXT3FS
umount -l /sysroot
do_live_from_base_loop
@@ -705,9 +705,9 @@ if [ -e /sysroot/LiveOS/squashfs.img ]; then
SQUASHED="/sysroot/LiveOS/squashfs.img"
fi
-if [ -e "\$SQUASHED" ] ; then
+if [ -e "$SQUASHED" ] ; then
- if [ "\$quiet" != "1" ] ; then
+ if [ "$quiet" != "1" ] ; then
echo "setting up embedded squash -> ext3 fs "
fi
@@ -715,51 +715,51 @@ if [ -e "\$SQUASHED" ] ; then
mknod /dev/mapper/control c 10 63
modprobe dm_snapshot
- if [ "\$live_ram" == "1" ] ; then
+ if [ "$live_ram" == "1" ] ; then
echo "Copying live image to RAM..."
echo "(this may take a few minutes)"
- dd if=\$SQUASHED of=/squashed.img bs=512 2> /dev/null
+ dd if=$SQUASHED of=/squashed.img bs=512 2> /dev/null
umount -n /sysroot
echo "Done copying live image to RAM."
eject -p /dev/root
SQUASHED="/squashed.img"
fi
- SQUASHED_LOOPDEV=\$( losetup -f )
- losetup \$SQUASHED_LOOPDEV \$SQUASHED
+ SQUASHED_LOOPDEV=$( losetup -f )
+ losetup $SQUASHED_LOOPDEV $SQUASHED
mkdir -p /squashfs
- mount -n -t squashfs -o ro \$SQUASHED_LOOPDEV /squashfs
+ mount -n -t squashfs -o ro $SQUASHED_LOOPDEV /squashfs
- BASE_LOOPDEV=\$( losetup -f )
- losetup \$BASE_LOOPDEV /squashfs/LiveOS/ext3fs.img
+ BASE_LOOPDEV=$( losetup -f )
+ losetup $BASE_LOOPDEV /squashfs/LiveOS/ext3fs.img
umount -l /squashfs
- if [ "\$live_ram" == "0" ] ; then
+ if [ "$live_ram" == "0" ] ; then
umount -l /sysroot
fi
do_live_from_base_loop
fi
-if [ -b "\$OSMIN_LOOPDEV" ]; then
+if [ -b "$OSMIN_LOOPDEV" ]; then
# set up the devicemapper snapshot device, which will merge
# the normal live fs image, and the delta, into a minimzied fs image
- echo "0 \$( blockdev --getsize \$BASE_LOOPDEV ) snapshot \$BASE_LOOPDEV \$OSMIN_LOOPDEV p 8" | dmsetup create --readonly live-osimg-min
+ echo "0 $( blockdev --getsize $BASE_LOOPDEV ) snapshot $BASE_LOOPDEV $OSMIN_LOOPDEV p 8" | dmsetup create --readonly live-osimg-min
fi
-if [ "\$eshell" == "1" ] ; then
+if [ "$eshell" == "1" ] ; then
echo "Shell requested on kernel commandline."
echo "Rootfs is mounted ro on /sysroot. Exit to continue booting."
echo
bash
fi
-if [ -x /sysroot\$init ] ; then
+if [ -x /sysroot$init ] ; then
# Leave initramfs and transition to rootfs
- kill \`pidof udevd\`
- if [ "\$quiet" != "1" ] ; then
- echo "transfering control to \$init"
+ kill `pidof udevd`
+ if [ "$quiet" != "1" ] ; then
+ echo "transfering control to $init"
fi
exec /sbin/run-init
@@ -772,7 +772,7 @@ if [ -x /sysroot\$init ] ; then
bash
else
echo "---------------------------------------------------------"
- echo "WARNING: Requested \$init binary does not exist on rootfs."
+ echo "WARNING: Requested $init binary does not exist on rootfs."
echo "---------------------------------------------------------"
echo
echo "Dropping to a shell. Good luck!"
16 years, 5 months
[PATCH] Fix unquoted $(cat ...) in mayflower's big here-doc,
by Jim Meyering
Hi,
I noticed that the following part of the big here-document
in creator/mayflower was not backslash-escaped (along with the
following two lines):
cat > init <<EOF
...
if [ -f /etc/fstab ] ; then
root=$(cat /etc/fstab | while read d m f o r; do if [ "$m" == "/" ] ; then echo $d; fi; done)
So it would end up generating hard-coded bits like this:
if [ -f /etc/fstab ] ; then
root=dm_multipath
[dm_mulipath came from an earlier loop where $m iterated
through module names]
At first I just fixed that by backslash-quoting things,
but then I realized that nothing in that entire here document
required expansion, so I've attached a better patch.
The patch looks big, but it's largely mechanical:
It uses <<'EOF' rather than <<EOF, which saves you the readability
and maintenance hassle of backslash-escaping all of the "$" and "`"
in the "init" here-doc.
16 years, 5 months
uncooked food for thought
by Jane Dogalt
Just thought I should should mention... That I've finally put most of the
stuff I've been working on forever online.
This is absolutely a broken work-in-progress release, and not yet the drop in
functional replacement for livecd-tools that it will become (soon...).
http://filteredperception.org/smiley/projects/viros/releases
The interesting things it has (but again, in no way even a respectable
development release), are-
* a livecd generation mechanism that runs without root privileges, utilizing
qemu
* a tool 'smirfgen' which is like mayflower, but much more flexible
* a live.init which is like the one embedded in mayflower, but much more
flexible.
* a tool qfakeroot, which is in the spirit of fakeroot, but can do even more
stuff, such as trivially convert a tarball into an ext3 filesystem image,
without root priveleges.
Again, I don't expect this to be useful for anyone. But since I've alluded to
it about half a million times over the past couple years on this list, I
figured I'd mention the code availability.
In the near future, perhaps before I clean it up to work as a drop in
(no-root-privs-required) replacement for livecd-tools, I will try to release a
version that can at least trivially modify the official f8-livecd iso image to
support liveusb-persistence (again, without requireing root privs, via the
coolness that is qfakeroot(&smirfgen).
For now, perhaps the most interesting thing to look over, would be how I
rewrote the init (tools/ZyX-Live-OS/live.init). And then perhaps look at how I
abstracted what mayflower does, into smirfgen, and the
tools/ZyX-Live-OS/smirfgen.cfg. And then after that, realize that how those
things make qfakeroot possible. And then imagine how qfakeroot could be used
to remove all root-priv requirements from the entire fedora recompile process.
peace...
-jdog
P.S.- for the love of democracy, help get Cheney impeached. I'd gladly trade a
life in paradise for one of poverty if it meant that future generations would
not inherit a world where Bill Clinton *WAS* impeached, and Dick Cheney
*WASN'T*.
____________________________________________________________________________________
Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/
16 years, 5 months
liveinst creating wrong partition
by dzho002
Hi folks,
I created a Fedora Core 8 live CD using the
livecd-creator tool successfully. It boots up fine
from a USB pen drive and is able to install to hard
drive. But there is a problem with the size of "/"
partition (dev/sda2) on the hard disk. The commands df
and fdisk report different size.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 4.0G 2.7G 1.3G 68% /
/dev/sda5 26G 209M 24G 1% /var
tmpfs 252M 12K 252M 1% /dev/shm
fdisk /dev/sda -l
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005e0df
Device Boot Start End Blocks Id
System
/dev/sda1 * 1 25 200781 83
Linux
/dev/sda2 26 1299 10233405 83
Linux
/dev/sda3 1300 1430 1052257+ 82
Linux swap / Solaris
/dev/sda4 1431 4865 27591637+ 5
Extended
/dev/sda5 1431 4865 27591606 83
Linux
I noticed that the layout of my "/" paritition is same
as /dev/mapper/livecd-rw on the live image. Looks like
liveinst created a wrong partition table somehow when
dumping the image to my hard disk. I have not seen
this problem before on FC 7. Is this likely a bug with
liveinst or livecd-creator? Or I just messed
something up.
I created the FC8 live cd on a FC7 system. Because I
only have 1.9 GB free space after installation, I do
not have enough space to create a live CD from the new
FC8 system. So during the installation, I created a
custom layout that puts /var onto /dev/hda5 (a 24G
partition). I thought that would give livecd tool
enough temp space to work with. But I got an error
like this,
Error creating Live CD : Unable to install:
[('installing package glibc-common-2.7-2 needs 33MB on
the /var/tmp/livecd-creator-jrowT1/install_root
filesystem', (9,
'/var/tmp/livecd-creator-jrowT1/install_root',
33722368L)), ('installing package
gnome-backgrounds-2.20.0-1.fc8 needs 34MB on the
/var/tmp/livecd-creator-jrowT1/install_root
filesystem', (9,
'/var/tmp/livecd-creator-jrowT1/install_root',
35389440L)), ('installing package
rt73usb-firmware-1.8-4 needs 34MB on the
/var/tmp/livecd-creator-jrowT1/install_root
filesystem', (9,
'/var/tmp/livecd-creator-jrowT1/install_root',
35401728L)), ('installing package words-3.0-12.fc7
needs 39MB on the
/var/tmp/livecd-creator-jrowT1/install_root
filesystem', (9,
'/var/tmp/livecd-creator-jrowT1/install_root',
40628224L)),
....
....
....
('installing package
system-config-keyboard-1.2.11-3.fc8 needs 1806MB on
the /var/tmp/livecd-creator-jrowT1/install_root
filesystem', (9,
'/var/tmp/livecd-creator-jrowT1/install_root',
1893142528L)), ('installing package
anaconda-11.3.0.50-2 needs 1823MB on the
/var/tmp/livecd-creator-jrowT1/install_root
filesystem', (9,
'/var/tmp/livecd-creator-jrowT1/install_root',
1910513664L)), ('installing package
system-config-boot-0.2.17-1.fc8 needs 1823MB on the
/var/tmp/livecd-creator-jrowT1/install_root
filesystem', (9,
'/var/tmp/livecd-creator-jrowT1/install_root',
1910923264L))]
Failed to build the live image!!!
Some of those size are nonsense to me, e.g.,
system-config-boot-0.2.17-1.fc8 needs 1823MB???
Can anyone explain what went wrong? Any help would be
appreciated. Thank you.
Dan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
16 years, 5 months
livecd error - SQUASHFS error: zlib_inflate returned unexpected
by Antonio Olivares
Dear all,
I have created a livecd using livecd tools, xmaxima
does not work :(
Failed to eval region
Failed to eval region
while executing
"error [mc "Failed to eval region"]"
(procedure "doInvoke" line 50)
invoked from within
"doInvoke .browser.t1.text @133,193 "
(command bound to event)
, however maxima from CLI does :)
[fedora@localhost ~]$ maxima
Maxima 5.13.0 http://maxima.sourceforge.net
Using Lisp SBCL 1.0.10
Distributed under the GNU Public License. See the file
COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function
bug_report()
provides bug reporting information.
(%i1) integrate(1/(x^2+1),x);
(%o1) atan(x)
(%i2) quit();
[fedora@localhost ~]$
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain
localhost
::1 localhost6.localdomain6 localhost6
However SQUASHFS ERROR is here:
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
SQUASHFS error: zlib_inflate returned unexpected
result 0xfffffffb, srclength 65536, avail_in 179,
avail_out 0
SQUASHFS error: sb_bread failed reading block 0xae8f3
SQUASHFS error: Unable to read page, block 2ba32086,
size ac2d
[fedora@localhost ~]$ ICE default IO error handler
doing an exit(), pid = 3543, errno = 11
ICE default IO error handler doing an exit(), pid =
3893, errno = 11
[fedora@localhost ~]$
dhcp did not work from the begining, however running
dhclient cured this
[fedora@localhost ~]$ su -
[root@localhost ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr
00:0F:1F:88:70:69
inet6 addr: fe80::20f:1fff:fe88:7069/64
Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:241 errors:0 dropped:0 overruns:0
frame:0
TX packets:6 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:1000
RX bytes:27683 (27.0 KiB) TX bytes:492
(492.0 b)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1225 errors:0 dropped:0
overruns:0 frame:0
TX packets:1225 errors:0 dropped:0
overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3070620 (2.9 MiB) TX bytes:3070620
(2.9 MiB)
[root@localhost ~]# dhclient eth0
Internet Systems Consortium DHCP Client V3.0.6-Fedora
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:0f:1f:88:70:69
Sending on LPF/eth0/00:0f:1f:88:70:69
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67
interval 7
DHCPOFFER from 10.154.21.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.154.21.1
cp: cannot stat `/etc/resolv.conf': No such file or
directory
bound to 10.154.21.3 -- renewal in 290553 seconds.
[root@localhost ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr
00:0F:1F:88:70:69
inet addr:10.154.21.3 Bcast:10.154.21.255
Mask:255.255.255.0
inet6 addr: fe80::20f:1fff:fe88:7069/64
Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:1046 errors:0 dropped:0
overruns:0 frame:0
TX packets:616 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:1000
RX bytes:570353 (556.9 KiB) TX bytes:103434
(101.0 KiB)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1225 errors:0 dropped:0
overruns:0 frame:0
TX packets:1225 errors:0 dropped:0
overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3070620 (2.9 MiB) TX bytes:3070620
(2.9 MiB)
Here's lspci if it is relevant:
[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation
82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 04)
00:01.0 PCI bridge: Intel Corporation
82915G/P/GV/GL/PL/910GL PCI Express Root Port (rev 04)
00:02.0 VGA compatible controller: Intel Corporation
82915G/GV/910GL Integrated Graphics Controller (rev
04)
00:02.1 Display controller: Intel Corporation 82915G
Integrated Graphics Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1
(rev 03)
00:1c.1 PCI bridge: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2
(rev 03)
00:1d.0 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev
03)
00:1d.1 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev
03)
00:1d.2 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev
03)
00:1d.3 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev
03)
00:1d.7 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI
Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge
(rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio
Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR
(ICH6/ICH6R) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller
(rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW
(ICH6/ICH6W) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW
(ICH6 Family) SMBus Controller (rev 03)
02:00.0 Ethernet controller: Broadcom Corporation
NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev
01)
[root@localhost ~]#
Are the SQUASHFS errors important?
Regards,
Antonio
____________________________________________________________________________________
Get easy, one-click access to your favorites.
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs
16 years, 5 months
Install from a Live CD iso/tree?
by Philip Rhoades
People,
On the main Fedora list there is a post saying that a minimum install CD
set is 3 - would it be possible to boot from CD1 and finish the install
from a Live CD tree on another drive?
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
GPO Box 3411
Sydney NSW 2001
Australia
Fax: +61:(0)2-8221-9599
E-mail: phil(a)pricom.com.au
16 years, 5 months
I urgently need your help in Fedora LiveCD.
by Thiago Braga Santana
Hi, Fedora-live-list.
Sorry to ask directly to you, but I asked some questions
to the Fedora Project group, with no succesfull answer.
http://www.fedora.org.br/fortopic7100.html
My name is Thiago Santana and I doing a derivative of
Fedora LiveCD for a Point of Sale application.
I need to understand a little bit of the Ramdrive
conceptual framework used by you in 'Fedora 7 LiveCD'.
There is a file system mounted on the root directory
("/"). How the system is it able to distinguish the
files and
programs previously recorded on the CD image from files
and programs created by me?
If I understand correctly, some files are stored in RAM,
but I didn't get how the file system manages the
available storage space. I want to know how to calculate
the RAM space I need for my files.
Furthermore, it appears to be that when I open some file
from the image for editing, the full contents of the
file is copied to RAM. Is that the case? If it is so,
what happens if I open a great number of files?
I will be waiting for your response.
Thank advance your information.
My best regards,
Thiago Santana
16 years, 5 months