Repository navigation
Releases
Aarambh 0.1.7
Safer font handling, kernel copies that survive a full EFI partition and a failed scan, and settings that are no longer lost when two commands run at once.
Update
cd aarambh
git pull
make installThen run this once on every other Linux connected to Aarambh:
sudo bash /boot/efi/EFI/aarambh/hooks/setup.shYour settings, menu entries and an intact kernel copy are kept. Nothing has to be deleted by hand.
Good to know
- Fonts with CFF outlines (most
.otffiles) are no longer used. Set TrueType (.ttf) fonts inaarambh.conf. The bundled fonts are TrueType, so nothing changes unless you set your own. - The countdown is 0 to 999 seconds. A larger number in
aarambh.confcounts as 999, andaarambh --timeoutrefuses it. aarambh --defaultonly accepts a system the menu really boots. An empty folder under\EFI\, a system whose loader is gone, Restart, Power Off or an index past the last system is refused, and the entries are listed.
Fixed
- A font with correct checksums but a wrongly built table could crash the menu when its first text was drawn. Fonts are now checked the way the font reader uses them: the character map it actually reads, every glyph outline, and composite glyphs, which may not loop or nest deeper than eight levels. A font that fails is not used.
- Running out of memory while a glyph was drawn crashed the menu. Such a glyph is now skipped, keeps its width, and is drawn once memory is back. Text looks exactly as before.
- A kernel scan that failed partway published an empty kernel list and deleted the direct-boot copy. It now fails and leaves the last list and its copies as they were.
- With too little room for a second kernel copy, the old copy could be deleted while the published list still pointed at it. A copy the list names is now never deleted first.
- A damaged kernel copy on the EFI partition was used again because its name matched. Copies are now checked before reuse and written again when damaged.
- Two commands changing
aarambh.confat the same moment could lose one change. Every writer now takes one shared lock. aarambh --defaultaccepted entries the menu could not boot. It now accepts exactly what the menu would start.- A very large timeout overflowed when read at boot. Numbers in
aarambh.confare now read safely, and the countdown shows three-digit numbers correctly.
Tests
make test now runs 309 checks, about 110 more than 0.1.6: fonts built wrong with correct checksums (including 600 rounds of random damage), memory running out at every step of drawing text, failing kernel scans, low space with a failing list update, damaged kernel copies, aarambh commands running at the same time, and the limits of --default and --timeout.
Full details: CHANGELOG.md
Aarambh 0.1.6
A reliability release: eleven bugs found in a review of 0.1.5, all in what
happens when something is missing, damaged or fails halfway. Update with
git pull && make install, then run setup.sh once on every other Linux.
Fixed
- A damaged font could crash the menu before it appeared: an empty, cut short
or wrong file infonts/was handed to the font reader unchecked. Every
font is now checked first (all tables inside the file and matching their
checksums); a font that fails is not used and its text is drawn with one of
the others. - Running out of memory while loading backgrounds crashed the menu (high
resolution screens with many entries). A failed allocation now leaves an
empty image, entries that got no background share a spare one that is
reserved up front, and when even that does not fit Aarambh exits cleanly so
the firmware starts the next boot entry. - A kernel was started directly although its initramfs was missing: when a
BLS entry named several initrd files and one did not exist, the others were
used alone (for example only the microcode). Such a kernel now starts
through the OS's own boot loader. $kerneloptsin a Fedora or RHEL boot entry replaced the whole line, so
options after it (systemd.unit=rescue.target,rd.break) were dropped.
GRUB variables are now filled in where they stand, fromgrubenv, and an
unset one ($tuned_params,$tuned_initrd) is empty as in GRUB.- A kernel command line longer than 767 characters was silently cut, which
could removeroot=or the options of an encrypted disk. The limit is now
2047 characters, the kernel's own; a longer command line, a longer path or
more than four initramfs parts are never cut: that kernel starts through the
OS's boot loader andaarambh-kernelsprints a warning. - Copying the kernel to the EFI partition reported success when the final
rename failed, and could leave a new kernel next to the initramfs of the
old one. Every step is checked now, and the copy is made as a pair
(vmlinuz-<n>,initrd-<n>.img) that the kernel list names, so a kernel is
never started with another kernel's initramfs. - With no operating system found (wrong EFI partition, deleted loaders) the
countdown started Restart or Firmware by itself, in a loop. The countdown
now only ever starts an operating system; otherwise the menu shows "No
bootable system found" and waits. - On an EFI partition shared by several systemd-boot installations, a boot
entry of another system was taken for this one when itsroot=only began
the same way (/dev/sda1and/dev/sda10,LABEL=linuxand
LABEL=linux-old). The argument must now match exactly, and an entry that
carries another machine id is never taken. - A kernel picked under Advanced options was not booted when the choice could
not be stored for GRUB or systemd-boot (full or read-only EFI partition):
the loader was started anyway and booted its default kernel. Aarambh now
shows "Could not save the kernel choice, nothing was started" and returns to
the menu. - Writing a file from the menu reported success when the old file could not
be deleted, when only part of it was written or when flushing failed, so a
one-time kernel choice could stay in place. The file is now truncated
explicitly and every step counts. - A kernel list that could not be generated left an empty or half-written
<os>.kernels, and the Advanced options were gone. The list is now written
next to the old one and replaces it in one step, only when it is complete;
two kernel hooks that run at the same time wait for each other. aarambh.confcould be emptied when rewriting it failed (setup.sh,
uninstall.sh,aarambh --theme); it is replaced in one step now.- A small memory leak while choosing the screen mode.
Changed
- The direct-boot kernel copy is named
linux\<os>\vmlinuz-<n>and
initrd-<n>.imginstead ofvmlinuzandinitrd.img. The old files are
removed by the firstaarambh-kernelsrun of this version. default restart(or any other action) no longer starts by itself after the
countdown.- The menu writes
next-<os>.cfgonly when the kernel choice changed, not on
every boot. - Problems during a kernel update are no longer thrown away: the refresh
trigger sends them to the system log (journalctl -t aarambh) and still
never fails the package operation.aarambh-debugshows them. - Write-combining is turned on after the menu's files are loaded, so a
problem while loading them is not recorded as a write-combining failure.
Added
- README: the installation is now six numbered steps with what you should see
after each, followed by everyday use, update, uninstall and recovery; the
details moved into a Reference part. New troubleshooting entries for the
new messages. make testalso runstests/hooks/failures.sh(failure paths of the
hooks) andtests/unit/run.sh(parts ofaarambh.efibuilt for Linux and
run against mocked UEFI services, with AddressSanitizer when installed).