modify error of operation
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -105,6 +105,8 @@ main ()
|
||||
elilo)
|
||||
echo "install elilo";
|
||||
sed -i '/tmppoint/d' $TARGET/etc/fstab
|
||||
umount /tmp/tmppoint
|
||||
rm -rf /tmp/tmppoint
|
||||
;;
|
||||
*)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user