sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (892660c20c06e43bb8041b4a42442fcb7d71e796)
- From: Justin Boffemmyer <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (892660c20c06e43bb8041b4a42442fcb7d71e796)
- Date: Thu, 1 Jan 2009 16:55:05 -0600
GIT changes to test cauldron by Justin Boffemmyer <flux AT sourcemage.org>:
scripts/mkinitrd.sh | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 892660c20c06e43bb8041b4a42442fcb7d71e796
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>
scripts/mkinitrd.sh: fix OUTPUT and missing space
There was a missing space for I/O redirection that caused bash to get
confused (ambiguous redirection). OUTPUT was previously not being
set to a default, so if it wasn't passed on the command-line there would
be no output file.
diff --git a/scripts/mkinitrd.sh b/scripts/mkinitrd.sh
index 02e127e..ea25222 100755
--- a/scripts/mkinitrd.sh
+++ b/scripts/mkinitrd.sh
@@ -57,6 +57,8 @@ fi
ISO_DIR=$1
KERNEL_VERSION=$2
+OUTPUT="${OUTPUT:-./initrd.gz}"
+
if ! [[ -d $ISO_DIR/lib/modules/$KERNEL_VERSION/kernel ]] ;then
echo "Chroot failed sanity check:"
echo "Unable to find $ISO_DIR/lib/modules/$KERNEL_VERSION/kernel"
@@ -155,7 +157,7 @@ function mk_initrd_file() {
cp -a $1/* $tmp_mountdir
umount -d $tmp_mountdir
- gzip -c $tmp_file >$2
+ gzip -c $tmp_file > $2
rm -rf $tmp_file $tmp_mountdir
echo "initrd is at $2, compressed $(du -ks $2 | cut -d$'\t' -f1)K,
uncompressed ${initrd_size}K."
- [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (892660c20c06e43bb8041b4a42442fcb7d71e796), Justin Boffemmyer, 01/01/2009
Archive powered by MHonArc 2.6.24.