Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415129 - please add /etc/init.d/zfs to freebsd-cddl
Summary: please add /etc/init.d/zfs to freebsd-cddl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal enhancement (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-08 11:28 UTC by Yuta SATOH
Modified: 2012-05-27 06:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for freebsd-cddl-9.0.ebuild (415129.patch,345 bytes, patch)
2012-05-08 11:39 UTC, Yuta SATOH
Details | Diff
files/zfs.initd (zfs,432 bytes, text/plain)
2012-05-08 11:42 UTC, Yuta SATOH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2012-05-08 11:28:11 UTC
Please add a script to mount all ZFS volumes.

Reproducible: Always
Comment 1 Yuta SATOH 2012-05-08 11:39:52 UTC
Created attachment 311163 [details, diff]
patch for freebsd-cddl-9.0.ebuild
Comment 2 Yuta SATOH 2012-05-08 11:42:47 UTC
Created attachment 311165 [details]
files/zfs.initd

sample script /etc/init.d/zfs

FYI,
http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/zfs
Comment 3 Naohiro Aota gentoo-dev 2012-05-14 23:30:20 UTC
>	if [ ! -d /etc/zfs ]; then
>		mkdir -p /etc/zfs
>	fi
>	if [ ! -r /etc/zfs/exports ]; then
>		touch /etc/zfs/exports
>	fi

Would it be possible to move this code to ebuild and pump from init script?
Comment 4 Yuta SATOH 2012-05-26 07:14:35 UTC
(In reply to comment #3)
> >	if [ ! -d /etc/zfs ]; then
> >		mkdir -p /etc/zfs
> >	fi
> >	if [ ! -r /etc/zfs/exports ]; then
> >		touch /etc/zfs/exports
> >	fi
> 
> Would it be possible to move this code to ebuild and pump from init script?

Yes, it's possible.
I liked your idea.
Comment 5 Naohiro Aota gentoo-dev 2012-05-27 06:24:14 UTC
Added. Thanks.