mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-02-07 15:19:04 +00:00
1 line
5.4 KiB
JSON
1 line
5.4 KiB
JSON
![]() |
{"pageProps":{"metadata":{"date":"2021-08-07 20:08:09 +08:00","date_modified":"2022-05-22 21:24:33 +08:00","language":"en","source":""},"title":"systemd-boot","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"systemd also comes with a bootloader aptly named "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"systemd-boot"}]},{"type":"text","value":" though it only supports UEFI-based firmware.\nJust like GRUB, they can be configured through plain-text files.\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"For detailed information about the bootloader, see the manual page "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"systemd-boot.7"}]},{"type":"text","value":".\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"With a complete installation, the bootloader config folder may look like the following list.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/boot/\n`-- loader\n |-- entries # (ref:loader-entries)\n | `-- arch.conf\n |-- loader.conf # (ref:loader-conf)\n `-- random-seed\n"}]}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"/(loader-entries)"},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"loader/entries/"}]}]},{"type":"text","value":" is a directory containing all of the entries available to be booted.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"/(loader-conf)"},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"loader.conf"}]}]},{"type":"text","value":" contains the loader configuration.\n"}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Most Linux distros with systemd installed should have a sample config file somewhere. "},{"type":"text","value":"\nAs an example, we'll show what those look like.\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"loader.conf"}]},{"type":"text","value":" is the configuration for the boot loader including the timeout seconds among others.\nHere is a sample of a bootloader configuration.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"default arch\ntimeout 4\n"}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In this config, this simply makes the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"arch"}]},{"type":"text","value":" loader entry to be default when no actions has occurred.\nIt will start loading it automatically after a timeout of 4 seconds.\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"arch"}]},{"type":"text","value":" loader entry can be found at "},{"type":"element","tagName":"code"
|