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

Add udev rules for cloud storage disks#149

Merged
lucab merged 1 commit intocoreos:masterfrom
r7vme:aws_disks_udev
Oct 26, 2018
Merged

Add udev rules for cloud storage disks#149
lucab merged 1 commit intocoreos:masterfrom
r7vme:aws_disks_udev

Conversation

@r7vme
Copy link
Copy Markdown
Contributor

@r7vme r7vme commented Sep 26, 2018

Fixes: coreos/bugs#2481

This change allows to use proper AWS / GCE disk paths in ignition.

mkswap

inst_script "$udevdir/cloud_aws_ebs_nvme_id" \
"/usr/sbin/cloud_aws_ebs_nvme_id"
Copy link
Copy Markdown
Contributor

@lucab lucab Sep 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not supposed to go under PATH though. udev can find its own helpers under /usr/lib/udev/.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was my uncertainty. Updated to /usr/lib/udev/

@lucab
Copy link
Copy Markdown
Contributor

lucab commented Sep 26, 2018

@r7vme thanks! Unfortunately I just double-checked and the script is using nvme which is currently not available inside the initramfs, so this PR won't work as is. It needs to install nvme first. Apart from that, all other commands used by the script are there though.

@r7vme
Copy link
Copy Markdown
Contributor Author

r7vme commented Sep 26, 2018

@lucab ah right, i've missed that point that we can miss nvme. I'll check on that.

Fixes: coreos/bugs#2481

This change allows to use proper AWS / GCE disk paths in ignition.
@r7vme
Copy link
Copy Markdown
Contributor Author

r7vme commented Oct 24, 2018

PTAL.

Added nvme binary that is used by AWS udev script. Also checked nvme-cli package and there are no other dependencies.

Nothing specific in shared objects deps for nvme.

$ ldd /usr/sbin/nvme  
        linux-vdso.so.1 (0x00007fff0afc8000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fd5aa5d2000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd5aa995000)

Size is quite small too

$ ls -sh /usr/sbin/nvme 
192K /usr/sbin/nvme

Copy link
Copy Markdown
Contributor

@dm0- dm0- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@lucab lucab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants