diff options
author | Juan RP <xtraeme@gmail.com> | 2014-05-02 08:33:02 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-05-02 08:33:02 +0200 |
commit | af9eafce3ab60159217c9c17426a3f43250d38b3 (patch) | |
tree | 80732944d36c7d447433e3bdefd23d88f31499b8 /1 | |
parent | de75d4bbb484877e1874cea025ae1711e297fbba (diff) | |
download | runit-void-af9eafce3ab60159217c9c17426a3f43250d38b3.tar.gz runit-void-af9eafce3ab60159217c9c17426a3f43250d38b3.tar.xz runit-void-af9eafce3ab60159217c9c17426a3f43250d38b3.zip |
1: enable dmraid/btrfs/lvm devices if commands are available.
Diffstat (limited to '1')
-rwxr-xr-x | 1 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1 b/1 index 45405ee..ec47773 100755 --- a/1 +++ b/1 @@ -92,6 +92,21 @@ elif [ -r /etc/hostname ]; then fi msg "Setting up hostname to '${HOSTNAME}'...\n" +if [ -x /usr/sbin/dmraid ]; then + msg "Activating dmraid devices...\n" + /usr/sbin/dmraid -i -ay +fi + +if [ -x /usr/bin/btrfs ]; then + msg "Activating btrfs devices...\n" + btrfs device scan +fi + +if [ -x /usr/sbin/vgchange ]; then + msg "Activating LVM devices...\n" + vgchange --sysinit -a y +fi + msg "Checking filesystems:\n" fsck -A -T -a -t noopts=_netdev rval=$? |