|
@@ -7,7 +7,7 @@ then
|
7
|
7
|
fi
|
8
|
8
|
|
9
|
9
|
disk="/dev/$1"
|
10
|
|
-partition=3
|
|
10
|
+partition=2
|
11
|
11
|
|
12
|
12
|
if [ ! -b "${disk}" ]
|
13
|
13
|
then
|
|
@@ -21,14 +21,6 @@ dd if=prololive.img of="${disk}" || {
|
21
|
21
|
exit 2
|
22
|
22
|
}
|
23
|
23
|
|
24
|
|
-echo "Creating data partition..."
|
25
|
|
-echo "n\np\n${partition}\n\n\nw\n" | sudo fdisk "${disk}" || {
|
26
|
|
- echo "Failed to create data partition" >&2
|
27
|
|
- exit 3
|
28
|
|
-}
|
29
|
|
-
|
30
|
|
-echo "Creating data partition filesystem..."
|
31
|
|
-sudo mkfs.fat -n data -F 32 "${disk}${partition}" || {
|
32
|
|
- echo "Failed to create data partition filesystem" >&2
|
33
|
|
- exit 4
|
34
|
|
-}
|
|
24
|
+echo "Resizing filesystem..."
|
|
25
|
+echo -e "d\n${partition}\nn\np\n${partition}\n\n\nw\n" | fdisk "${disk}"
|
|
26
|
+resize2fs "${disk}${partition}"
|