Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
dmraid
mkinitrd-setup.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mkinitrd-setup.sh of Package dmraid
#!/bin/bash # #%stage: devicemapper #%provides: dmroot # if [ -x /sbin/dmraid -a -x /sbin/dmsetup ] ; then newbd= for bd in $blockdev ; do update_blockdev $bd if [ "$blockdriver" = device-mapper ]; then dm_uuid=$(dmsetup info -c --noheadings -o uuid -j $blockmajor -m $blockminor) dm_creator=${dm_uuid%-*} if [ "$dm_creator" = "DMRAID" ]; then tmp_root_dm=1 # dmraid needs dm root_dmraid=1 newbd="$newbd $(echo $bd | sed 's/\([a-z]\)[0-9]*$/\1/')" else newbd="$newbd $bd" fi else newbd="$newbd $bd" fi done blockdev="$newbd" fi save_var root_dmraid
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor