Progress Update On My Linux From Scratch Project

Holy moly!

Pretty sure the default on Ubuntu is to keep three versions of the kernel so you can safely boot an older version if needed. I might be thinking of CentOS though. Those are the distros I’ve worked most with.

2 Likes

There is something wrong there. I am looking into it.
There may be some package residues which are preventing vkpurge from removing things.
I can actually boot any of those kernels with grub… it has a menu entry for each one!

2 Likes

But it is installed. There is an entry in the grub menu.
I will try and boot it… see what happens?

2 Likes

“vkpurge rm all”

Have you tried xbps-remove -o after vkpurge? It should remove orphaned packages.

I’m not at my computer now but can check later if I used that or just rm’d the old kernels. Void keeps the kernels and don’t auto remove old ones like most distroes.

1 Like

Will try . That is the sort of thing I was looking for.
Maybe
xbps-remove -oO
and clear the cache too.

2 Likes

Just because you have a grub menu entry, does not mean you have the 5.15 kernel installed.

4 Likes

Right, grub could be out of date.
I tested it by booting 5.15.
I am in it now

nevj@mary ~ $ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.15.88-gentoo-x86_64 root=UUID=5fa0230a-6757-4281-a209-9f116869d70c ro
nevj@mary ~ $ 

So 5.15 works in this machine, but I think it would fail in my main desktop because of lack of graphics drivers.

In Gentoo it is likely there will be more kernels in /usr/src than in /boot. Grub ( or os-prober) only looks in /boot so it only sees compiled kernels.
I guess by “installed” you mean compiled and copied to /boot and /lib/modules?

2 Likes

Tried xbps-remove -oO
It removed all but 2 kernels

[nevj@trinity ~]$ ls /boot
config-6.6.48_1  efi   initramfs-6.6.48_1.img  vmlinuz-6.6.48_1
config-6.6.54_1  grub  initramfs-6.6.54_1.img  vmlinuz-6.6.54_1

and there was a 10% reduction in used space in ‘/’

Size freed on disk:           1863MB

I did not need to follow it with
vkpurge rm all
So problem solved , thank you.

3 Likes

Something like that!!! I mostly just just use rm to clean /boot and --depclean to remove packages and dependencies.

3 Likes


I have LFS booting with VirtualBox!!!

4 Likes

Very cool! Have you already opened the BLFS page? I don’t know what would I do if I would go to LFS. You’ll need a package manager at some point?I would use Portage so it would be Gentoo? Or have I missed the point?

2 Likes

Have no idea how to start with blfs, will have to do some serious research or rely on my foss friends for advice!!!

From what I read a package manager is kinda-of non-existent!!!

3 Likes

@Daniel_Phillips ,
Is this in your good W11 machine?
I will give you a grade A for persistence.

2 Likes

I think you install the package manager from source code, the same as everything else.

2 Likes

From back when I did an LFS, I remember there being a hint for a “package manager” (quoted because it still needed a lot of manual stuff). It was a bash script together with a single binary program.

Please take this with a grain of salt, as it’s over 10 years ago I did an LFS.

3 Likes

Yes!!! It is the only machine with enough ram and speed to handle a Vbox compile of LFS!!! I at last figured out all the config files and the manual kernel compile and it booted with Vbox. Just was not willing to do a hard install of LFS on the machine!!!
Will see if I break it with BLFS!!!

4 Likes

Yes, the hint is still there!!! Just isn’t real clear on how and what to do!!!

Probably just the stable version # and package update, is about all that has changed, stable version# now is 12.2!!!
Did you make it into BLFS?

2 Likes

I remember taking a look at it, but not whether or not I installed anything from it.

2 Likes

Got wget and opensh compiled and working!!! Looks I will be compiling blfs for awhile, it seems!!!

5 Likes

WOW! Keep updating this thread. Really interesting to see where you end up with your own Beyond Linux From Scratch system!

3 Likes