Commit 72a2207b authored by Ryan Jackson's avatar Ryan Jackson

Fix create-image for real this time

parent f39a629e
......@@ -126,7 +126,7 @@ else {
# work at the moment, but if device names change again
# it could break.
if (`uname -s` eq 'Linux') {
if ($^O eq 'linux') {
$device =~ m#/dev/(\D+)(\d+)#;
($dtype, $dunit) = ($1, $2);
$dunit -= 4 if ($dtype eq 'ad' && $dunit > 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment