bedrocklinux / bedrocklinux-userland

This tracks development for the things such as scripts and (defaults for) config files for Bedrock Linux
https://bedrocklinux.org
GNU General Public License v2.0
603 stars 64 forks source link

Manjaro-arm support #182

Open Titaniumtown opened 4 years ago

Titaniumtown commented 4 years ago

Things I've done in this PR: implement manjaro-arm support

Manjaro-arm support: I've added manjaro-arm support. But I've hit a roadblock, there is no manjaro-tools-base or manjaro-arm-tools package on manjaro arm. When you run brl fetch manjaro that installs and uses the manjaro-tools-base package for installing packages into the new root directory. Worst case scenerio, if I can't figure out how to do it, I can just install arch linux arm version of those packages (see https://wiki.manjaro.org/index.php?title=Manjaro-tools#Files) and do it that way. Anyone know how I can proceed?

Titaniumtown commented 4 years ago

Bump, anyone know how I should proceed?

Titaniumtown commented 4 years ago

Bump. Any tips?

paradigm commented 4 years ago

Is this (a) an official ARM release of the "normal" Manjaro project or (b) an unofficial project not run by the Manjaro devs? If it's (a), we'll want to make it an extension of the existing Manjaro fetch code. If it's (b), you're correct here in making it an independent project.

But I've hit a roadblock, there is no manjaro-tools-base or manjaro-arm-tools package on manjaro arm. When you run brl fetch manjaro that installs and uses the manjaro-tools-base package for installing packages into the new root directory.

Note there are no Bedrock Manjaro maintainers. If you want to contribute something like this - and I absolutely encourage you to do so - you'll have to figure this part out yourself. Copy/pasting existing brl fetch code is easy; the interesting part is figuring out how to adapt it for the distro you're interested in.

The existing brl fetch manjaro code uses the double bootstrap strategy. We know Manjaro provides a basestrap binary which bootstraps a Manjaro install. Given this, what brl fetch manjaro does is first bootstrap basestrap, then have basestrap bootstrap the actual distro.

If Manjaro ARM provides basestrap, you'll want to figure out which package provides it. It could be a different package name from what Manjaro proper uses. You might also have to find unlisted dependencies; that happens sometimes.

If Manjaro ARM doesn't provide basestrap but does provide another tool which does the same general idea with different specifics (e.g. pacstrap), you'll want to its corresponding package. You might also have to find unlisted dependencies; that happens sometimes. You'll also need to adjust the later basestrap call accordingly.

If Manjaro ARM does not provide any such bootstrap tool, you may need to use another fetch strategy. It's not impossible no currently-in-use brl fetch works for Manjaro ARM and you'll have to develop another yourself.

Worst case scenerio, if I can't figure out how to do it, I can just install arch linux arm version of those packages (see https://wiki.manjaro.org/index.php?title=Manjaro-tools#Files) and do it that way.

I'm not sure if this fact is properly documented anywhere, but we don't allow this. Some concerns include:

Titaniumtown commented 4 years ago

It's made by the same devs, but it's a seperate distro I believe. I will look into your other suggestions. thx for the feedback

Titaniumtown commented 4 years ago

Btw, I don't really use manjaro myself, but I just wanted to add this. (btw I use arch)

parkerlreed commented 4 years ago

arch-install-scripts is still available on Manjaro ARM https://mirror.clarkson.edu/manjaro/arm-stable/extra/aarch64/arch-install-scripts-23-2-any.pkg.tar.xz

What's the point in their replacement package?

basestrap is just a pacstrap rename. https://wiki.manjaro.org/index.php?title=Manjaro-tools#Files

pacstrap is in arch-install-scripts

Titaniumtown commented 4 years ago

Oh, I didn't see that. Thanks!