{"id":17956370,"url":"https://github.com/b0o/refind-genconf","last_synced_at":"2025-03-25T02:31:21.403Z","repository":{"id":88329417,"uuid":"341398023","full_name":"b0o/refind-genconf","owner":"b0o","description":"refind-genconf makes it easier to generate rEFInd configurations for multiple kernels","archived":false,"fork":false,"pushed_at":"2021-02-23T03:58:29.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T07:03:13.786Z","etag":null,"topics":["linux","linux-kernel","refind","uefi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b0o.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-23T02:05:52.000Z","updated_at":"2024-08-24T23:41:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"b58e3bb2-eed8-4c0c-bf83-e137bc13ef18","html_url":"https://github.com/b0o/refind-genconf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Frefind-genconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Frefind-genconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Frefind-genconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Frefind-genconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b0o","download_url":"https://codeload.github.com/b0o/refind-genconf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245385458,"owners_count":20606651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","linux-kernel","refind","uefi"],"created_at":"2024-10-29T10:37:33.790Z","updated_at":"2025-03-25T02:31:21.396Z","avatar_url":"https://github.com/b0o.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# refind-genconf [![version](https://img.shields.io/github/v/tag/b0o/refind-genconf?style=flat\u0026color=yellow\u0026label=version\u0026sort=semver)](https://github.com/b0o/refind-genconf/releases) [![license: gpl-3.0-or-later](https://img.shields.io/github/license/b0o/refind-genconf?style=flat\u0026color=green)](https://opensource.org/licenses/GPL-3.0)\n\n\u003e refind-genconf makes it easier to generate rEFInd configurations for multiple kernels\n\n## Install\n\nTODO\n\n## Usage\n\n\u003c!-- USAGE --\u003e\n```\nusage: refind-genconf [opts] [kernel ..]\n\nOptions:\n\n  -h            Print this help message.\n  -c \u003cconfig\u003e   Use \u003cconfig\u003e file to configure refind-genconf (wow such config).\n  -x            Print the default configuration file.\n  -X            Print an example configuration file.\n\nrefind-genconf generates refind configuration files\n```\n\u003c!-- /USAGE --\u003e\n\n## Configuration\n\n\u003c!-- CONF --\u003e\n```bash\n# Example configuration for refind-genconf\n# Make sure you edit this file to reflect your actual setup!\n\n# Path to the boot partition mount point.\n# Default:\n# boot=\"/boot\"\n\n# Title of the main refind linux menu. If not specified, it will be autodetected via lsb_release.\n# menu_title=\"Arch Linux\"\n\n# Configuration directives to be placed at the outermost level of the refind config file.\n# Default:\n# conf_outer=()\nconf_outer=(\n  \"include /EFI/refind/themes/refind-ambience/theme.conf\"\n  \"icons_dir /EFI/refind/themes/refind-ambience/icons\"\n  \"scan_all_linux_kernels false\"\n  \"timeout 20\"\n  \"screensaver 300\"\n)\n\n# Configuration directives to be placed within the main refind linux menu\n# Default:\n# conf_inner=()\nconf_inner=(\n  \"icon /EFI/refind/themes/refind-ambience/icons/os_arch.png\"\n  'volume \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"'\n)\n\n# The different boot types for which you would like to generate boot submenu entries.\n# Boot type names should match the regular expression [a-zA-Z0-9_]+. The boot type \"all\" is reserved.\n# Default:\n# boot_types=(\"basic\" \"fallback\")\nboot_types=(\n  \"apparmor\"\n  \"basic\"\n  \"minimal\"\n  \"fallback\"\n)\n\n# Manually specify for which kernels boot entries should be generated.\n# If this array is empty, all installed kernels will have boot entries generated for them.\nkernels=(\"linux-clear-bin\" \"linux-ck-zen\" \"linux-zen\" \"linux\")\n\n# The default kernel to use.\n# Default:\n# default_kernel=\"linux\"\ndefault_kernel=\"linux-ck-zen\"\n\n# The default boot type to use.\n# Default:\n# default_type=\"basic\"\ndefault_type=\"apparmor\"\n\n# Kernel parameters to pass for all boot types.\n# Default:\n# params_all=()\nparams_all=(\n  \"ro\"\n  \"rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n  \"rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system\"\n  \"root=/dev/mapper/system\"\n  \"rootflags=subvol=@\"\n)\n\n# To define kernel parameters specific to a given boot type, define an array\n# named params_${boot_type}, e.g. params_basic.\n\n# Kernel parameters to pass for the 'basic' boot type.\nparams_basic=(\n  \"splash\"\n  \"quiet\"\n  \"consoleblank=60\"\n  \"fbcon=scrollback:256k\"\n  \"initrd=\\amd-ucode.img\"\n)\n\n# Kernel parameters to pass for the 'apparmor' boot type.\nparams_apparmor=(\n  \"${params_basic[@]}\"\n  \"apparmor=1\"\n  \"security=apparmor\"\n)\n\n# Kernel parameters to pass for the 'minimal' boot type.\nparams_minimal=(\n  \"nosplash\"\n)\n\n# Kernel parameters to pass for the 'fallback' boot type.\nparams_fallback=(\n  \"${params_minimal[@]}\"\n)\n\n# Character to use for indentation, either a tab or a space.\n# Default:\n# indent_char=\" \"\n\n# Number of indent characters per indent level.\n# Default:\n# indent_size=2\n```\n\u003c!-- /CONF --\u003e\n\nThe preceding example produces the following rEFInd configuration:\n\n\u003c!-- RESULT --\u003e\n```ini\n# NOTE: This file was auto-generated by refind-genconf. Do not edit directly.\n\ninclude /EFI/refind/themes/refind-ambience/theme.conf\nicons_dir /EFI/refind/themes/refind-ambience/icons\nscan_all_linux_kernels false\ntimeout 20\nscreensaver 300\n\nmenuentry \"Arch Linux\" {\n  ostype \"Linux\"\n  icon /EFI/refind/themes/refind-ambience/icons/os_arch.png\n  volume \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"\n\n  # Default: linux-ck-zen (apparmor)\n  loader  /vmlinuz-linux-ck-zen\n  options \"initrd=\\initramfs-linux-ck-zen.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img apparmor=1 security=apparmor ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n\n  # linux-clear-bin {{{\n\n  submenuentry \"linux-clear-bin (apparmor)\" {\n    loader  /vmlinuz-linux-clear-bin\n    options \"initrd=\\initramfs-linux-clear-bin.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img apparmor=1 security=apparmor ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-clear-bin (basic)\" {\n    loader  /vmlinuz-linux-clear-bin\n    options \"initrd=\\initramfs-linux-clear-bin.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-clear-bin (minimal)\" {\n    loader  /vmlinuz-linux-clear-bin\n    options \"initrd=\\initramfs-linux-clear-bin.img nosplash ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-clear-bin (fallback)\" {\n    loader  /vmlinuz-linux-clear-bin\n    options \"initrd=\\initramfs-linux-clear-bin-fallback.img nosplash ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  # }}}\n\n  # linux-ck-zen {{{\n\n  submenuentry \"linux-ck-zen (apparmor)\" {\n    loader  /vmlinuz-linux-ck-zen\n    options \"initrd=\\initramfs-linux-ck-zen.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img apparmor=1 security=apparmor ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-ck-zen (basic)\" {\n    loader  /vmlinuz-linux-ck-zen\n    options \"initrd=\\initramfs-linux-ck-zen.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-ck-zen (minimal)\" {\n    loader  /vmlinuz-linux-ck-zen\n    options \"initrd=\\initramfs-linux-ck-zen.img nosplash ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-ck-zen (fallback)\" {\n    loader  /vmlinuz-linux-ck-zen\n    options \"initrd=\\initramfs-linux-ck-zen-fallback.img nosplash ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  # }}}\n\n  # linux-zen {{{\n\n  submenuentry \"linux-zen (apparmor)\" {\n    loader  /vmlinuz-linux-zen\n    options \"initrd=\\initramfs-linux-zen.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img apparmor=1 security=apparmor ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-zen (basic)\" {\n    loader  /vmlinuz-linux-zen\n    options \"initrd=\\initramfs-linux-zen.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-zen (minimal)\" {\n    loader  /vmlinuz-linux-zen\n    options \"initrd=\\initramfs-linux-zen.img nosplash ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux-zen (fallback)\" {\n    loader  /vmlinuz-linux-zen\n    options \"initrd=\\initramfs-linux-zen-fallback.img nosplash ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  # }}}\n\n  # linux {{{\n\n  submenuentry \"linux (apparmor)\" {\n    loader  /vmlinuz-linux\n    options \"initrd=\\initramfs-linux.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img apparmor=1 security=apparmor ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux (basic)\" {\n    loader  /vmlinuz-linux\n    options \"initrd=\\initramfs-linux.img splash quiet consoleblank=60 fbcon=scrollback:256k initrd=\\amd-ucode.img ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux (minimal)\" {\n    loader  /vmlinuz-linux\n    options \"initrd=\\initramfs-linux.img nosplash ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  submenuentry \"linux (fallback)\" {\n    loader  /vmlinuz-linux\n    options \"initrd=\\initramfs-linux-fallback.img nosplash ro rd.luks.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.luks.name=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx=system root=/dev/mapper/system rootflags=subvol=@\"\n  }\n\n  # }}}\n}\n\n# vim:set fdm=marker fdl=2 ft=conf sw=2 sts=2 et:\n```\n\u003c!-- /RESULT --\u003e\n\n## License\n\n\u003c!-- LICENSE --\u003e\n\u0026copy; 2020-2021 Maddison Hellstrom\n\nReleased under the GNU General Public License, version 3.0 or later.\n\u003c!-- /LICENSE --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Frefind-genconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb0o%2Frefind-genconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Frefind-genconf/lists"}