SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Sun Oct 28 19:19:56 CET 2007
Author: glen
Date: Sun Oct 28 19:19:56 2007
New Revision: 8895
Modified:
geninitrd/trunk/geninitrd
Log:
- alias romfs,cramfs
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Sun Oct 28 19:19:56 2007
@@ -1057,8 +1057,8 @@
pack_version="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d",$1,$2)}'`"
pack_version_long="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d%03d",$1,$2,$3)}'`"
-if [ "x" = "x$INITRDFS" ]; then
- if [ "x" = "x$FS" ]; then
+if [ -z "$INITRDFS" ]; then
+ if [ -z = "$FS" ]; then
# default value
if [ "$pack_version" -ge "002005" ]; then
INITRDFS="initramfs"
@@ -1098,12 +1098,12 @@
die "/sbin/mke2fs is missing"
fi
;;
- rom)
+ rom|romfs)
if [ ! -x /sbin/genromfs ]; then
die "/sbin/genromfs is missing"
fi
;;
- cram)
+ cram|cramfs)
if [ ! -x /sbin/mkcramfs ]; then
die "/sbin/mkcramfs is missing"
fi
@@ -1787,7 +1787,7 @@
umount "$IMAGE"
;;
- rom)
+ rom|romfs)
genromfs -f "$IMAGE" -d "$MNTPOINT" -V "PLD initrd for kernel $kernel"
IMAGESIZE=$(stat -c %s $IMAGE | awk '{print int((($1/1024)+1023)/1024)*1024}')
debug "romfs image size: $IMAGESIZE ($IMAGE)"
@@ -1795,7 +1795,7 @@
echo >&2 "$PROGRAM: Your image size is larger than 4096, Be sure to boot kernel with ramdisk_size=$IMAGESIZE!"
fi
;;
- cram)
+ cram|cramfs)
mkcramfs "$MNTPOINT" "$IMAGE"
;;
initramfs)
More information about the pld-cvs-commit
mailing list