aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-05-07 13:30:43 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 04:28:15 +0200
commitdcb691439b832faa7c3a252e7810116bc114c20e (patch)
tree7d747cc8280e2c7afc6f1b0be066bc4f71bc597f /include
parent632c24fb791b624d859e0c210c538830a5fdb4ba (diff)
Select the first available block device by default.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/partition.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/partition.sh b/include/partition.sh
index eed6db9..4eedcc3 100755
--- a/include/partition.sh
+++ b/include/partition.sh
@@ -24,7 +24,7 @@ set -ue
. /lib/fripost-partman/base.sh
# Configuration for a single disk
-device=/dev/sda
+device=$(fripost_list_devices | head -1)
raidLevel=
# Configuration for a RAID array