mkdir /mnt/iso
mount -o loop /iso/$iso /mnt/iso
SRC=iso
- elif [ ! -e /mnt/$SRC/ramdisk.img ]; then
+ elif [ ! -e /mnt/$SRC/$RAMDISK ]; then
return 1
fi
- zcat /mnt/$SRC/ramdisk.img | cpio -id > /dev/null
+ zcat /mnt/$SRC/$RAMDISK | cpio -id > /dev/null
if [ -e /mnt/$SRC/system.sfs ]; then
mount -o loop,noatime /mnt/$SRC/system.sfs /sfs
mount -o loop,noatime /sfs/system.img system
echo -n Detecting Android-x86...
[ -z "$SRC" -a -n "$BOOT_IMAGE" ] && SRC=`dirname $BOOT_IMAGE`
+[ -z "$RAMDISK" ] && RAMDISK=ramdisk.img
for c in `cat /proc/cmdline`; do
case $c in
"\nDo you want to install /system directory as read-write?\n\nMaking /system be read-write is easier for debugging, but it needs more disk space and longer installation time." 10 61
instal_rw=$?
- files="mnt/$SRC/kernel mnt/$SRC/initrd.img mnt/$SRC/ramdisk.img"
+ files="mnt/$SRC/kernel mnt/$SRC/initrd.img mnt/$SRC/$RAMDISK"
if [ $instal_rw -eq 0 ]; then
if [ "$fs" = "vfat" -o "$fs" = "fuseblk" ]; then
[ -e /sfs/system.img ] && sysimg="/sfs/system.img" || sysimg="mnt/$SRC/system.*"