]> gitweb.fluxo.info Git - hydra.git/commitdiff
Bootless: always use first partition
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Jun 2016 19:03:12 +0000 (16:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Jun 2016 19:03:12 +0000 (16:03 -0300)
doc/todo.rst
share/hydra/bootless

index 7a19a7d0f053e3e15ddbe185fd53cbf026fde98d..e88294fee03e111ab02e918cca6cdcea494b0807 100644 (file)
@@ -3,7 +3,6 @@ TODO
 
 - proper documentation.
 - install: move to /usr/local/share/hydra.
-- bootless: always use first partition (like `/dev/sdb1`).
 - ssh-config: hydra integration using a proxy command.
 - init: version control in the superproject?
 - metrics and alarms subsystem.
index 774f9facaabbafb6fea932b79bd9529e31bf51b7..7f7de0f173ecc954fae752e1833dd0f4a64cb70b 100755 (executable)
@@ -76,14 +76,13 @@ EOF
     echo -n "Target device: "
     read device
   else
-    device=$1
+    usbdevice=$1
+    device="${usbdevice}1"
   fi
 
   if [ "$2" == "--rsync" ]; then
     rsync="true"
   fi
-
-  usbdevice=`echo ${device} | sed -e s/[0-9]\$//g`
   
   # Issue a warning
   hydra_bootless_warning ${device}
@@ -170,7 +169,8 @@ function hydra_bootless_update {
     echo -n "Target device: "
     read device
   else
-    device=$1
+    usbdevice=$1
+    device="${usbdevice}1"
   fi
 
   # Target device consistency check