Revision: 2701
http://ipcop.svn.sourceforge.net/ipcop/?rev=2701&view=rev
Author: gespinasse
Date: 2009-04-12 17:14:47 +0000 (Sun, 12 Apr 2009)
Log Message:
-----------
Fix missing 'on' to set raid flag
primary keyword is not allowed on sun label with mkpart
Modified Paths:
--------------
ipcop/trunk/src/scripts/disk-partition
Modified: ipcop/trunk/src/scripts/disk-partition
===================================================================
--- ipcop/trunk/src/scripts/disk-partition 2009-04-12 17:11:29 UTC (rev
2700)
+++ ipcop/trunk/src/scripts/disk-partition 2009-04-12 17:14:47 UTC (rev
2701)
@@ -35,10 +35,10 @@
parted_call()
{
if ( ! /usr/bin/parted -s $1 ); then
- echo "Fail: parted $1"
+ echo "Fail: parted -s $1"
exit 1
else
- echo "Done: parted $1"
+ echo "Done: parted -s $1"
fi
}
@@ -74,8 +74,8 @@
parted_call "$dev mkpart primary ext2 ${root_size}MiB ${disk_size}MiB"
parted_call "$dev set 1 boot on"
if [ x$install_type = x"raid" ]; then
- parted_call "$dev set 1 raid"
- parted_call "$dev set 2 raid"
+ parted_call "$dev set 1 raid on"
+ parted_call "$dev set 2 raid on"
fi
;;
alpha)
@@ -86,8 +86,8 @@
parted_call "$dev mkpart primary ext2 ${root_size}MiB ${disk_size}MiB"
parted_call "$dev set 1 boot on"
if [ x$install_type = x"raid" ]; then
- parted_call "$dev set 1 raid"
- parted_call "$dev set 2 raid"
+ parted_call "$dev set 1 raid on"
+ parted_call "$dev set 2 raid on"
fi
;;
powerpc)
@@ -104,20 +104,20 @@
parted_call "$dev mkpart primary ext2 ${root_size}MiB ${disk_size}MiB"
parted_call "$dev name 4 $varlog_name"
if [ x$install_type = x"raid" ]; then
- parted_call "$dev set 3 raid"
- parted_call "$dev set 4 raid"
+ parted_call "$dev set 3 raid on"
+ parted_call "$dev set 4 raid on"
fi
;;
sparc)
erase_partition
parted_call "$dev mklabel sun"
# '/ partition' need to be on the first partition and start at sector 0
- parted_call "$dev mkpart primary ext2 0 ${root_size}MiB"
- parted_call "$dev mkpart primary ext2 ${root_size}MiB ${disk_size}MiB"
+ parted_call "$dev mkpart ext2 0 ${root_size}MiB"
+ parted_call "$dev mkpart ext2 ${root_size}MiB ${disk_size}MiB"
parted_call "$dev set 1 boot on"
if [ x$install_type = x"raid" ]; then
- parted_call "$dev set 1 raid"
- parted_call "$dev set 2 raid"
+ parted_call "$dev set 1 raid on"
+ parted_call "$dev set 2 raid on"
fi
;;
*)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn