IA-64 CPU suppout tmppoint
This commit is contained in:
@@ -29,14 +29,7 @@ source ./functions
|
||||
|
||||
main ()
|
||||
{
|
||||
info "copy $KERNELS/* to $TARGET/boot/"
|
||||
if [ -d "$KERNELS" ];then
|
||||
cp -r "$KERNELS"/* "$TARGET/boot/" 2>>$DEV_LOG
|
||||
else
|
||||
err "$KERNELS directory doesn't exist "
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
info "copy $MODULES/* to $TARGET/lib/modules/"
|
||||
if [ -d "$MODULES" ];then
|
||||
cp -r "$MODULES"/* "$TARGET/lib/modules/" 2>>$DEV_LOG
|
||||
@@ -47,6 +40,15 @@ main ()
|
||||
|
||||
case `uname -m` in
|
||||
x86_64 | i686)
|
||||
info "copy $KERNELS/* to $TARGET/boot/"
|
||||
|
||||
if [ -d "$KERNELS" ];then
|
||||
cp -r "$KERNELS"/* "$TARGET/boot/" 2>>$DEV_LOG
|
||||
else
|
||||
err "$KERNELS directory doesn't exist "
|
||||
exit 1
|
||||
fi
|
||||
|
||||
info "copy $INITRD/initrd.gz to $TARGET/boot/initrd.gz.old"
|
||||
if [ -e "$INITRD/initrd.gz" ];then
|
||||
cp "$INITRD/initrd.gz" "$TARGET/boot/initrd.gz.old" 2>>$DEV_LOG
|
||||
@@ -63,7 +65,16 @@ main ()
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
ia64)
|
||||
ia64)
|
||||
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
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
err "architecture is not allowing"
|
||||
|
||||
@@ -104,7 +104,7 @@ main ()
|
||||
;;
|
||||
elilo)
|
||||
echo "install elilo";
|
||||
sed -i '/boot/d' $TARGET/etc/fstab
|
||||
sed -i '/tmppoint/d' $TARGET/etc/fstab
|
||||
;;
|
||||
*)
|
||||
|
||||
|
||||
@@ -45,8 +45,6 @@ mount_partition ()
|
||||
local fs_type="$3"
|
||||
local fs_mntops="$4"
|
||||
|
||||
mountpoint=$(echo "$mountpoint" |sed "s@`uname -m`@@g")
|
||||
|
||||
if [ $# -lt 3 ];then
|
||||
err "$FUNCNAME function argument error, it need 3 arguments at least !"
|
||||
return 1
|
||||
@@ -88,6 +86,12 @@ mount_partition ()
|
||||
fi
|
||||
|
||||
info "mounting $devname on $mount_pos with $fs_type filesystem"
|
||||
|
||||
if [ $mount_pos = "$TARGET/tmppoint" ]; then
|
||||
mkdir -p "/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