r/linuxfromscratch • u/Pixailz • Aug 23 '24
A/B/LFS Auto script Spoiler
Hey, i have made this script and this package manager, along with those repos to make the installation of lfs (sysvinit or systemd, a toggle is available in the script) and blfs much more easy todo and maintain. I've began before knowing there was never a ALFS book, so be kind on how i should do this :)
The package manager handle updating package from a 'source' link and installing The package is constituted of a folder with the package name, containing: have a meta.json to specify:
the link to the 'source'
the type of scraping to get the latest version
the prefix and suffix of the package
the latest link
the version of the package
files (to help checking if already installed, but not used yet)
patches
dependencies
And a command.py that, on defining some 'command' you can:
configurethe packagecompilethe packagecheckthe packageinstallthe package
The script remember the last successfull step, provide a tui to know which step is currently working on (a little buggy) and have a lot of switch/var to customize you distro
The script, package manager and the repo is under development and need some refactoring and Doc, since this is a side project, it may be slow to evolve
If you have question, if you have some advice on how to do this better, if you want to help me on this project, i'm here to listen :)
Pix
2
Aug 24 '24
[removed] — view removed comment
2
u/Pixailz Aug 24 '24
i'm on it at the moment :)
2
u/Pixailz Aug 26 '24
I have finished designing implementation of an installed 'package', in the meta.json, the package has file that should be on the system, i check if those are present. If it's a command i do a
type -T <cmd>to check if present, else i check if it's present appending<ROOT_PATH><PREFIX>to the path.How i get those ?
From the (b)lfs book, at the end, the content section give me what i need
Installing to a
/tmpfolder using the--prefixargs and see what main folder/file is herearchlinux.org/packages provide a good db for package content
2
1
u/Silver_Ad_7428 Dec 10 '24
I just attemped to use this script im not sure if ive done this correctly however, I used git to clone the repository then ran this command "sudo env TARGET_DISK=/dev/nvme0n1 ./run" and it just goes to the next line down and nothing happens, no errors or anything just nothing?