modify error of operation

This commit is contained in:
hugang
2011-03-07 15:19:23 +08:00
parent 0bdbe9d664
commit 95c70b1c53
4 changed files with 4 additions and 4 deletions

View File

@@ -224,7 +224,7 @@ GRUB_DIR="$TARGET/boot/grub"
GRUBMENU="$GRUB_DIR/menu.lst"
GRUBCNF="$GRUB_DIR/grub.conf.sample"
DEVICEMAP="$GRUB_DIR/device.map"
ELILO_CNF="$TARGET/boot/efi/boot/elilo.conf"
ELILO_CNF="/tmp/tmppoint/efi/boot/elilo.conf"
# The quotes around '$@' are essential!
# in this way we can accept whitespace as parameter.

View File

@@ -69,8 +69,6 @@ main ()
info "copy $KERNELS/* to /tmp/tmppoint"
if [ -d "$KERNELS" ];then
cp -r "$KERNELS"/* "/tmp/tmppoint/" 2>>$DEV_LOG
umount /tmp/tmppoint
rm /tmp/tmppoint
else
err "$KERNELS directory doesn't exist "
exit 1

View File

@@ -105,6 +105,8 @@ main ()
elilo)
echo "install elilo";
sed -i '/tmppoint/d' $TARGET/etc/fstab
umount /tmp/tmppoint
rm -rf /tmp/tmppoint
;;
*)

View File

@@ -89,7 +89,7 @@ mount_partition ()
if [ $mount_pos = "$TARGET/tmppoint" ]; then
mkdir -p "/tmp/tmppoint"
$mount_pos="/tmp/tmppoint"
mount_pos="/tmp/tmppoint"
fi
mount -t "$fs_type" -o $fs_mntops "$devname" "$mount_pos" 1>>"$DEV_LOG" 2>&1