WhitewaterFoundry / Fedora-Remix-for-WSL

Fedora Remix for Windows Subsystem for Linux.
Other
710 stars 51 forks source link

Fedora Remix Build Problem 1 : $TMPDIR #56

Open alexismaret1test opened 4 years ago

alexismaret1test commented 4 years ago

Describe the bug The file "create-targz.sh" that permit to create the "install.tar.gz" produces error: cp: cannot create regular file '/tmp/tmp.yEyqhD6WcW/dist/etc/yum.repos.d/wslutilties.repo': No such file or directory It is caused by the line 41 : cp $ORIGINDIR/linux_files/wslutilities.repo $TMPDIR/dist/etc/yum.repos.d/wslutilties.repo

To Reproduce Steps to reproduce the behavior: Just follow the guide to build Fedoraremix Distribution (as Pengwin)

  1. Go on a real Fedora
  2. sudo sh create-targz.sh
  3. Error occured : cp: cannot create regular file '/tmp/tmp.yEyqhD6WcW/dist/etc/yum.repos.d/wslutilties.repo': No such file or directory

Expected behavior I expect the script to be usable under fedora and to work without any errors. The script must build the file "install.tar.gz" in the architecture folder chosen.

Workaround Modify the script by adding this line just before line 41 : mkdir $TMPDIR/dist/etc/yum.repos.d

Additional context Fedora Version 29 cat /etc/fedora-release Generic release 29 (Generic)

I have found similar errors in this script so i posted an issue for each build error i encountered

crramirez commented 4 years ago

Hello,

Thanks for reporting. Please try the script using Fedora 30 instead of 29.

Regards

alexismaret1test commented 4 years ago

Hello, Thanks for your fast response !

I will try using Fedora 30. But the things is that i need to have WSL FedoraRemix 29 because i have some program that need to be on Fedora 29.

Regards.

crramirez commented 4 years ago

Extract the install.tar.gz from here: https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/releases/download/1.30.1/DistroLauncher-Appx_1.30.1.0_x64.appx

They are zip files with different extensions. I am pretty sure that it has Fedora 29 instead of 30

Regards