Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 13, 2012
@gentooboontoo Comment out partprobe after fdisk to fix unprobed /dev/sda3
While OK on Ubuntu live CD, it is not with Gento Live DVD 2011 x64

--snip--
spawn(): running command 'echo -en 'n\np\n3\n83\n\nw\n' | fdisk /dev/sda3'
...
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
...
* Formating devices
...
spawn(): running command 'mkfs.ext4 /dev/sda3'
...
could not stat /dev/sda3 --- No such file or directory
--snip--
75472ef
@gentooboontoo Merge branch 'partprobe-after-fdisk' 66fc7f7
Showing with 5 additions and 5 deletions.
  1. +5 −5 modules/partition.sh
View
10 modules/partition.sh
@@ -1,6 +1,6 @@
get_device_size_in_mb() {
local device=$1
-
+
if [ -h "${device}" ]; then
device=$(readlink ${device})
fi
@@ -11,7 +11,7 @@ get_device_size_in_mb() {
human_size_to_mb() {
local size=$1
local device_size=$2
-
+
debug human_size_to_mb "size=${size}, device_size=${device_size}"
if [ "${size}" = "+" -o "${size}" = "" ]; then
debug human_size_to_mb "size is + or blank...using rest of drive"
@@ -47,7 +47,7 @@ format_devnode() {
local device=$1
local partition=$2
local devnode=""
-
+
echo "${device}" | grep -q '[0-9]$'
if [ $? = "0" ]; then
devnode="${device}p${partition}"
@@ -60,11 +60,11 @@ format_devnode() {
fdisk_command() {
local device=$1
local cmd=$2
-
+
debug fdisk_command "running fdisk command '${cmd}' on device ${device}"
spawn "partprobe"
spawn "echo -en '${cmd}\nw\n' | fdisk ${device}"
-# spawn "partprobe"
+ spawn "partprobe"
# return $?
}

No commit comments for this range

Something went wrong with that request. Please try again.