When creating and running a full-service Live-usb with Live-USB-maker, the the kernel files (vmlinux and initrd.gz), compressed OS (linuxfs) and the persistence files (rootfs and maybe homefs) are stored in the partition's /live/boot-dev/antiX directory. On the other hand, when creating a frugal install, those files are stored in the partition's /live/boot-dev/antiX-Frugal-[kernel number]-[architecture]. For example, my recently installed Frugal files are found in /live/boot-dev/antiX-Frugal-5.10.0-13-amd64.
What may be confusing is that after upgrading the kernel (I had just upgraded automatically to the Debian linux-image-5.10.0-14-amd64) with Live-USB-kernel-updater the new kernel (vmlinuz) and a rebuilt initrd.gz still goes into the directory with the same old name, /live/boot-dev/antiX-Frugal-5.10.0-13-amd64, and will continue to use that directory for the life of the frugal install.
Initially I did a double-take when I saw the new kernel loading on the startup screen with the new kernel version 5.10.0-14, but at the same time from what seemed to be a numerically wrong boot directory containing the number 5.10.0-13, but now I realize that boot directory name will never change.
These seeming idiosyncrasies were a revelation to me, so I thought I would share what I learned here.
Directory name for kernel linuxfs rootfs in frugal install
- anticapitalista
- Developer
- Posts: 4281
- Joined: Sat Jul 15, 2006 10:40 am
Re: Directory name for kernel linuxfs rootfs in frugal install
The frugal install folder with the kernel version is created at the time of the existing kernel and not any future ones.
User can manually make the changes and edit grub accordingly.
User can manually make the changes and edit grub accordingly.
anticapitalista
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Reg. linux user #395339.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - lean and mean.
https://antixlinux.com
Re: Directory name for kernel linuxfs rootfs in frugal install
Thanks for providing that information. I did go ahead and change the frugal directory name from /live/boot-dev/antiX-Frugal-5.10.0-13-amd64 /live/boot-dev/antiX-Frugal-5.10.0-14-amd64 along with editing my boot partition's /boot/grub/grub.cfg and the file in the boot partition's /etc/grub.d/40_custom.anticapitalista wrote: ↑Wed May 04, 2022 12:07 pm The frugal install folder with the kernel version is created at the time of the existing kernel and not any future ones.
User can manually make the changes and edit grub accordingly.
I actually HAD to do the renaming for my use case. After updating the kernel on the frugal install, I created a new snapshot in order to be able to use it as a second way to boot my frugal install. When booting that snapshot and selecting F5 frugal-root, during the first boot it wanted to do a NEW frugal install as antiX-Frugal-5.10.0-14-amd64. I bailed out on that boot and then went back and did the renaming as you suggested.
All these little maintenance steps are not for the technically faint-of-heart. I'm wondering if the antiX-Frugal directory could simply be truncated to a permanent /live/boot-dev/antiX-Frugal/ in the same manner that the live-usb always uses just /live/boot-dev/antiX/?
Last edited by figueroa on Sun May 14, 2023 10:55 pm, edited 1 time in total.
Re: Directory name for kernel linuxfs rootfs in frugal install
Remember, when booting with LiveUSB/DVD in BIOS mode ( that's the GFX-Boot menu with the Fn-keys), the kernel for frugal-booting will be used from the LiveUSB/DVD, not from the found frugal install. That's why and in order be able to boot Frugal from LiveUSB ( in BIOS mode) it needs to have the name of the linux kernel version within the directory name. Otherwise it would/may not match to the linuxfs-sytem file, where the remaining/needed kernel modules would not be available, b/c you can have multiple frugal installs with differnt kernels.
It is different when booting through the GRUB menu into frugal. In this case GRUB loads both kernel and initrd from the same "antiX...." directory, not from the LiveUSB. You can switch in BIOS-booting to GRUB menu and "search for "frugal" installs. In this case the "antiX" directory name is not relevant, it can be any name.
Re: Directory name for kernel linuxfs rootfs in frugal install
Thanks @fehlix,
That was a perfectly comprehensive and comprehensible reply. In other words, I found it very helpful. I'm finding running frugal to be an amazing experience. It makes my hardware seem faster, especially at startup.
That was a perfectly comprehensive and comprehensible reply. In other words, I found it very helpful. I'm finding running frugal to be an amazing experience. It makes my hardware seem faster, especially at startup.