diff options
author | Mike Westerhof <mwester@dls.net> | 2008-08-29 17:00:48 +0000 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2008-08-29 17:00:48 +0000 |
commit | e688507ddf5b39b7bb900bae0c6db4d53bf8451d (patch) | |
tree | a64f2bfc463bd2d200a01e6c1ca9cf503099e0e1 /packages/slugos-init/files/boot | |
parent | ba59d10ded836a1ae40817bd1f75dd36435c2cc1 (diff) |
SlugOS 5.0: enable mdraid support
Diffstat (limited to 'packages/slugos-init/files/boot')
-rw-r--r-- | packages/slugos-init/files/boot/disk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/slugos-init/files/boot/disk b/packages/slugos-init/files/boot/disk index 63370ce340..34c002ba0b 100644 --- a/packages/slugos-init/files/boot/disk +++ b/packages/slugos-init/files/boot/disk @@ -24,9 +24,21 @@ then # waiting for disk if test "$sleep" -gt 0 then - echo "Waiting $sleep seconds for disk" + echo "boot: waiting $sleep seconds for disk" sleep "$sleep" fi + # Attempt to assemble the RAID if necessary + if (echo $device | grep -q "^/dev/md") + then + if test -n "$MDUUID" + then + echo "boot: assembling RAID array (UUID)" + mdadm -Acpartitions --auto=md --uuid="$MDUUID" $device + else + echo "boot: assembling RAID array (config file)" + mdadm -As --auto=md $device + fi + fi # # fire the boot echo "boot: rootfs: mount $* $device [$UUID]" |