kernel plugin: vmlinuz -> kernel.img hard link #748

Merged
merged 4 commits into from Aug 31, 2016

Conversation

Projects
None yet
3 participants
Contributor

piso77 commented Aug 22, 2016

Adhere to the new naming scheme decided in Heidelberg, and create a kernel.img copy of vmlinuz.

Signed-off-by: Paolo Pisati paolo.pisati@canonical.com

kernel plugin: vmlinuz -> kernel.img hard link
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Collaborator

sergiusens commented Aug 22, 2016

Can you update the unit tests for this case?

kernel plugin: vmlinuz -> kernel.img unit test
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
snapcraft/plugins/kernel.py
@@ -311,6 +311,7 @@ def _copy_vmlinuz(self):
os.link(src, dst)
# why oh why?
os.link(src, os.path.join(self.installdir, 'vmlinuz'))
@sergiusens

sergiusens Aug 24, 2016

Collaborator

do we still need this line?

@kyrofa

kyrofa Aug 24, 2016

Member

And should they be link_or_copies?

@sergiusens

sergiusens Aug 24, 2016

Collaborator

that should come later if needed. This plugin is full of os.link calls ;-)

kernel plugin: remove vmlinuz hard link
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Contributor

piso77 commented Aug 31, 2016

Ok, i removed the vmlinuz hard link, the comment and i've pushed again - once this get in, we might rewrite to use symlinks instead of hard links.

@sergiusens sergiusens merged commit f77341d into snapcore:master Aug 31, 2016

4 checks passed

autopkgtest integration Success
Details
autopkgtest snaps Success
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage remained the same at 97.899%
Details

@piso77 piso77 deleted the piso77:kernel_dot_img_rename branch Feb 17, 2017

kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017

kernel plugin: vmlinuz -> kernel.img hard link (#748)
LP: #1618019

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment