Bug 160240

Summary: rc.d/mdconfig and mdconfig2 should autoset $_type to vnode, when only -f is passed
Product: Base System Reporter: Domagoj Smolčić <rank1seeker>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Domagoj Smolčić 2011-08-27 19:40:10 UTC
If mdconfig bin, is now smart enough to load vnode images, via:
# mdconfig -f /usr/my.img
As options '-a' and '-t vnode' are implied, instead old:
# mdconfig -a -t vnode -f /usr/my.img

Then why scripts:
--
/etc/rc.d/mdconfig
/etc/rc.d/mdconfig2
--
Aren't aware of this?


This would fail: (rc.conf)
mdconfig_md0="-f /usr/my.img"

Because "${_type}" variable gets value '-f'

dmesg: ()
--
Creating md0 device (-f).
mdconfig:
could not open /usr/my.img
:
No such file or directory
Creating md0 device failed, moving on.
Mounting local file systems:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-08-27 19:43:43 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:29 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped