Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/getsolus/clr-boot-manager

Kernel & Boot Loader Management
https://github.com/getsolus/clr-boot-manager

extlinux: fix extlinux_cmd on partitionless /boot - native_mode

The patch simplifies the extlinux_cmd to work both on image_mode
and native_mode, with /boot par...

ef65b290de968e117d5d03cc87b2c014e784b06a authored over 5 years ago by Leandro Dorileo <[email protected]>
Statically add `mbr.bin` and `gptmbr.bin`.

We should not rely on these being present on the filesystem and
the space we use is minimal. On ...

c730d3e5096fc856e7fc00c560144e9be8349cb3 authored over 5 years ago by Auke Kok <[email protected]>
files: add a generic partition index utility

This util function returns a partition index based on the given a prefix
and a partitions device...

8e834067b04bd29097e91b45e59149c0269093ff authored over 5 years ago by Leandro Dorileo <[email protected]>
Rename `syslinux` to `extlinux`.

`syslinux` is a bootloader for `FAT` filesystems. `extlinux` is a bootloader
for `ext` filesyste...

7b492b0cc22dad01a91a303ddb256d88f18b97e7 authored over 5 years ago by Auke Kok <[email protected]>
bootman: generalize the legacy/UEFI boot partition detection

Generalize the logic and boot partition mounting into its own function,
reusing into 3 different...

53fdea822b9d543c0f526f9437347277e0daf453 authored over 5 years ago by Leandro Dorileo <[email protected]>
Detect filesystem type of boot device.

This code makes the program detect the filesystem type of the boot
device. We need this because ...

8c38df990052b0037153c906b0a5dc6eb8a100ae authored over 5 years ago by Auke Kok <[email protected]>
Add `syslinux` support.

For now this is a literal copy of extlinux.c with just the FSTYPE
capability modified.

d46f567386e7027df504524441aa52995ff2dc89 authored over 5 years ago by Auke Kok <[email protected]>
syslinux: add missing bits

This patch introduces some minor missing bits:

+ implement the "mark legacy bios bootable" at...

7992d91e1b2cf7d73a3c925fbc1b34af3a462627 authored over 5 years ago by Leandro Dorileo <[email protected]>
Check for existence of grub2 and extlinux.

If these are not present, there's no use in attempting to use them.

For convenience, we LOG_DEB...

f093ece40275bc5ccfc671031999629a419ca800 authored over 5 years ago by Auke Kok <[email protected]>
libnica: sync with upstream

We have a memory leak fixed upstream.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@in...

f4975a797599ee9e4e074982bdd41aeaca4af4c4 authored over 5 years ago by Leandro Dorileo <[email protected]>
sysconfig: add CBM_FORCE_LEGACY flag

With this we can "force" install syslinux into a UEFI running system,
it's useful for syslinux v...

dca4d8b13fa5e6ab1bfdfe565a857e54185d77e8 authored over 5 years ago by Leandro Dorileo <[email protected]>
Fix test cases.

Without a FS type set, all tests will fail because none of the
bootloaders are compatible. We ch...

366531ce8f9812e9e49f3720e6a5ca0d6881c1ce authored over 5 years ago by Auke Kok <[email protected]>
bootman: avoid a buffer overflow

On the cbm_parse_system_kernel() we're not leaving room for \0 by
checking only "len" and not co...

a6551782dbb5db1c123ce570f03bb178b8ba9e35 authored over 5 years ago by Leandro Dorileo <[email protected]>
Generalize cbm_cmdline_disabled_by_link() and move to files.c

This function may be reused by other areas, it would be nice to have
it generalized. The build s...

1857f9801b03fe5f0b1e4b2f39e8ef92f3cd6666 authored over 5 years ago by Leandro Dorileo <[email protected]>
cmdline: remove unsed label clean

The commit bd30daa changed the function cbm_parse_cmdline_removal_files_directory
but left the ...

329e7243713f035256bc29d81df95ad9c309f62a authored over 5 years ago by Leandro Dorileo <[email protected]>
bootvar: Check boot rec name format earlier

That way the loop iteration can be skipped before any memory allocation.

a4dbf382070807e2aee28eb702c89070b73c2869 authored over 5 years ago by Anselmo L. S. Melo <[email protected]>
harness: prepare_playground failure flow

Make all prepare_playground error cases go to fail cleanup
(boot_manager_free and return NULL) i...

32750a354fa3cbeb630dfaad17b0963032d6c180 authored over 5 years ago by Anselmo L. S. Melo <[email protected]>
bootman: Fix initrd_file check

Check for initrd_file || user_initrd_file instead of initrd_file twice.

c98b9daae42bb980d08a506f852bedf03153e8d5 authored over 5 years ago by Anselmo L. S. Melo <[email protected]>
completions: Minor fix on comments

It was wrongly described as `Software Updater - autocompletion script`, and it's changed to
`Ker...

086dfc7d32cd3b153eb51b198bbc9f5918fdc67b authored over 5 years ago by Lucius Hu <[email protected]>
v3.1.1 release

1d27478c2d83d16fccf01a8188f74f20dc21e73e authored over 5 years ago by William Douglas <[email protected]>
Edited meson.build for shell completion template

145014d5eac955cf3bbed0e505087e21fd8805fd authored over 5 years ago by Lucius Hu <[email protected]>
Fixup typo in meson.build for shell completions

3aedb7d42f8fb51c86fdf35db3c7a60b293536ee authored over 5 years ago by Lucius Hu <[email protected]>
completions: multiple improvement

- `bash` completion now has completions for sub-commands. Notably,
for `set-kernel` sub-comman...

a2c802d6e92f5aded66b76d2c63101cce16c705b authored over 5 years ago by Lucius Hu <[email protected]>
zsh-completion: Improved

Added completions for sub-commands, including
- Path completion if a sub-command accept `--path=...

fba3b31b938861721ed73a6dbd029b06f428f9c8 authored over 5 years ago by Lucius Hu <[email protected]>
clr-boot-manager.zsh: Added zsh completion

841690c8474369230044722e382d70ff00aee31f authored over 5 years ago by Lucius Hu <[email protected]>
Enable completions to be installed

Add meson integration for the completions files.

f742b600dfb73aa77f34501e5b314264ff60e3bd authored over 5 years ago by William Douglas <[email protected]>
clr-boot-manager.bash: Added bash completion

d7e0b6cbd5c2b7bfd9ec3f3bb1c4217914fb1837 authored over 5 years ago by Lucius Hu <[email protected]>
Fix "double free or corruption (!prev)" error

f059bcf1fd5b503585a19da43de9f657e6ff9145 authored over 5 years ago by chax <[email protected]>
Fix kernel commandline removal handling

Previously the only removal that would be processed was extra
configuration and not the default ...

bd30daa4d21296db849a607ba36425414d197577 authored over 5 years ago by William Douglas <[email protected]>
Do not attempt an update without a kernel dir

Previous code would try and find informatin about the given root even
when the kernel dir under ...

2a08878dabfa633333b5740c2ab19f57a9938702 authored over 5 years ago by William Douglas <[email protected]>
Fix output of DECLARE_OOM macro

The DECLARE_OOM macro didn't add a newline at the end leading to
potentially confusing output.

ce2f3e0542137bde1e8b55514dcd301404f5d2a2 authored over 5 years ago by William Douglas <[email protected]>
Attempt kernel update even if bootloader update fails

In some cases the bootloader update will not impact the kernel update,
usually when another tool...

f23491c901135232215a5c50887f4d407a28aad2 authored over 5 years ago by William Douglas <[email protected]>
bootman: Use mount helpers for setting the default kernel

54bbf998425936a75caf0aca405768c52cddc534 authored almost 6 years ago by William Douglas <[email protected]>
bootman: Make use of new (u)mount_boot calls

5bf359f1b65912e4835514f5d5e3f7e4cc6f7029 authored almost 6 years ago by William Douglas <[email protected]>
bootman: Move mount and list helpers

Restructure where helpers are located in source files. Make a few
helper functions public as par...

1b039c2a7be7318f9820e7c12713b930d1166d22 authored almost 6 years ago by William Douglas <[email protected]>
bootman: Add functions for (u)mounting the ESP

206eadd57f54689a93f0908e62be4b9ddaaf3e64 authored almost 6 years ago by William Douglas <[email protected]>
Fix size check.

f2f5c491b55d63bfe9ee9c34329aeaefd9d65a30 authored almost 6 years ago by Arzhan Kinzhalin <[email protected]>
Increase kernel name element size.

369b8597a6697e84731a7007bd71b33a8357b720 authored almost 6 years ago by Arzhan Kinzhalin <[email protected]>
Correct man page's vendor kernel configuration directory

009c5a49a12c860de0442dc32afb5a280d76b97f authored almost 6 years ago by William Douglas <[email protected]>
Let's use https for security reasons

dd056a47a212bc4c1ee33936c86502509d92c8b3 authored about 6 years ago by Jacob <[email protected]>
Update copyright year

d4d2cbf7f8f4e3d555a085c39f837ee50483f71d authored about 6 years ago by La Ode Muh. Fadlun Akbar <[email protected]>
v3.1.0 release

a191657b90cd074b6edacf93d793a5a31ffa43e6 authored about 6 years ago by William Douglas <[email protected]>
Enable listing of available kernels and setting a default

Add the cli command list-kernels which will display the currently
available kernels that can be ...

b214194e33647fb1462b40479f3d39e21ed8783a authored about 6 years ago by William Douglas <[email protected]>
Fix sizes in sscanf usage

Update array sizes and input string lengths to avoid sscanf writing
the nul byte beyond the end ...

fcacb83a57c5c00291ec613da01ec7a063a58e04 authored about 6 years ago by William Douglas <[email protected]>
Only attempt update when kernel path exists

Exit early without error when the path to distro content kernel files
does not exist. This preve...

a50d3b83dc59247f71947d07136f4cde4af8e02d authored about 6 years ago by William Douglas <[email protected]>
Improve documentation of the kernel commandline addition files

Add details to how the files should be structured and where the vendor
configuration files are t...

4ec6d304bf29d1013e20fecf24703bb25e43cce7 authored over 6 years ago by William Douglas <[email protected]>
Enable commandline removal configuration files

Add the ability for clr-boot-manager to handle removing content from
the kernel commandline. The...

8f43f73f12f8ce5ed3a930319a1327f114a0d78b authored over 6 years ago by William Douglas <[email protected]>
Fixup rstrip to handle a string with only spaces

Update rstrip to handle a string with only spaces in it, at the same
time update its signature t...

9a15be000c0428061e966a6315a12aafb5aa5357 authored over 6 years ago by William Douglas <[email protected]>
Do not fail an update on efivar creation failure

When there is an issue with efivars do not fail the entire update
operation. Since the kernel an...

514e36c441a042a35e545c49ccdcccc32b272f45 authored over 6 years ago by William Douglas <[email protected]>
v3.0.0 release

9d43a074b422e6b6e3ea77b0c9729448e2349543 authored over 6 years ago by William Douglas <[email protected]>
Increase maximum size of 'type' field

In practice, the filename limit was overly small, this change allows
us to better describe the c...

b05a3f49b3ac031de477763552e50eee4b08d4ea authored over 6 years ago by Murilo Belluzzo <[email protected]>
Cleanup vmlinux file

Cleanup /usr/lib/vmlinux-(version) files in /usr/lib/kernel.

Fixes #114

531ab87256527627f2b0a0b73259b58e7c73df7d authored over 6 years ago by Brett T. Warden <[email protected]>
Completely remove deprecated bootloaders from clr-boot-manager

gummiboot hasn't been supported upstream or by Clear Linux for an age,
and due to format bumps n...

d06406b4383acd723b9a17db4277f4b6b0f2b9f1 authored over 6 years ago by Ikey Doherty <[email protected]>
v2.1.1 release

225e2258e00e79610a30fefe7320f21c108d2615 authored over 6 years ago by William Douglas <[email protected]>
libnica: Sync with git master for nc_rm_rf fix

Update libnica submodule to use the latest changes that resolve a bug
with nc_rm_rf not removing...

412558f6f4303ffd334a0aae15e973d479d2cd7b authored over 6 years ago by William Douglas <[email protected]>
Copy freestanding initrds in image mode

Copy freestand initrd files when cbm is run in image mode. Note the
initrd installation call hap...

da87cb5ff5ef045eb8bb401847f0d8e07c2e2264 authored over 6 years ago by William Douglas <[email protected]>
Test update fails when missing freestanding initrd

Validate that update fails and kernels aren't installed when a
freestanding initrd is missing. T...

3a8a7ee243e5d006adb4203c1ccb5211d7607788 authored over 6 years ago by William Douglas <[email protected]>
Add test for freestanding initrds in image mode

Verify that freestanding initrds are installed correctly in image
mode.

3ffaf5a6589af534dd878b0b24885e2e7bb4b162 authored over 6 years ago by William Douglas <[email protected]>
Do freestanding initrd update before kernel update

To align with image mode update (and for the same reasons) move the
freestanding initrd update t...

2aba4168f86eea6f15b1ed40e7aa8dcda7875c7d authored over 6 years ago by William Douglas <[email protected]>
clr-boot-manager: add support for non-lvm root encryption

cbm_get_luks_uuid get the uuid of the decrypted root partition when this
is in a LVM partition t...

ef77136fe16f467f8a2c1035fc052e14958df57e authored over 6 years ago by Josue David Hernandez <[email protected]>
v2.1.0 release

b4b86f1a218b98525764050a69cab864091549b2 authored almost 7 years ago by William Douglas <[email protected]>
clr-boot-manager: update meson and ninja

meson 0.42.1 -> 0.44.1
ninja 1.6.0 -> 1.8.2

Signed-off-by: Josue David Hernandez <josue.d.hern...

8ff196388acaff4271bb2842a35396df0f0d6b76 authored almost 7 years ago by Josue David Hernandez <[email protected]>
clr-boot-manager: add support freestanding multi-initrd

add suport for freestanding initrd in /usr/lib/initrd.d
for systemd-boot, grub2 and syslinux

Si...

a75a4ff927914474b12a92f91bad7657a97942d0 authored almost 7 years ago by Josue David Hernandez <[email protected]>
Fix name of shim-systemd bootloader

50cc4ea5f967dcf7a51a4c089d4f7bb4cfae9160 authored almost 7 years ago by Caio Marcelo de Oliveira Filho <[email protected]>
Add documentation to man page for kernel configuration

Update man page to describe the use of the kernel configuration files
that can be modified by th...

dd5da5edcf538352b59fd55ec0c949b87a9f7c51 authored almost 7 years ago by William Douglas <[email protected]>
Remove file descriptor leak check

When clr-boot-manager (CBM) is forked/exec'd via swupd-client, file
descriptor leak checks are p...

8d50896fca0e1398520749f09b70b43329ec5716 authored almost 7 years ago by Patrick McCarty <[email protected]>
Use the correct limits.h header

We should never directly include the linux headers, as the libc headers
should always suffice fo...

8ac564a8a8c9973afff7f2a1d6f5a1ba3b948f17 authored about 7 years ago by Ikey Doherty <[email protected]>
libnica: Sync with git master for portability fixes

This change is required to allow portability changes for libnica, as
required to allow building ...

cb5a213c517c25887358e36458e97d3c66323270 authored about 7 years ago by Ikey Doherty <[email protected]>
Update gitmodules to point to the correct libnica origin

Signed-off-by: Ikey Doherty <[email protected]>

4e16afc05add959dda04943e1034e5240c6f591d authored about 7 years ago by Ikey Doherty <[email protected]>
Whitespace fixup

69fcff593af7549dd156dbfe8e167975e71df415 authored about 7 years ago by William Douglas <[email protected]>
v2.0.0 release

1484ecbb70349b302ee736c4d9f208ae597efe8b authored about 7 years ago by William Douglas <[email protected]>
Centralize version management.

de12c1196565786a596c43399a5a862e3abfc6fc authored about 7 years ago by Arzhan Kinzhalin <[email protected]>
Drop kernel subdir from shim-systemd layout.

9903bea409b42efe417d9f808f1706c7a897c8be authored about 7 years ago by Arzhan Kinzhalin <[email protected]>
Fix FAT/ESP name resolution in EFI bootloaders.

af90cbb10ef0a24c1228a2fa5cebbd445ce7d6a1 authored about 7 years ago by Arzhan Kinzhalin <[email protected]>
Restore EFI paths in tests.

These paths are intentionally using incorrect/unexpected case. This
reverts the change made in 6...

beeeadea7820468c9de630934dffca97de1ccbe7 authored about 7 years ago by Arzhan Kinzhalin <[email protected]>
Convert build system to meson

This change is designed to make it simpler to maintain clr-boot-manager
by switching to the much...

cba2f74c8c4704b24ff1f0921dae906cc416842f authored about 7 years ago by Ikey Doherty <[email protected]>
Fix kernel destination dir in systemd-boot.

kernel.c no longer creates any layout, but systemd-class was not
creating/ensuring kernel target...

6cbfdbab2973336ca3d2b980cf9f3c4f216ad48c authored about 7 years ago by Arzhan Kinzhalin <[email protected]>
Remove clang-format use from travis

clang-format changes its output too much between versions to block
commits so go back to users b...

b69f616cbe55998fe5eb296a5473b86343b9ba97 authored about 7 years ago by William Douglas <[email protected]>
Fix mem mgmt issues introduced by shim-systemd.

Refactor the API slightly to reflect the intended use of
get_kernel_destination() function of th...

66f175587a1df295c4c94f0441e74841e57079ec authored about 7 years ago by Arzhan Kinzhalin <[email protected]>
Update code syle documentation

Add details for if statement bracket use and function and variable
names.

aba771b51c7c7370168fd2f10922a6697f5ff502 authored about 7 years ago by William Douglas <[email protected]>
Support for 2-stage loading via shim and systemd-boot

This change allows the installation of a shim when using systemd-boot as
the bootloader. It als...

c025f7178ea3bf4f9d715829dc89a6f357fe1d61 authored about 7 years ago by Arzhan "kai" Kinzhalin <[email protected]>
Fix spelling, punctuation

Fix error messages, including a misspelling, and inconsistent use of periods within individual m...

75c8501c0774f0eeb504fd8a3b5e3e9a6c8c2602 authored about 7 years ago by Brett T. Warden <[email protected]>
v1.5.5 release

81da1324fa0e2436a0be180ee0188cb99ffe27d6 authored about 7 years ago by William Douglas <[email protected]>
README fixups for repo move

ee88f6e6aa8d47f7aeba320717c219c54e2fc594 authored about 7 years ago by William Douglas <[email protected]>
lib: Address upstream util-linux partlist regression

This fixes a segfault occuring within clr-boot-manager's usage of the
`blkid_partlist_numof_part...

5a1f9d261b406f5f33b150c9d9c3d3e2c8d779db authored about 7 years ago by Ikey Doherty <[email protected]>
Fix typo in error message

Fix dermine->determine

e8c7070064fca44fcd94a878ecefbdf38f86b749 authored about 7 years ago by Brett T. Warden <[email protected]>
cmdline: Support vendor provided stateless fragments

This change introduces support for vendor kernel configuration fragments,
which typically live w...

9bdd68d4c5010b24c2956af0e7c0cc743a0c6495 authored over 7 years ago by Ikey Doherty <[email protected]>
Get rid of ar(chiver) warning.

Using automake default modifiers ('cru') makes ar warn about
meaningless 'u':

/usr/bin/ar: `u' ...

f6630a2389a82c20a106f91634ac88af3b415b2d authored over 7 years ago by Arzhan Kinzhalin <[email protected]>
Fix the end of string condition.

a4048569a757b122bff2c16030d35cfc6ada1747 authored over 7 years ago by Arzhan Kinzhalin <[email protected]>
Bump version to 1.5.4 for release

Signed-off-by: Ikey Doherty <[email protected]>

d8b17d7af47fc80087ee72dd010af22a96021e05 authored over 7 years ago by Ikey Doherty <[email protected]>
tests: Run clang-format to deduplicate header includes

Signed-off-by: Ikey Doherty <[email protected]>

c8268601c89fde4b7e6db1ac7d7d1c8bc3d3dfc3 authored over 7 years ago by Ikey Doherty <[email protected]>
cli: Return the correct value when set_timeout works

Signed-off-by: Ikey Doherty <[email protected]>

6c0a383788be4c70396512cb4b74225ee084284f authored over 7 years ago by Ikey Doherty <[email protected]>
Fix the ordering of UEFI vs legacy probing

The first and most important change is to ensure that we never try to
grab the host ESP when we'...

c44abcba985fad44d53e3ab84b3bedfc094fc0b8 authored over 7 years ago by Ikey Doherty <[email protected]>
tests: Add a new set of tests around kernels without modules

Signed-off-by: Ikey Doherty <[email protected]>

d4d32bbb6e13fa759c8ad39c99ee53038fb71862 authored over 7 years ago by Ikey Doherty <[email protected]>
kernel: Allow lack of modules to be non-fatal

The lack of kernel modules during install isn't necessarily fatal, and
some kernel configuration...

349301473fedc33f0b9e7abb4b2243bd33ad24a1 authored over 7 years ago by Ikey Doherty <[email protected]>
Bump v1.5.3

Signed-off-by: Ikey Doherty <[email protected]>

cac98846ba4b9d1e93d9c2ea10a2ac9761272434 authored over 7 years ago by Ikey Doherty <[email protected]>
Ensure to include sysmacros.h for major/minor usage

As of glibc 2.25, warnings will be emitted at compile time to state
that you must explicitly inc...

567adab3394dea4a9a696a6b776923a0279735b8 authored over 7 years ago by Ikey Doherty <[email protected]>
bootman: Ensure that we use the full namespace for EFI assets

Prior to this change, the kernel and initrd paths were not using the
namespace directory during ...

1fdb5aa6aa1c6c2798bf0336b683d728e586d71d authored over 7 years ago by Ikey Doherty <[email protected]>
Bump v1.5.2

Signed-off-by: Ikey Doherty <[email protected]>

f39aec33a290d5186fd974208984a6035a8e5daa authored over 7 years ago by Ikey Doherty <[email protected]>
bootman: Remove legacy kernel blobs from bootdir

Since we switched to legacy vs UEFI namespacing, we only removed the target
path for the interna...

6e9b2b6c52bc657b16ac9b73af2061e5c12446aa authored almost 8 years ago by Ikey Doherty <[email protected]>