[zfs-discuss] Gentoo init script problem?
wingfeathera at gmail.com
Thu Jul 21 15:30:45 EDT 2011
On 07/21/2011 06:18 PM, Zachary Bedell wrote:
> The ebuild's that I've been working from (different overlay as I've not been able to find contact info for the Science maintainers) pass different parameters to configure which move the binaries out to /sbin instead of /usr/sbin. That change is a pre-requisite for getting root-on-ZFS to work properly.
> If you want to take a look at the other overlay (or just peek at the modified ebuild's to see what they're doing), it's all on github here:
> The necessary metadata for Layman is up there as well if you care to switch. There's an rc5 ebuild in addition to -9999's that use the new configure parameters.
> These ebuilds should work fine with genkernel or manual builds. If you use Dracut to build your initramfs, the Dracut module in the rc5 ZFS release should allow you to run root on ZFS with an ext2 /boot partition. There's also a -9999 build of genkernel that will drive Dracut to make a ZFS initramfs.
> As far as patching the Science ebuild's to work, the rc4 builds of course should still be fine. Getting the -9999 to work should just require making the same configure changes. The other changes to the ebuild should effect the end result.
> Best regards,
> Zac Bedell
> On Jul 21, 2011, at 11:30 AM, Matthew Robbetts wrote:
>> Hi all,
>> I'm running zfs-0.6.0_rc5 from the science overlay on Gentoo (and yeah, I know it hasn't been updated to include rc5 yet, but I built the 9999 version as rc5 was put out). Everything works quite beautifully so far with this rc, which is awesome. I've tentatively retired zfs-fuse at this point.
>> One flaw I see is that when trying to start zfs from the provided init script, I get the error:
>> /etc/init.d/zfs: line 110: /sbin/zpool: No such file or directory
>> 'modprobe' and 'zfs mount -a' does the job, but it'd be good to fix this.
>> Any idea what I'm doing wrong? I build my own kernels (rather than using genkernel), don't know if that's important. Have I missed a step somewhere?
That's fantastic, thanks. I've switched to your overlay and am running a
scrub now. Seems to be working like a charm.
More information about the zfs-discuss