Crates.io | systemd-boot-gen |
lib.rs | systemd-boot-gen |
version | 1.1.1 |
source | src |
created_at | 2021-10-11 10:29:50.639826 |
updated_at | 2021-10-20 21:03:43.128767 |
description | systemd-boot boot configuration generator |
homepage | |
repository | https://github.com/unnservice/systemd-boot-gen |
max_upload_size | |
id | 463501 |
size | 48,988 |
This project attempts to create the .conf files located in /boot/loader/entries/. It will read two files:
/etc/default/cmdline contains one variable: CMDLINE="", the value of which must be quoted; these are the parameters passed to the kernel at boot.
You must create this file and copy the parameters from grub, or other existing configuration files, before proceeding.
Example:
CMDLINE="root=UUID=4bd01097-de27-49a3-b6a7-ae60516d1f2c ro rootflags=subvol=root-gentoo resume=UUID=4a6c4856-6dd8-4bab-afcf-a41bdf1c7c33 crypt_root=UUID=c821ecff-229c-4d56-a750-2e1542ea1cdb root_trim=yes intel_iommu=igfx_off keymap=se i915.enable_guc=3 i915.enable_fbc=1 i915.enable_dc=1"
cargo install systemd-boot-gen
To generate:
$HOME/.cargo/bin/systemd-boot-gen
To generate and to remove old or invalid config files, add the -r flag:
$HOME/.cargo/bin/systemd-boot-gen -r