-
zedmatrixok building curl and wget and openssh, next kernel and then need to copy the grub uefi info over
-
nsITobin
-
zedmatrixand you can call those from an rpm spec file ?
-
nsITobin... i suppose I could but it would be nuts
-
zedmatrixoh so you are just bash building ch5+6 ?
-
nsITobini am moving back and forth
-
nsITobinrefining
-
zedmatrixbut once you build the chapter5-7, you can save that and use that as a base for building from its only about 130Mb or so
-
zedmatrixi believe that is how most distros do that is start with there basic setup
-
nsITobini have the rpmbuild part stage3 where i want it to make spec files
-
zedmatrixatleast gentoo does, you start with a bootable iso, download a stage3 build tar and build
-
nsITobini am now making stage 1 and 2 less annoying
-
zedmatrixthats y i broke my auto build into 6 parts
-
zedmatrixthis auto build is almost done, just building the kernel
-
zedmatrixif malina was around it would nice to ask about the /sbin/init as a script
-
malinawell shoot?
-
malinaone can specify init=/bin/sh say on the boot line
-
malinathe scripts in lfs are precisely that, they don't use any auxiliary binaries [almost], except for devices. and so on. but are called from the init script
-
malinawhat is the question zedmatrix ?
-
zedmatrixwell i know you should mknod console and null?
-
malinaye, hmm, I do forget a bit how to do that. I recall having a bit issues myself when i was 'mixing' some inits, so t so speak. but using eudev or udevadm thingie should bring them up
-
zedmatrixthe kernel looks for /sbin/init, if that was a bash script to create all the dev nods, instead of sysv, rc systemd
-
malinabut yes, in the init scripts I think you write in the mknod/null somewhere
-
malinato preppoulate some stuff
-
malinawell init is usually just calling in more scripts (or binaries) . but ye, you coulod write one LONG init in one file or split it up, (sysv style)
-
malinaye, you can reeplace syv, with your own init
-
malinawhich would have to take care of the various instnatiations.
-
zedmatrixjust wondering if you have ?
-
malinawell, I .. I did something like a hybrid from sysv + superman + eudev
-
malinaI do recall I had to hammer a lot befor getting it going , esp on musl I think
-
malinahmm, I had on musl at least issues with devpts or /dev/ptmx not coming up properly iirc
-
malinaand had to piss about a while before i got it all going
-
zedmatrixyea i was looking at my musl , used sysv+mdev+skarnet
-
malinaye mdev is
-
malinaye, sounds good
-
malinais that working ok then?
-
malinaif so, what is the issue?
-
malinaor not?
-
zedmatrixyea had no issue building musl+gcc15
-
malina(a tad semi afk because I am trading right now)
-
malinaye, but init wise
-
malinaI mean
-
zedmatrixyea some simple funcs github.com/zedmatrix/ZBuild-System/…ain/LFS-gcc15-musl/stage4/sysv-init
-
malinaerm, what abt lfs, it has a init script, once can adjust no?
-
zedmatrixi wanted to trim it
-
malinayu0p, so looks like something i did too initially
-
zedmatrixkinda took some from the lfs sysv book
-
malinaI kinda used lfs scripts when i first started off, then used superman, my init,
-
malinaand kinda somehting in between etc. to be honest, when id di the musl I redid a loty but my muisl died out some years ago and so it's still a kinda WIP
-
malinanot entirely done
-
malinaand since then I haven't been working on those things becaue ye some months ago id di the bootstrap from the small asm file
-
zedmatrixthere wasnt much needed to patch
-
malinaand been mostly buy then to do marv 2
-
malinaye init isn't hard to do, i mean it's mainly to bring up the physdevs and that's about it
-
malinahave you checked out suckless.org zed?
-
malinaI mean, it is a trove of info for making things small, succint and easy
-
malinaany lfser should really peruse that too
-
malinaless is more
-
zedmatrixi remember looking at it briefly
-
malinadwm is a very nice simple gui env
-
malinamdev might be from it?
-
malinaI mean my old musl used toybox as the userland
-
zedmatrixi wrote this 0x0.st/8nsm.sh to simplify LFS
-
malinawhich itself is quite challenging due to so much non posix commands out there
-
zedmatrixbut its fun moving a rootfs onto a usb to boot :)
-
malinaye vm,s usb, anything is easy with linux
-
zedmatrixespecially if you start using uuids
-
zedmatrixbut without the testsuites lfs can be done in an afternoon :)
-
nsITobinzedmatrix: wish me luck!
-
zedmatrixrpmbuild?
-
nsITobinno stage1 with changes
-
nsITobinif i am wrong.. my system dies
-
nsITobin:P
-
nsITobin.. let me make sure i still have my backup i took a week ago
-
nsITobincd lfs
-
zedmatrixaren't in a vm ?
-
nsITobinwhy should I be
-
nsITobini have a backup
-
nsITobinand fedora cinnamon on a flash drive which can install wimlib and restore if it goes bad but i can do one more test before i pull the trigger
-
zedmatrixi also have extra pc's around to play with :)
-
nsITobinzedmatrix: looks correct to me dpaste.org/ieJLT/raw
-
nsITobinI am poor
-
nsITobinsend me money.. paypal.me/mattatobin
-
nsITobin:P
-
zedmatrixi dont have money :)
-
zedmatrixas long as mosy things are prefix'd /mnt/lfs and $LFS is properly export'd things for stage1 should work
-
nsITobin
-
nsITobinspecifically my chroot script is slightly improved and primed to accept path and command as arguments so i can start it doing something like stage2 and stage3 after stage1 from ./mach build.. later
-
nsITobin
-
zedmatrixat the chroot_pre you can just "mkdir -pv $LFS/{dev,proc,sys,run} " its smart enough to make or not :)
-
zedmatrixor in your case "${TARGET_SYSROOT}" nsITobin
-
nsITobinif they don't exist it is an error as it would be created by the filesystem script
-
zedmatrixyou can just mkdir -p
-
nsITobinand if the thing ain't mounted
-
nsITobinthen i have to clean it up
-
nsITobinand try again
-
nsITobinor if i enter the wrong path
-
zedmatrixyou can check with mountpoint
-
nsITobinfor empty directories?
-
nsITobini am just not understanding why i would want to make more work for my self in case of erRor
-
nsITobini just like how the amount of hardcoded paths is greatly reduced
-
nsITobinright now the lfschroot script will not proceed unless the target sysroot is properly prepped and the target command exists
-
nsITobinpreviously i just let it error out
-
nsITobinnaturally
-
zedmatrixi was talking about this gitlab.com/binaryoutcast/snowball-o…ld-aux/lfschroot?ref_type=heads#L24
-
nsITobinwhat about it.. if those directories do not exist it should not continue
-
nsITobinCheck whether a directory or file is a mountpoint.
-
nsITobinhow does that help me determine existance
-
zedmatrixi just mean pre create them
-
nsITobini do..
-
nsITobinas the second script in stage1
-
nsITobinlong before it would be invoked
-
zedmatrixwhen i finish option 1 of my build, i just chroot
-
nsITobinand i want to use this script for more than one thing
-
zedmatrixit creates all vfs
-
nsITobinand i want it NOT to create things unless it is either existing or prepped
-
nsITobin
-
zedmatrixi do that as part of my chapter 7
-
zedmatrixincluding the files
-
nsITobinyeah i found it redundant to create directories twice for a system that won't even exist after the rpms are built
-
nsITobinstage1 and stage2 have no existance after the last rpm is built
-
nsITobinjust gets deleted
-
nsITobinthat is why I can cheat so flagrantly.. exclude buildability exclude like a dozen packages
-
zedmatrixfinished building the laptop to the fast 24gb ssd
-
zedmatrixand tested my packBuild for the grub-uefi files
-
zedmatrixhmm looks like i can build lua earlyer like right after readline, nsITobin
-
nsITobinthe only reason I am building so much in stage2 is because i haven't the time to work out how low it can go
-
nsITobini decided a full buildchain rpm deps then rpm was a fine starting point
-
zedmatrixwell most of those will be needed for whatever post-LFS you build
-
nsITobinmost of those are needed for building ANYTHING AT ALL WITH RPMBUILD
-
zedmatrixi am still looking at not building rust, sofar Mesa's nouveau seems to be the only one
-
nsITobinzedmatrix: well i majorly fucked up my stage1 last night .. not hostwise just exec wise.. hopefully NOW i have fixed it correctly
-
nsITobinthis makefile is a piece of crap tho i am getting sick of it
-
nsITobinuntil i replace it it will remain fragile
-
nsITobinzedmatrix: works again ibb.co/B2nhHJ4Y
-
nsITobin./mach build
-
nsITobin
-
nsITobinwho needs fedora meta-tools
-
nsITobini have rpm bash and mah brain
-
zedmatrixnsITobin: eventually you'll come to the dark side :)
-
nsITobinzedmatrix: been there and back
-
nsITobinI have a better way.. or at least a simpler one
-
nsITobinzedmatrix: how different ARE the instructions between sysv and systemd
-
nsITobinaside from configuration files and bootscripts
-
nsITobinand udev being included of course
-
nsITobinlike do packages get built differently?
-
nsITobincause I'd love to simply make init system a choice
-
nsITobinzedmatrix: how different ARE the instructions between sysv and systemd
-
nsITobinaside from configuration files and bootscripts
-
nsITobinlike do packages get built differently?
-
nsITobincause I'd love to simply make init system a choice
-
zedmatrixnot too diff, but i think you would have to have 2 separate rpmspecs
-
zedmatrixthe sysv has a couple of extra packages sysklogd and sysvinit << those are handled by systemd
-
nsITobinwell if the configuration is only different in a few other packages.. then a simple %{?_systemd} check would do
14 minutes ago