View Single Post
kinchan's Avatar
Posts: 27 | Thanked: 57 times | Joined on May 2012 @ France
#386
i had a similar problem with the mounting. solved by modifying this part of the script.


Originally Posted by iamsrp View Post
There's a small typo in the install.sh script which turns two arguments into one:

=== modified file 'install.sh'
*** install.sh 2012-06-28 02:57:10 +0000
--- install.sh 2012-07-15 20:39:48 +0000
***************
*** 306,312 ****
[[ -f "$image_name_raw" ]] || ( [[ -f $image_name ]] && zcat $image_name > "$image_name_raw" ) || (wget "$url" && zcat "$image_name" > "$image_name_raw" ) || exit 1
mkdir -p "$mountpoint_ubuntu"
skip="$(parted -m $image_name_raw unit B print | grep '^2' | cut -d: -f2 | sed 's/B//')"
! mount -o "loop,offset=${skip}" -t auto "$image_name_raw $mountpoint_ubuntu" || exit 1
rm "${mountpoint_ubuntu}SWAP.swap"
cp -av "$mountpoint_ubuntu"* "$mountpoint_target"
umount "$mountpoint_ubuntu"
--- 306,312 ----
[[ -f "$image_name_raw" ]] || ( [[ -f $image_name ]] && zcat $image_name > "$image_name_raw" ) || (wget "$url" && zcat "$image_name" > "$image_name_raw" ) || exit 1
mkdir -p "$mountpoint_ubuntu"
skip="$(parted -m $image_name_raw unit B print | grep '^2' | cut -d: -f2 | sed 's/B//')"
! mount -o "loop,offset=${skip}" -t auto $image_name_raw $mountpoint_ubuntu || exit 1
rm "${mountpoint_ubuntu}SWAP.swap"
cp -av "$mountpoint_ubuntu"* "$mountpoint_target"
umount "$mountpoint_ubuntu"
Now the install is in progress
 

The Following User Says Thank You to kinchan For This Useful Post: