{"action":"created","issue":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5157","repository_url":"https://api.github.com/repos/zfsonlinux/zfs","labels_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5157/labels{/name}","comments_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5157/comments","events_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5157/events","html_url":"https://github.com/zfsonlinux/zfs/issues/5157","id":178948007,"number":5157,"title":"zfs-dracut seems broken on fedora 24","user":{"login":"wphilips","id":2874424,"avatar_url":"https://avatars.githubusercontent.com/u/2874424?v=3","gravatar_id":"","url":"https://api.github.com/users/wphilips","html_url":"https://github.com/wphilips","followers_url":"https://api.github.com/users/wphilips/followers","following_url":"https://api.github.com/users/wphilips/following{/other_user}","gists_url":"https://api.github.com/users/wphilips/gists{/gist_id}","starred_url":"https://api.github.com/users/wphilips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wphilips/subscriptions","organizations_url":"https://api.github.com/users/wphilips/orgs","repos_url":"https://api.github.com/users/wphilips/repos","events_url":"https://api.github.com/users/wphilips/events{/privacy}","received_events_url":"https://api.github.com/users/wphilips/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-23T18:49:32Z","updated_at":"2016-09-26T19:03:37Z","closed_at":null,"body":"I have a configuration with the root filesystem on a zfs filesystem.\r\n/boot is also in a zfs filesystem and I boot using a recent grub. \r\nUp til a few days ago this was all working with fedora22. \r\nWhile upgrading first to fedora 23 and then to fedora24 In  encountered\r\nall kinds of problems with dracut (mainly while using dkms installs).\r\nSo I finally decided to to compile the latest zfsonlinux master, building \r\nrpms and using those. However, this also has problems.\r\n\r\nThe problem is that booting fails with mount-zfs complaining about \r\nthe special device \"ZFS=zfs/ROOT/fedora\" not being found.\r\n\r\nIn the end I devised a workaround (only for my confuration) which allowed\r\nme to boot by adding the lines \r\nZFS_DATASET=\"zfs/ROOT/fedora\"\r\nZFS_POOL=\"zfs\"\r\nin mount-zfs.sh\r\n\r\nThis workaround allows booting. I mention it because it  helps to delimit the problem.\r\nSpecifying \r\n root=ZFS=zfs/ROOT/fedora \r\nis typically what is advised in howto's and seems to be what people use on fedora and centos.\r\nIt also worked for me in the past.\r\n\r\nHoweverm according to what I see in zfs-mount.sh, I think it is impossible that this\r\nwould still work:\r\nZFS_DATASET is cleared at the start of the script and remains unset  for the rest\r\nof the script. As a result ZFS_POOL is never set. The main pool is never imported\r\nand all that remains is a big fight between the annoyed user and systemd+dracut\r\nto see who gives up first.\r\n\r\nI assume that this is a bug?\r\nIs it possible to make specifying a kernel command line parameter possible again?\r\nSpecifically it would help fedora+dkms.\r\n\r\nOne of the alternative solutions I tried was to set a bootfs parameter on a zpool?\r\nHowever, this seems to be impossible (at least on my pool):\r\nzpool set bootfs=zfs/ROOT/fedora zfs\r\ncannot set property for 'zfs': operation not supported on this type of pool\r\n\r\nSuggestions on the preferred way to configure dracut are welcome.\r\n\r\nVersions:\r\n zfs HEAD detached at 70cc394\r\nspl  master            8acfb2b \r\nname -a\r\nLinux daria.mynet 4.7.4-200.fc24.x86_64 #1 SMP Thu Sep 15 18:42:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\ncat /proc/cmdline\r\nBOOT_IMAGE=/boot/@/vmlinuz-4.7.4-200.fc24.x86_64 ro boot=zfs root=ZFS=zfs/ROOT/fedora rd.shell\r\n"},"comment":{"url":"https://api.github.com/repos/zfsonlinux/zfs/issues/comments/249665461","html_url":"https://github.com/zfsonlinux/zfs/issues/5157#issuecomment-249665461","issue_url":"https://api.github.com/repos/zfsonlinux/zfs/issues/5157","id":249665461,"user":{"login":"sparksh","id":26081,"avatar_url":"https://avatars.githubusercontent.com/u/26081?v=3","gravatar_id":"","url":"https://api.github.com/users/sparksh","html_url":"https://github.com/sparksh","followers_url":"https://api.github.com/users/sparksh/followers","following_url":"https://api.github.com/users/sparksh/following{/other_user}","gists_url":"https://api.github.com/users/sparksh/gists{/gist_id}","starred_url":"https://api.github.com/users/sparksh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparksh/subscriptions","organizations_url":"https://api.github.com/users/sparksh/orgs","repos_url":"https://api.github.com/users/sparksh/repos","events_url":"https://api.github.com/users/sparksh/events{/privacy}","received_events_url":"https://api.github.com/users/sparksh/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T19:03:37Z","updated_at":"2016-09-26T19:03:37Z","body":"Same symptoms on Fedora 24 with zfs-dkms. This method worked for me:\r\n\r\n1) Set the bootfs property in the pool:\r\n\r\n    zpool set bootfs=zfs/ROOT/fedora\r\n\r\n2) Eliminate the \"root=ZFS=zfs/ROOT/fedora ro\" clause entirely in /etc/grub2.cfg\r\n\r\nHopefully these workarounds will be temporary...\r\n"}}
{"actor":{"display_login":"sparksh"}}