Comments (8)
Actually, I don't think I can build LFS in WSL. I think there are chroot issues. No matter. I can build it in a VM. The problem isn't building it. It's getting it into WSL and still having a functioning system.
from wsl-distribution-switcher.
Can you send me a LFS (regardless whether it was built in WSL or not) rootfs? I'll check and see if I can make it work.
The creators update WSL supports chroot, so you shouldn't have issues if you updated. Also, make sure the LFS you're building is x64, since WSL does not currently support x86 binaries.
from wsl-distribution-switcher.
Sorry, I just saw this question. Have been swamped lately. I can do this over the weekend probably.
from wsl-distribution-switcher.
@RoliSoft - https://1drv.ms/f/s!Apv0KUs72bvBlqt2TZKLwWlMaAu8Ag
from wsl-distribution-switcher.
Is this still happening? I kinda want to try it out.
from wsl-distribution-switcher.
Actually, I don't think I can build LFS in WSL. I think there are chroot issues. No matter. I can build it in a VM. The problem isn't building it. It's getting it into WSL and still having a functioning system.
I dunno the possible WSL1 obstacle you may encounter as the message was from 2017, but it's feasible now in WSL2 w/ WSLg update. I finished it by following the latest stable manual (Version 11.2 Published September 1st, 2022) and everything just works.
The only difference is that I don't want to make a separate partition for the chroot (as I'll use it as a WSL distribution) so I created a raw VHDX in Windows and formatted it under WSL using GParted. When you've done the LFS stuff, just export the whole $LFS
to create a rootfs
by running cd $LFS && tar czf /mnt/<disk>/path/wherever-you-like/rootfs.tar.gz .
, and import it using wsldl.
All that being said, IMHO it's out of the scope of this repo๐.
from wsl-distribution-switcher.
Thanks for the reply to my 5-year old thread, @Vinfall.
I have pretty much settled upon Pengwin as my WSL distro of choice now. I do enjoy the flexibility of LFS, but it'd be challenging to get it up to the functionality of Pengwin. That would be deep into the BLFS book.
It's good to know that LFS works at this point. I may play with it again, but it would be merely for the interest in creating an LFS system, rather than to actually use it now. Also, I think that your raw VHDX only works in WSL2. I don't think you can mount an external file system in WSL1.
Still, good to know. Thanks for the efforts.
from wsl-distribution-switcher.
Also, I think that your raw VHDX only works in WSL2.
I guess you're right, since the Mount a Linux disk in WSL 2 documentation even requires an insider build (Windows 11 Build 22000 or later, I'm on Dev channel).
To make it fully from scratch, you may wanna build the WSL2-Linux-Kernel under LFS as well. I built the kernel from latest released linux-msft-wsl-5.15.62.1 and it works perfectly fine with the default setting.
Again, I guess LFS does not fit there๐ท as LFS itself do not maintain an up-to-date live CD and the building process involves personal preferences.
BTW, Pengwin looks pretty interesting (although I may choose Gentoo instead for an optimized distro)!
from wsl-distribution-switcher.
Related Issues (20)
- [!] Failed to fetch manifest info for cetos: HTTP Error 401: Unauthorized HOT 1
- "[!] The Linux subsystem is not installed. Please go through the standard installation procedure first." HOT 3
- Unable to find lxrun.exe in the expected locations. HOT 4
- [!] Failed to find tag 12.04 for image ubuntu.
- my_lookupdev: socket: Socket type not supported HOT 2
- WSL2 docker on centos7.6 not good
- gentoo install failed
- Error when prebuiling the kali rolling environment.
- `python install.py rootfs_kalilinux_kali-linux-docker_latest.tar.gz` with python 3.7 HOT 3
- bash - command not found HOT 1
- APT Key Expired and Unable to Update / Install HOT 4
- How can i install 3 different distros ?
- Instead of Centos 6 dowloading Centos 7 HOT 1
- Set default os in WSL
- With the Fall Creators update, is this dead? HOT 1
- Persistent "You do not seem to have the default distribution installed anymore."
- no lxss HOT 3
- python3 install.py rootfs_kalilinux_kali-linux-docker_ latest.tar.gz errors in files:
- get.prebuild.py fails on SSLError error [SSL: CERTIFICATE_VERIFY_FAILED]
- Unable to find lxrun.exe in the expected locations. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl-distribution-switcher.