Skip to content

Commit c478965

Browse files
committed
version bump for disk detection check
1 parent 8070798 commit c478965

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/ksh
22

3-
version=1.0.3
3+
version=1.0.4
44

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

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

0 commit comments

Comments
 (0)