microsoft / WSL-DistroLauncher

Sample/reference launcher app for WSL distro Microsoft Store packages.
MIT License
1.68k stars 519 forks source link

What Ubuntu rootfs to use? #53

Closed bbrala closed 5 years ago

bbrala commented 5 years ago

I really want to build my own package for development. But i can't figure out what rootfs is used. Is the code to generate the correct rootfs somewhere? I tried using the ubuntu cloudimg rootfs's which are hosted on canonical.com but that doesn't work :(

Anyone have any idea?

rhaist commented 5 years ago

Hey @bbrala - just build a rootfs with debootstrap or cdebootstrap.

You can have a look at my script: https://salsa.debian.org/rhaist-guest/WSL/blob/master/create-targz.sh

bbrala commented 5 years ago

Yeah i kinda tried that but with multistrap. But from what i seem to gather something like the following should work fine.

https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-root.tar.gz

So perhaps it is my build which is not correct... When i run the built exe it just opens and closes at once. I did check out your project and had a look at it to see if there is something i was doing wrong.

I think i'll try and build that before i try and rebuild with a changed rootfs.

bbrala commented 5 years ago

Ok, appearantly i had to build in VS with Project -> Store -> Create App packages and select sideload. This seems to work fine. Next i will just chroot in the filesystem and start adding the packages i need, think this will work out yay :)

xnox commented 5 years ago

From https://cloud-images.ubuntu.com/bionic/current/ -root.tar.xz file, recompressed into .gz should work.

bbrala commented 5 years ago

I ended up using docker to build the root fs and exporting it for use in our custom built distribution for developemnt.