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

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

@nilsmeyer

Description

@nilsmeyer

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions