summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-08 09:22:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-08 09:22:53 +0000
commit631c361640d22e40d19b43d3b1e63b4da84ad18a (patch)
tree46b1051497aa9dc5ba6dce2a094bd9ea36fa1184
parenta8e3f8ca13a03356b89d096b25c7e9223aae89c8 (diff)
downloadalpine-conf-631c361640d22e40d19b43d3b1e63b4da84ad18a.zip
setup-disk: fix booting from cciss devices
-rw-r--r--setup-disk.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in
index a2b610f..6f49e6a 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -206,6 +206,14 @@ install_mounted_root() {
raid[456]) raidmod="$raidmod,raid456";;
esac
done
+
+ # check if we need hardware raid drivers
+ case $rootdev in
+ /dev/cciss/*)
+ initfs_features="$(echo $initfs_features | sed 's/raid//') raid"
+ ;;
+ esac
+
if [ -n "$VERBOSE" ]; then
echo "Root device: $rootdev"
echo "Root filesystem: $root_fs"