summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-04-30 10:31:48 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-04-30 10:31:48 -0700
commit4829b46c2453e3f94409ce622e1faedf3d11b457 (patch)
tree89203852a85f88fa417c45d0392528842c9a9fe1 /scripts
parenta9e184fcbacc5702afc487f7992ccab1cc1456db (diff)
downloadvyatta-cfg-system-4829b46c2453e3f94409ce622e1faedf3d11b457.tar.gz
vyatta-cfg-system-4829b46c2453e3f94409ce622e1faedf3d11b457.zip
Yet another better alignment start
Parted has magic value '0%' which causes it to choose optimum alignment (2048 on most disks).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-system4
-rwxr-xr-xscripts/install/install-get-partition4
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/install-system b/scripts/install-system
index 3d7ab5ee..4d712ee7 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -77,8 +77,8 @@ PARTITION=''
# default file system type
ROOT_FSTYPE="ext3"
-# alignment of root partition (skip to 32Kb boundary)
-ROOT_OFFSET="63S"
+# start of root partition (0% is magic to tell parted to align)
+ROOT_OFFSET="0%"
# Process ID of this script for the lame marketing spinner
SPID=$$
diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition
index e8ccb153..debb2eaa 100755
--- a/scripts/install/install-get-partition
+++ b/scripts/install/install-get-partition
@@ -34,8 +34,8 @@ PARTITION=''
# default file system type
ROOT_FSTYPE='ext3'
-# alignment of root partition (skip to 32Kb boundary)
-ROOT_OFFSET="63S"
+# start of root partition (0% is magic to tell parted to align)
+ROOT_OFFSET="0%"
warn_of_dire_consequences () {
# Give the user a requisite warning that we are about to nuke their drive