10 Commits

Author SHA1 Message Date
William Douglas 8276f49e43 Add remove-kernel command
In some cases users will want to remove kernels from their systems
outside an update workflow. This is fairly painful to do manually so
add a command to handle the operation which removes both the /boot
data and configuration files as well as the /usr data.

The default symlink for a kernel type will remain as this is something
that the update mechanism should be in control of and figuring out
what would be the fallback is out of cbm's scope.

Signed-off-by: William Douglas <william.douglas@intel.com>
2023-01-04 14:46:43 -08:00
Lucius Hu e7f856a428 completions: Update bash and zsh completions
- Added `--image` and `--no-efi-update` flags
- Minor changes in zsh script.
2020-05-05 22:06:06 -07:00
Lucius Hu 086dfc7d32 completions: Minor fix on comments
It was wrongly described as `Software Updater - autocompletion script`, and it's changed to
`Kernel & Boot Loader Management - autocompletion script`.
2019-07-30 07:06:25 -07:00
Lucius Hu 3aedb7d42f Fixup typo in meson.build for shell completions 2019-07-29 11:49:42 -07:00
Lucius Hu 145014d5ea Edited meson.build for shell completion template 2019-07-29 11:49:42 -07:00
Lucius Hu a2c802d6e9 completions: multiple improvement
- `bash` completion now has completions for sub-commands. Notably,
  for `set-kernel` sub-command, it list all kernels installed in
  kernel directory. If `--path` is present, it will prepend its
  argument before the kernel directory.
- Both `bash` and `zsh` completions are turned into templates, which have
  two special variables, `@KERNEL_DIRECTORY@` and `@KERNEL_NAMESPACE@`.
  On current Clear Linux, their default values are `/usr/lib/kernel` and
  `org.clearlinux`
- `meson.build` file is modified and will replace kernel namespace and
  kernel directory in completions.
2019-07-29 11:49:42 -07:00
Lucius Hu fba3b31b93 zsh-completion: Improved
Added completions for sub-commands, including
- Path completion if a sub-command accept `--path=` option
- Shows a list of kernels for `set-kernel` sub-command, where it searches for
  kernels under `/usr/lib/kernel` by default, while prepends the option arg of
  `--path` if it's given. If the user specified a path manually, instead of
  using file path completion, and that path doesn't exist, warns user.
- Reminds the user to input a integer value for `set-timeout`
  sub-command
- Adds all sub-commands to completion menu as argument to `help` sub-command
2019-07-26 11:18:12 -07:00
William Douglas f742b600df Enable completions to be installed
Add meson integration for the completions files.
2019-07-22 21:45:40 -07:00
Ikey Doherty cba2f74c8c Convert build system to meson
This change is designed to make it simpler to maintain clr-boot-manager
by switching to the much easier meson build system. Care is taken to
preserve the original functionality, but this will allow us to avoid
repeated issues of "failed distcheck", etc.

Additionally, a new test entry point is now included for Travis, to ensure
all relevant codepaths are properly tested. This now enables us to trivially
merge multiple runs into a single coverage report so that we can test the
code base in various "deployments".

To alleviate the issue of distributing without a `make distcheck` target,
this change vendors the `git-archive-all.sh` script into `scripts/` and
provides a port of the `budgie-desktop` `mkrelease.sh` script to quickly
and easily create a signed distribution tarball straight from git, along
with the submodules (i.e. nica).

Lastly, we'll only build the bootvar support + systemd-shim when we've
actually selected this bootloader, to ensure the project can still be built
without needing gnu-efi/efivar.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-11-01 13:09:31 -07:00
Ikey Doherty 423dacf054 Add systemd unit to run on boot to report boot status
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2016-06-07 16:35:25 +01:00