by darren0 · 6y ago · 0 comments
1. format a disk a bootable active partition with ext4
1. download the kernel, make defconfig && make
1. copy the kernel to the partition with syslinux mbr.bin and probably extlinux.conf (probably copy modules too)
1. copy busybox over
1. voila
I’m not saying you won’t learn, but I learnt a heap by avoiding systemd using gentoo. I eventually gave in when it became clear that it was no longer a viable option for various reasons, but the knowledge I learnt was mostly relevant.
That being said, every time I try and do something remotely advanced with network manager I fail. I can no longer have static ips, or customise DNS on a DHCP controlled connection without google
I miss just editing /etc/network/interfaces and /etc/resolv.conf by hand. I get that that sucks for laptops, but why can't the rest of us just have an exceedingly simple and pleasant setup?
https://wiki.archlinux.org/index.php/Systemd-networkd
Here's a sample config file from my home desktop using a static IP:
$ cat /etc/systemd/network/lan.network
[Match]
Name=enp3s0
[Network]
Address=192.168.100.200/24
Gateway=192.168.100.1
DNS=1.1.1.1
DNS=1.0.0.1
This'll work on any systemd distribution.netplan is one of those Canonical projects that'll probably disappear in a year or two.
Does 'ip' tool update one of those files? How do I tell systemd to re-load the configuration? Is NetworkManager running or not? Does it matter? Does NM update these files, or do something magical to the interface? Are these even the right files? The best answer at which I could arrive is "who knows?"
Every time I attempted to change the network interface settings, it only stuck around until the machine rebooted. Something was resetting it back to a static IP, and I had no tools to tell me what.
Why did distro maintainers ever allow things to become this confusing? Why do we have so many tools and config files for the same thing?
In the end I reinstalled a fresh copy of Fedora on the machine and set the DHCP configuration in the setup wizard. It's that bad.
My experience tells me to anticipate a comment along the lines of "Hey, those programs and config files are all actually the same tool, and you must have just been configuring it wrong." If that's the case - it's an even stronger point that this chaos has reached a critical mass, where parts of the same networking configuration tool are so disjoint that they don't visibly interoperate at all.
It's super weird that they didn't just do the thing with NetworkManager since all they needed to write was a plugin a la ifcfg-rh to process turn YAML into NM settings and then you're done. And since they have NM as a backend they clearly are perfectly capable of doing this.
I've tried and failed with LFS so many times, I can't count - I tend to just run out of time, and by the time i go back to it, I've totally lost where in the process I was.
For example, "disk" space and memory?
How long does compilation take (depends on system resources)?