Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

coreos-install fails on ZFS zvol depending on specified path #1599

Open
nilsmeyer opened this issue Oct 6, 2016 · 0 comments · May be fixed by coreos/init#222
Open

coreos-install fails on ZFS zvol depending on specified path #1599

nilsmeyer opened this issue Oct 6, 2016 · 0 comments · May be fixed by coreos/init#222

Comments

@nilsmeyer
Copy link

Issue Report

Bug

CoreOS Version

1122.2.0, master branch of coreos/init

Environment

Bare-metal Xeon E5 v4 system, Linux on Ubuntu 16.10, Linux 4.8.0, ZFS 0.6.5.8.

Expected Behavior

Successful install of CoreOS on the specified device.

Actual Behavior

Error message:
Error: return code 2 from ROOT_DEV=$(blkid -t "LABEL=ROOT" -o device "${DEVICE}"*)

Reproduction Steps

Steps as on my system:

  1. sudo zfs create -V 6G rpool/core3-os
  2. sudo coreos-install -C stable -c coreos-eval/cloud-config.yaml -d /dev/zvol/rpool/core3-os

Other Information

It seems this is caused by the Device being a symlink, likely regardless of what the underlying device actually is. It works when resolving the symlink beforehand.

nilsmeyer added a commit to nilsmeyer/init that referenced this issue Oct 6, 2016
Resolving the symlink before using the Device Variable fixes issues with lsblk and blkid. Symlinks may be problematic when using ZFS and using a path like /dev/zvol/poolname/volname. Fixes coreos/bugs#1599 for me.
@nilsmeyer nilsmeyer linked a pull request Oct 6, 2016 that will close this issue
@crawford crawford added this to the CoreOS Alpha 1221.0.0 milestone Oct 17, 2016
@crawford crawford removed this from the CoreOS Alpha 1221.0.0 milestone Nov 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants