From 5b8c26ea64b9e8a0cb248f9be30906dc8049bb0c Mon Sep 17 00:00:00 2001 From: "kts of kettek (nanomo)" Date: Thu, 9 Aug 2018 00:19:22 -0700 Subject: [PATCH] More ZFS udpates --- wiki/articles/zfs-macos-arch-linux-dual-boot.qwk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wiki/articles/zfs-macos-arch-linux-dual-boot.qwk b/wiki/articles/zfs-macos-arch-linux-dual-boot.qwk index ef96fbb..2d64e65 100644 --- a/wiki/articles/zfs-macos-arch-linux-dual-boot.qwk +++ b/wiki/articles/zfs-macos-arch-linux-dual-boot.qwk @@ -45,11 +45,13 @@ On Linux, I logged in as root, simply used the same */Users/* mount point and se With all this in place -- and omitting some some minor mistakes along the way -- I safely rebooted back to Mac OS. However, upon attempting to login, it seemed the ZFS filesystem *Lyon/Users* was not automatically mounting on boot. To solve this -- and perhaps this is the wrong way to go about automounting ZFS -- I created two files responsible for mounting *Lyon/Users* on boot: -**/usr/sbin/mount-Lyon** +### /usr/sbin/mount-Lyon + #!/bin/bash zfs mount Lyon/Users -**/System/Library/LaunchDaemons/net.kettek.Lyon.plist** +### /System/Library/LaunchDaemons/net.kettek.Lyon.plist + @@ -71,7 +73,7 @@ With all this in place -- and omitting some some minor mistakes along the way -- With these files in place, and with the appropriate root:wheel ownership set to both and the executable flag set on */usr/sbin/mount-Lyon*, I rebooted back to Linux, mounted the HFS+ boot as R/W, moved the old /Users to /Users2 (non-destructive move due to HFS+ driver spottiness), and rebooted back to Mac OS... -...And was met with the account setup dialog. I then presumed that, potentially, the zpools were not being loaded at the appropriate time. On this hunch, I checked */Library/LaunchDaemons* and saw multiple ZFS-related launch scripts. I thereafter moved these to */System/Library/LaunchDaemons* (although moving them to this directory seems to be highly discouraged by launchd documentation), rebooted, non-destructively moved the old "/Users" directory from Linux, booted back into Mac OS and was able to log in to my ZFS-based user just fine. To ensure everything was functioning properly, I rebooted and logged in to and from the Linux and Mac OS systems. +...And was met with the account setup dialog. I then presumed that, potentially, the zpools were not being loaded at the appropriate time. On this hunch, I checked */Library/LaunchDaemons* and saw multiple ZFS-related launch scripts. I thereafter moved these to */System/Library/LaunchDaemons* (although moving them to this directory seems to be highly discouraged by launchd documentation), rebooted, non-destructively moved the old "/Users" directory from Linux, booted back into Mac OS and was able to log in to my ZFS-based user just fine. To ensure everything was functioning properly, I rebooted and logged in to and from the Linux and Mac OS systems multiple times without error. And, with that, it seemed that the ZFS filesystems were sticking and everything was working as desired!