Skip to content

Commit

Permalink
version bump for disk detection check
Browse files Browse the repository at this point in the history
  • Loading branch information
qbit committed Mar 25, 2015
1 parent 8070798 commit c478965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/ksh

version=1.0.3
version=1.0.4

grey="\033[01;30m"
red="\033[01;31m"
Expand Down Expand Up @@ -423,6 +423,7 @@ msg "${white}Fetching from: ${green}${URL}"

if [ $NO_INSTBOOT == false ]; then
boot_disk=$(sysctl hw.disknames | cut -d= -f2 | cut -d: -f1)
dmesg | grep "root on" | grep -q $boot_disk || error "Can't detect root disk! Manually run installboot!"
msg "Installing bootstrap on ${boot_disk}"
installboot -v $boot_disk || error "Something bad happened - check your boot disk!"
fi
Expand Down

0 comments on commit c478965

Please sign in to comment.