junest icon indicating copy to clipboard operation
junest copied to clipboard

Install error: Permission denied when extracting base image

Open mefu opened this issue 7 years ago • 3 comments

Hey there, I am trying to install this on a fresh Alpine Linux installation within VirtualBox. I used the method one to put junest bin into my path and then simply did junest to create filesystem in .junest. While extracting image downloaded, tar gives following error. When I checked directory cadir afterwards, it has 655 permissions I think. Should that be 755 ?

virtualbox_mefualp_23_03_2017_01_19_25

I was expecting chroot issues etc with grsec kernel but I think this error is not there because of Alpine Linux.

mefu avatar Mar 22 '17 16:03 mefu

I think it should be related to how JuNest extract the content of the image via tar command which might conflict with Alpine permissions: https://github.com/fsquillace/junest/blob/master/lib/core/setup.sh#L54

Can you experiment with different tar options? Can you try to extract the image without -p option? The image can be downloaded from the aws url link.

fsquillace avatar Mar 22 '17 16:03 fsquillace

I deleted .junest folder first and downloaded image. Tried tar -zxf junest-x86_64.tar.gz -C ~/.junest and got same result.

mefu avatar Mar 22 '17 17:03 mefu

There must be permissions in the certificate of the image that can not be dealt by Alpine.

Can you try to extract all the files except the certificates that gives you trouble? Also bear in mind that some certificate are still important for installing/updating the packages.

fsquillace avatar Mar 23 '17 11:03 fsquillace