Repository navigation
Add 'extras' virtual package to fix kernel upgrade fallback from aufs to devicemapper - #10860
Conversation
|
PR for discussion of #10859 |
|
hmmm ping @tianon idk what the virtual extras do |
|
https://packages.debian.org/sid/linux-image-extra-virtual is a 404 -- where does this package virtual come from? Is it Ubuntu-specific? |
|
@tianon - yes, it is Ubuntu specific but so are all of the |
|
Oh right, the However, this is potentially more dangerous than the other one is -- this package will install |
|
@unclejack what do you think? |
|
@tianon Perhaps we should prompt for the installation of the generic-extra kernel when detecting the virtual kernel without aufs on Ubuntu? |
|
That sounds reasonable to me! 👍 |
|
Can you please sign your commits following these rules: The easiest way to do this is to amend the last commit: $ git clone -b "curl-install-fix" [email protected]:mbentley/docker.git somewhere
$ cd somewhere
$ git rebase -i HEAD~2
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -fThis will update the existing PR, so you do not need to open a new one. |
|
I added some logic to check and see if the following were true:
This should verify that the packages If the kernel doesn't match, it will just give a warning and suggest installing |
There was a problem hiding this comment.
This could be simplified somewhat, couldn't it? (and catch the edge case of linux-image-*-generic somehow matching files in the user's current directory)
if uname -r | grep -q -- '-generic' && dpkg -l 'linux-image-*-generic' | grep -q '^ii' 2>/dev/null; thenThere was a problem hiding this comment.
Hmm, indeed. Not sure what exactly I was doing with the echo there but yes, that's great, thanks for catching that!
|
👍 for the new logic! 😄 |
|
LGTM |
|
@mbentley I think this needs a rebase; |
… to devicemapper Added checks for the proper kernel support before blindly installing extras package Fixes #10859 Signed-off-by: Matt Bentley <[email protected]>
|
thanks @thaJeztah. Rebased. |
|
LGTM |
Add 'extras' virtual package to fix kernel upgrade fallback from aufs to devicemapper
|
Same issue but the docker OS is centos7. How to fix it there? |
|
Are you certain that you started with aufs support on CentOS 7? I wouldn't think so unless you compiled your own kernel as CentOS 7 and RHEL 7 are not shipping with aufs support to the best of my knowledge. |
Signed-off-by: Matt Bentley [email protected]