2024-04-15T19:52:14,002 Created temporary directory: /tmp/pip-build-tracker-ej16m28f 2024-04-15T19:52:14,003 Initialized build tracking at /tmp/pip-build-tracker-ej16m28f 2024-04-15T19:52:14,004 Created build tracker: /tmp/pip-build-tracker-ej16m28f 2024-04-15T19:52:14,004 Entered build tracker: /tmp/pip-build-tracker-ej16m28f 2024-04-15T19:52:14,005 Created temporary directory: /tmp/pip-wheel-ay0dsr5r 2024-04-15T19:52:14,008 Created temporary directory: /tmp/pip-ephem-wheel-cache-4w5vh3kr 2024-04-15T19:52:14,030 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2024-04-15T19:52:14,034 2 location(s) to search for versions of funtoo-ramdisk: 2024-04-15T19:52:14,034 * https://pypi.org/simple/funtoo-ramdisk/ 2024-04-15T19:52:14,034 * https://www.piwheels.org/simple/funtoo-ramdisk/ 2024-04-15T19:52:14,035 Fetching project page and analyzing links: https://pypi.org/simple/funtoo-ramdisk/ 2024-04-15T19:52:14,035 Getting page https://pypi.org/simple/funtoo-ramdisk/ 2024-04-15T19:52:14,037 Found index url https://pypi.org/simple/ 2024-04-15T19:52:14,255 Fetched page https://pypi.org/simple/funtoo-ramdisk/ as application/vnd.pypi.simple.v1+json 2024-04-15T19:52:14,259 Found link https://files.pythonhosted.org/packages/d3/2f/2d92b7aef92983cdfbe7e0809b00e5ffa9ff699c73ad53e501b93dfd5e7f/funtoo-ramdisk-1.0.0.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.0.0 2024-04-15T19:52:14,260 Found link https://files.pythonhosted.org/packages/f7/ce/2b2669f5181ad3da55bdb4c0b7e78f1a1f02a52cf6f4d26da363b98b0ff6/funtoo-ramdisk-1.0.1.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.0.1 2024-04-15T19:52:14,261 Found link https://files.pythonhosted.org/packages/f9/fa/646343cf9f6313cf3808fc13d1f0e047a0f044afbdd7c60d76613a4da543/funtoo-ramdisk-1.0.2.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.0.2 2024-04-15T19:52:14,262 Found link https://files.pythonhosted.org/packages/33/8b/67d6030fe5aca53d240d6f4fb5cc6319918ed0c9310866a074c27ceebdf7/funtoo-ramdisk-1.0.3.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.0.3 2024-04-15T19:52:14,264 Found link https://files.pythonhosted.org/packages/3f/13/0c6d2f9e8ae74fe6fc8a290bfbb7b389818e7a7b82d158ff20e9251e5c89/funtoo-ramdisk-1.0.4.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.0.4 2024-04-15T19:52:14,265 Found link https://files.pythonhosted.org/packages/b2/7e/d3590830418ed3e696c6e922ead5a50daee4c8c2136b315153fcee0377a2/funtoo-ramdisk-1.0.5.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.0.5 2024-04-15T19:52:14,266 Found link https://files.pythonhosted.org/packages/ed/be/18b4d837c37a78a43accd3347db70d3dc5bafd48b668d1f45d1b92172a00/funtoo-ramdisk-1.0.6.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.0.6 2024-04-15T19:52:14,267 Found link https://files.pythonhosted.org/packages/5b/af/89829fafc0fdc46f515dcc45cac43a14a333f10703d9e77e2f07b75f9315/funtoo-ramdisk-1.0.7.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.0.7 2024-04-15T19:52:14,268 Found link https://files.pythonhosted.org/packages/7c/a6/12d689149a2f7695776cc1c97dba03d1baabbf2451e4bf7c28ccdd2ae4d3/funtoo-ramdisk-1.1.0.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.1.0 2024-04-15T19:52:14,269 Found link https://files.pythonhosted.org/packages/cd/f2/c7a93f91f1c06e4e7697f4cb1af5ff1afa2e7e20c8ba456c0b6820a1e9ca/funtoo-ramdisk-1.1.1.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.1.1 2024-04-15T19:52:14,270 Found link https://files.pythonhosted.org/packages/5c/80/ca623eaa36c300bb5ae15cafcc2e31d47cd6c3b8e6fda88377ba1dce4daa/funtoo-ramdisk-1.1.2.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.1.2 2024-04-15T19:52:14,271 Found link https://files.pythonhosted.org/packages/71/ee/28d91ae310a7a95ed7ba0ef51c19acc865ff5241180c22a0523f79e3c434/funtoo-ramdisk-1.1.3.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.1.3 2024-04-15T19:52:14,272 Found link https://files.pythonhosted.org/packages/58/6e/6870840ee61954a50a065a346153b1346608b4bf083aaf4f825e77318e90/funtoo-ramdisk-1.1.4.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.1.4 2024-04-15T19:52:14,273 Found link https://files.pythonhosted.org/packages/ae/7d/97e4fb2652319c7a1d66b54f0145546d9a76d8955041931bc78fba6d6ab9/funtoo-ramdisk-1.1.5.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.1.5 2024-04-15T19:52:14,274 Found link https://files.pythonhosted.org/packages/f3/67/b3bf3836d65feca182c4912891b0536f85915d62dc8ac4cd26ddb1504c08/funtoo_ramdisk-1.1.6.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.1.6 2024-04-15T19:52:14,275 Found link https://files.pythonhosted.org/packages/10/2f/e2207365cd30d75ed1efbb19f7a991d6dab253a7eb0ad49e8c5a6cf6afd3/funtoo_ramdisk-1.1.7.tar.gz (from https://pypi.org/simple/funtoo-ramdisk/) (requires-python:>=3.7), version: 1.1.7 2024-04-15T19:52:14,275 Fetching project page and analyzing links: https://www.piwheels.org/simple/funtoo-ramdisk/ 2024-04-15T19:52:14,276 Getting page https://www.piwheels.org/simple/funtoo-ramdisk/ 2024-04-15T19:52:14,277 Found index url https://www.piwheels.org/simple/ 2024-04-15T19:52:14,626 Fetched page https://www.piwheels.org/simple/funtoo-ramdisk/ as text/html 2024-04-15T19:52:14,631 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.1.6-py3-none-any.whl#sha256=c585df70b910eafd17873937e4e09957f694059cbcf0fa12267efa89b4c8a3b2 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,631 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.1.5-py3-none-any.whl#sha256=bf0be2ea4c9e906d7c8622d4ce42c76d5eb9d6b477c7d856bc3e9f9e34a14b5a (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,632 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.1.3-py3-none-any.whl#sha256=0f98fea7a4892de73fc0dae0f4762ff9834011b43acd8b146ebd15a770df75e2 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,633 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.1.2-py3-none-any.whl#sha256=3d74e5ebfd1cccc7b8f485c95d434ef9e8bc1a4716f8a22b08a259452a4c73bc (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,633 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.1.1-py3-none-any.whl#sha256=ad2dcafb5a8dceeea14bdbede73669479db69fb3cca89c6392aa3c2e688b15c0 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,634 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.1.0-py3-none-any.whl#sha256=1a4604cec4d133454e7d49d6b8046ecac63c5d35bee972e0b83d7c642519b1fe (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,635 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.0.7-py3-none-any.whl#sha256=1d5973cefc4213fd86b3c2d588147d819d85b297838aec0f76a7083c038f897d (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,635 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.0.6-py3-none-any.whl#sha256=f40079c99c437f3949147af63efa1e16713bbe6101b4fde69e8de5ea434306e3 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,636 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.0.5-py3-none-any.whl#sha256=3451404b0e9f527100407bfd4f343cfe9197b5f6f9bab7e5f6494ce9ea2bafff (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,637 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.0.4-py3-none-any.whl#sha256=54c976a5a708a542266aa1f9c2584634ecaa529c6564bbef4c66d65012ced852 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,637 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.0.3-py3-none-any.whl#sha256=cde4241106db6ca7c0bd04d0f1817c5f352fc45c46e5b75df9b1cf0dcd977234 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,637 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.0.2-py3-none-any.whl#sha256=6e70627cb0da3859494b41255b0ba8bf164c16221b5779924cc3b5fd12a0a928 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,638 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.0.1-py3-none-any.whl#sha256=232a400779c3abd15ac70e995c47347a69f669d1ce4d4e4ced81b43b3a6b6c30 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,638 Skipping link: No binaries permitted for funtoo-ramdisk: https://www.piwheels.org/simple/funtoo-ramdisk/funtoo_ramdisk-1.0.0-py3-none-any.whl#sha256=cb61659ae06f4e370b5de5a9a3e3041eeaaa193ec1b45e1a0948b75d7ca922f2 (from https://www.piwheels.org/simple/funtoo-ramdisk/) (requires-python:>=3.7) 2024-04-15T19:52:14,639 Skipping link: not a file: https://www.piwheels.org/simple/funtoo-ramdisk/ 2024-04-15T19:52:14,640 Skipping link: not a file: https://pypi.org/simple/funtoo-ramdisk/ 2024-04-15T19:52:14,660 Given no hashes to check 1 links for project 'funtoo-ramdisk': discarding no candidates 2024-04-15T19:52:14,678 Collecting funtoo-ramdisk==1.1.7 2024-04-15T19:52:14,681 Created temporary directory: /tmp/pip-unpack-uoc4_tfd 2024-04-15T19:52:14,895 Downloading funtoo_ramdisk-1.1.7.tar.gz (38 kB) 2024-04-15T19:52:15,011 Added funtoo-ramdisk==1.1.7 from https://files.pythonhosted.org/packages/10/2f/e2207365cd30d75ed1efbb19f7a991d6dab253a7eb0ad49e8c5a6cf6afd3/funtoo_ramdisk-1.1.7.tar.gz to build tracker '/tmp/pip-build-tracker-ej16m28f' 2024-04-15T19:52:15,013 Running setup.py (path:/tmp/pip-wheel-ay0dsr5r/funtoo-ramdisk_c6fd5a9f6e7b4a719664ed27c4424c42/setup.py) egg_info for package funtoo-ramdisk 2024-04-15T19:52:15,015 Created temporary directory: /tmp/pip-pip-egg-info-sy9c7oce 2024-04-15T19:52:15,015 Preparing metadata (setup.py): started 2024-04-15T19:52:15,017 Running command python setup.py egg_info 2024-04-15T19:52:15,439 ========= 2024-04-15T19:52:15,439 ramdisk 2024-04-15T19:52:15,440 ========= 2024-04-15T19:52:15,441 -------------------------------------------------- 2024-04-15T19:52:15,441 create a bootable initial ramdisk 2024-04-15T19:52:15,442 -------------------------------------------------- 2024-04-15T19:52:15,443 :Author: Daniel Robbins 2024-04-15T19:52:15,444 :Copyright: Copyright 2023 Daniel Robbins, Funtoo Solutions, Inc. 2024-04-15T19:52:15,444 Licensed under the Apache License, Version 2.0 (the "License"); 2024-04-15T19:52:15,445 you may not use this file except in compliance with the License. 2024-04-15T19:52:15,445 You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. 2024-04-15T19:52:15,446 :Version: 1.1.7 2024-04-15T19:52:15,446 :Manual section: 8 2024-04-15T19:52:15,447 :Manual group: Funtoo Linux 2024-04-15T19:52:15,448 SYNOPSIS 2024-04-15T19:52:15,449 ======== 2024-04-15T19:52:15,450 ``ramdisk`` [build] [*OPTION...*] ``initramfs_outfile`` 2024-04-15T19:52:15,451 ``ramdisk`` list kernels 2024-04-15T19:52:15,452 ``ramdisk`` list plugins 2024-04-15T19:52:15,453 DESCRIPTION 2024-04-15T19:52:15,454 =========== 2024-04-15T19:52:15,455 The Funtoo ramdisk tool, called ``ramdisk`` is a stand-alone tool to create an 2024-04-15T19:52:15,455 initial RAM disk filesystem (initramfs) for booting your Linux system. 2024-04-15T19:52:15,456 The internal initramfs logic is based on the logic found in Gentoo Linux's 2024-04-15T19:52:15,456 genkernel tool, but has been rewritten to be simpler and more efficient. 2024-04-15T19:52:15,457 You can use this tool to create an initramfs to boot to a Funtoo Linux root 2024-04-15T19:52:15,458 ext4 or XFS filesystem, which is what we support in our official installation 2024-04-15T19:52:15,458 documentation at https://www.funtoo.org/Install. 2024-04-15T19:52:15,459 CAPABILITIES 2024-04-15T19:52:15,459 ============ 2024-04-15T19:52:15,460 * genkernel-style initramfs without the cruft. In comparison to genkernel's 2024-04-15T19:52:15,461 initramfs, the shell code is about 10x simpler and a lot cleaner and has 2024-04-15T19:52:15,461 been modernized. About 100 lines of shell script, with another 215 lines 2024-04-15T19:52:15,461 of functions in a support file. 2024-04-15T19:52:15,462 * Copies over the modules you specify -- and automatically figures out any 2024-04-15T19:52:15,463 kernel module dependencies, so any depended-upon modules are also copied. 2024-04-15T19:52:15,463 This eliminates the need to track these dependencies manually. 2024-04-15T19:52:15,464 * Rootless operation. You do not need enhanced privileges to create the 2024-04-15T19:52:15,465 initramfs. 2024-04-15T19:52:15,466 * You can read the ``linuxrc`` script and actually understand what it does. 2024-04-15T19:52:15,466 It is written to be easy to understand and adapt. So it's not just short, 2024-04-15T19:52:15,467 but easy to grasp. 2024-04-15T19:52:15,468 * Enhanced module loading engine on the initramfs which is significantly 2024-04-15T19:52:15,468 faster than genkernel. This effectively eliminates the "watching the 2024-04-15T19:52:15,469 stream of useless modules being loaded" issue with genkernel. Modern 2024-04-15T19:52:15,469 systems with NVMe drives will load just a handful of modules to boot 2024-04-15T19:52:15,470 -- all without requiring any special action from the user. 2024-04-15T19:52:15,471 * "kpop" functionality allows for building ramdisks with just the modules 2024-04-15T19:52:15,472 you need. For example, ``ramdisk --kpop=nvme,ext4`` will create a 2024-04-15T19:52:15,472 ramdisk that can boot on NVMe ext4 root filesystems, and only include 2024-04-15T19:52:15,473 these necessary modules, leaving all other modules to be loaded by 2024-04-15T19:52:15,473 your Funtoo Linux system. 2024-04-15T19:52:15,474 * Effective Python-based command to actually build the ramdisk, which is 2024-04-15T19:52:15,475 called: ``ramdisk``. This gives us an extensible platform for the future. 2024-04-15T19:52:15,476 * Enhanced ini-style system for selecting modules to include on your initramfs. 2024-04-15T19:52:15,477 * Enhanced ini-style system for selecting module groups to autoload on the 2024-04-15T19:52:15,478 initramfs. 2024-04-15T19:52:15,479 * Support for xz and zstd compression. 2024-04-15T19:52:15,480 ACTIONS 2024-04-15T19:52:15,481 ======= 2024-04-15T19:52:15,482 The default action is ``build``, and can be optionally specified, which will 2024-04-15T19:52:15,483 instruct ``ramdisk`` to build an initramfs. Available actions: 2024-04-15T19:52:15,484 build 2024-04-15T19:52:15,484 ----- 2024-04-15T19:52:15,485 Create an initramfs. See **OPTIONS** below for all options supported. The ``build`` 2024-04-15T19:52:15,485 action requires a destination initramfs path. This will be the literal path and 2024-04-15T19:52:15,486 filename for the output initramfs. Use ``--force`` to overwrite any existing file. 2024-04-15T19:52:15,487 list 2024-04-15T19:52:15,488 ---- 2024-04-15T19:52:15,488 List various things -- currently supported targets are ``kernels`` and ``plugins``. 2024-04-15T19:52:15,489 ``kernels`` will show you a list of available installed kernels on your system for 2024-04-15T19:52:15,489 which you can build a ramdisk, and ``plugins`` will show the available boot-time 2024-04-15T19:52:15,490 plugins that can be enabled to add more functionality to your ramdisk. 2024-04-15T19:52:15,491 OPTIONS 2024-04-15T19:52:15,491 ======= 2024-04-15T19:52:15,492 --debug Enable debug output. 2024-04-15T19:52:15,492 --backtrace Display full python backtrace/traceback instead of just a 2024-04-15T19:52:15,493 short error summary. 2024-04-15T19:52:15,493 --force Overwrite target initramfs if it exists. 2024-04-15T19:52:15,494 --version Show this program's version number and exit. 2024-04-15T19:52:15,494 --help Show this help message and exit. 2024-04-15T19:52:15,494 --fs_foot= This defaults to ``/``, and specifies the filesystem root to look at 2024-04-15T19:52:15,495 for finding both kernel sources (in ``/usr/src``) and kernel modules 2024-04-15T19:52:15,495 (in ``/lib/modules``). This option also applies to ``ramdisk list 2024-04-15T19:52:15,496 kernels``. 2024-04-15T19:52:15,496 --kernel= Specify what kernel to build a ramdisk for. Use 2024-04-15T19:52:15,497 ``ramdisk list kernels`` to display available options. The 2024-04-15T19:52:15,498 default setting is to use the current value of the 2024-04-15T19:52:15,498 ``/usr/src/linux`` symlink at the filesystem root to determine 2024-04-15T19:52:15,499 which kernel to build a ramdisk for. 2024-04-15T19:52:15,499 --compression= Compression method to use. Default is ``xz``. Also supported: ``zstd``. 2024-04-15T19:52:15,500 --temp_root= Where to create temporary files. Defaults to ``/var/tmp``. 2024-04-15T19:52:15,501 --plugins= A comma-delimited list of plugins to enable. The ``core`` plugin is 2024-04-15T19:52:15,501 always enabled. Type ``ramdisk list plugins`` to see a list of available 2024-04-15T19:52:15,502 plugins. 2024-04-15T19:52:15,502 --kmod_config= ``ramdisk`` supports different sets of kernel module configurations, which 2024-04-15T19:52:15,503 define what kernel modules get copied to the initramfs, and which ones 2024-04-15T19:52:15,504 get auto-loaded by the initramfs at boot. Default value: ``full``. This 2024-04-15T19:52:15,504 is currently the only option unless overridden by ``--kpop`` (see below.) 2024-04-15T19:52:15,505 --kpop= A comma-delimited list of kernel module names that you are sure, if loaded, 2024-04-15T19:52:15,505 will allow your root block device and filesystem to be mounted. For example, 2024-04-15T19:52:15,506 ``--kpop=nvme,ext4`` will include just the modules required for booting 2024-04-15T19:52:15,506 NVMe disks and mounting your root ext4 filesystem. When this option is used, 2024-04-15T19:52:15,507 a special minimal kernel module config is used instead of what is specified 2024-04-15T19:52:15,507 via ``--kmod_config`` (see above). 2024-04-15T19:52:15,509 USAGE 2024-04-15T19:52:15,509 ===== 2024-04-15T19:52:15,510 In its simplest form, the command can be used as follows, as a regular user:: 2024-04-15T19:52:15,512 $ ramdisk /var/tmp/my-new-initramfs 2024-04-15T19:52:15,512 $ sudo cp /var/tmp/my-new-initramfs /boot 2024-04-15T19:52:15,514 By default, ``ramdisk`` will use your ``/usr/src/linux`` symlink to determine which 2024-04-15T19:52:15,514 kernel to use to build a ramdisk for. It will parse ``/usr/src/linux/Makefile``, 2024-04-15T19:52:15,515 extract kernel version information, and then find the appropriate directory in 2024-04-15T19:52:15,515 ``/lib/modules/`` for copying modules. You can type: 2024-04-15T19:52:15,515 ``ramdisk list kernels`` and ``ramdisk --kernel `` to build a ramdisk 2024-04-15T19:52:15,516 for a non-default kernel. 2024-04-15T19:52:15,517 Since this is brand-new software, it is highly recommended that you **DO NOT OVERWRITE 2024-04-15T19:52:15,517 YOUR EXISTING, WORKING INITRAMFS THAT YOU CURRENTLY USE TO BOOT YOUR SYSTEM.** 2024-04-15T19:52:15,518 Instead -- create a **NEW BOOT ENTRY** to test your initramfs. In GRUB, you can also 2024-04-15T19:52:15,518 press 'e' to edit an entry and type in the name of the new initramfs to give it a try. 2024-04-15T19:52:15,521 ChangeLog 2024-04-15T19:52:15,521 ========= 2024-04-15T19:52:15,522 funtoo-ramdisk 1.1.7 2024-04-15T19:52:15,522 -------------------- 2024-04-15T19:52:15,524 Released on April 15, 2024. 2024-04-15T19:52:15,525 This is a minor bug release. 2024-04-15T19:52:15,526 * Fix a possible issue where ``__pycache__`` directories can mess 2024-04-15T19:52:15,526 up copying of files to the initramfs. 2024-04-15T19:52:15,528 funtoo-ramdisk 1.1.6 2024-04-15T19:52:15,528 -------------------- 2024-04-15T19:52:15,530 Released on April 14, 2024. 2024-04-15T19:52:15,531 This is a maintenance and minor features release. 2024-04-15T19:52:15,533 * Various minor bug fixes. 2024-04-15T19:52:15,535 * Change ``--enable`` to ``--plugins`` since it's more 2024-04-15T19:52:15,535 self-explanatory. 2024-04-15T19:52:15,537 * Continue to flesh out the plugin system. I added support for 2024-04-15T19:52:15,538 plugins to have an activation script which will get executed 2024-04-15T19:52:15,539 on startup. This is a work in progress and I still need to 2024-04-15T19:52:15,540 add support for listing needed modules for a plugin which 2024-04-15T19:52:15,541 will get loaded automatically. 2024-04-15T19:52:15,543 * Fix a bug in argument parsing where the code was not scanning 2024-04-15T19:52:15,544 for invalid options which could result in odd parsing behavior. 2024-04-15T19:52:15,546 * Start adding support for udev. This is not yet completed but 2024-04-15T19:52:15,548 the plugin system for this has been incorporated into the 2024-04-15T19:52:15,549 linuxrc. 2024-04-15T19:52:15,553 funtoo-ramdisk 1.1.5 2024-04-15T19:52:15,554 -------------------- 2024-04-15T19:52:15,591 Released on September 15, 2023. 2024-04-15T19:52:15,592 This is a packaging fix for the manpage. 2024-04-15T19:52:15,594 funtoo-ramdisk 1.1.4 2024-04-15T19:52:15,595 -------------------- 2024-04-15T19:52:15,596 Released on September 15, 2023. 2024-04-15T19:52:15,597 This release adds a "ramdisk" man page. 2024-04-15T19:52:15,598 funtoo-ramdisk 1.1.3 2024-04-15T19:52:15,599 -------------------- 2024-04-15T19:52:15,600 Released on September 14, 2023. 2024-04-15T19:52:15,601 * FL-11606: ``/sbin/blkid`` can't be run as non-root, and will 2024-04-15T19:52:15,602 trigger a sandbox violation inside an ebuild. So don't do it -- 2024-04-15T19:52:15,602 we were just running it to convieniently spit out the UUID for 2024-04-15T19:52:15,603 the user to put in their ``/etc/fstab``. Now we instruct the 2024-04-15T19:52:15,603 user to run ``blkid`` as root and avoid the sandbox violation. 2024-04-15T19:52:15,605 funtoo-ramdisk 1.1.2 2024-04-15T19:52:15,605 -------------------- 2024-04-15T19:52:15,606 Released on September 4, 2023. 2024-04-15T19:52:15,608 * Fix exit code (zero on success.) 2024-04-15T19:52:15,610 funtoo-ramdisk 1.1.1 2024-04-15T19:52:15,610 -------------------- 2024-04-15T19:52:15,612 Released on September 4, 2023. 2024-04-15T19:52:15,613 Fix three bugs: 2024-04-15T19:52:15,614 * Allow plugins to be loaded when installed in ``site-packages``. 2024-04-15T19:52:15,615 * Don't assume ``/usr/src/linux`` symlink exists in two places and 2024-04-15T19:52:15,615 handle this situation gracefully. This situation may exist during 2024-04-15T19:52:15,616 metro builds on incomplete systems. (2 bugs fixed). 2024-04-15T19:52:15,617 funtoo-ramdisk 1.1.0 2024-04-15T19:52:15,618 -------------------- 2024-04-15T19:52:15,619 Released on September 3, 2023. 2024-04-15T19:52:15,620 * Add plugin system for ramdisk: 2024-04-15T19:52:15,620 To use, pass ``--enable=,``. The ``core`` plugin is 2024-04-15T19:52:15,621 always enabled and copies ``/sbin/blkid``. There are currently ``btrfs`` 2024-04-15T19:52:15,621 and ``lvm`` plugins as well -- these are not yet fully-implemented and 2024-04-15T19:52:15,622 just ensure necessary binaries are copied over (no extra setup commands 2024-04-15T19:52:15,622 are run by the initramfs.) 2024-04-15T19:52:15,623 This is a starting point for enabling support for advanced 2024-04-15T19:52:15,624 features on the initramfs. 2024-04-15T19:52:15,625 * New "module configurations". The default module configuration is "full", 2024-04-15T19:52:15,625 which means "make a ramdisk with lots of modules to support a lot of 2024-04-15T19:52:15,625 hardware." Different module configurations can be added in the future. 2024-04-15T19:52:15,626 Module configurations can be specified via ``--kmod_config=``. 2024-04-15T19:52:15,627 * ``--kpop=`` feature to make minimal module ramdisks by specifying a 2024-04-15T19:52:15,627 dynamic module configuration via the command-line, rather than via 2024-04-15T19:52:15,628 static config files. 2024-04-15T19:52:15,629 If you specify ``--kpop=nvme,ext4`` then a ramdisk with just those 2024-04-15T19:52:15,630 modules (and their dependencies) will be included. This can dramatically 2024-04-15T19:52:15,630 reduce the size of your ramdisk. Note that this doesn't include the 2024-04-15T19:52:15,631 necessary modules to allow USB keyboards to work in the rescue shell, 2024-04-15T19:52:15,632 so it's only for known-good configurations. Enabling this feature also 2024-04-15T19:52:15,632 disables any static module configuration (see above.) 2024-04-15T19:52:15,633 * Change the binary plugin API so lists of binaries can be dynamically 2024-04-15T19:52:15,634 created and programmatic decisions can be made. Previously, we used a 2024-04-15T19:52:15,635 static list. This allows us to use ``lvm.static`` if available, but 2024-04-15T19:52:15,635 fall back to dynamic ``lvm``, for example. 2024-04-15T19:52:15,636 * To support ``kpop`` functionality, the ability to add a module by its 2024-04-15T19:52:15,637 basic name, not just via its full path or glob, was added to 2024-04-15T19:52:15,638 ``modules.copy``. 2024-04-15T19:52:15,639 * Modules code can now accept ``modules.copy`` and ``modules.autoload`` 2024-04-15T19:52:15,640 as dynamically-generated line data rather than just as static files 2024-04-15T19:52:15,640 that must exist on the filesystem. (Again, used by ``kpop``). 2024-04-15T19:52:15,642 * ``linuxrc`` has been improved/fixed to not have a hard-coded list of 2024-04-15T19:52:15,642 module groups to try to load, and instead use the ``modules.autoload`` 2024-04-15T19:52:15,643 groups to determine these. 2024-04-15T19:52:15,644 * ``ramdisk list kernels`` and ``ramdisk list plugins`` actions added. 2024-04-15T19:52:15,645 The former makes use of ``ramdisk --kernel `` easier because it 2024-04-15T19:52:15,645 prints the available kernel names which can be copy/pasted for the 2024-04-15T19:52:15,646 ``--kernel`` option. 2024-04-15T19:52:15,647 * Implemented our own argument parsing as ``argparse`` was not worth 2024-04-15T19:52:15,648 using. 2024-04-15T19:52:15,649 * Lots of code organized into their own ``.py`` files. 2024-04-15T19:52:15,651 * Make ``/etc/fstab`` sanity check a warning as this file may not be 2024-04-15T19:52:15,651 set up at all if doing a metro build. 2024-04-15T19:52:15,652 * Disable colors if we don't have an interactive shell. 2024-04-15T19:52:15,653 funtoo-ramdisk 1.0.7 2024-04-15T19:52:15,654 -------------------- 2024-04-15T19:52:15,655 Released on August 22, 2023. 2024-04-15T19:52:15,656 Changes: 2024-04-15T19:52:15,657 * Get rid of ``--modules_root``. Instead, added ``--fs_root`` which 2024-04-15T19:52:15,658 specifies where modules *and* the kernel sources will be. This 2024-04-15T19:52:15,658 allows the tool to work from an ebuild. 2024-04-15T19:52:15,659 * Improve output and add nice colors. Optimize information to be 2024-04-15T19:52:15,660 more useful to users. 2024-04-15T19:52:15,661 funtoo-ramdisk 1.0.6 2024-04-15T19:52:15,662 -------------------- 2024-04-15T19:52:15,663 Released on August 21, 2023. 2024-04-15T19:52:15,665 Two new options: 2024-04-15T19:52:15,666 * ``--modules_root`` to set the root filesystem to scan for modules. 2024-04-15T19:52:15,667 It defaults to ``/``. 2024-04-15T19:52:15,668 * ``--temp_root`` to set the default path to use for creating a 2024-04-15T19:52:15,668 temporary directory. It defaults to ``/var/tmp``. 2024-04-15T19:52:15,669 funtoo-ramdisk 1.0.5 2024-04-15T19:52:15,670 -------------------- 2024-04-15T19:52:15,671 Released on August 21, 2023. 2024-04-15T19:52:15,672 This is a features/maintenance/bug fix release. 2024-04-15T19:52:15,673 In addition to a bunch of minor fixes and clean-ups, which you can 2024-04-15T19:52:15,674 view in the git history, the following significant changes were 2024-04-15T19:52:15,675 made: 2024-04-15T19:52:15,676 * Use kmod ``/sbin/modprobe`` instead of busybox's modprobe. Busybox's modprobe 2024-04-15T19:52:15,676 may be fine, but for it to work, we must use busybox's ``depmod`` -- and we're 2024-04-15T19:52:15,677 not. We're using ``kmod``'s. So for now, let's just copy the right modprobe 2024-04-15T19:52:15,677 over. This fixes an issue where we get invalid symbols when loading modules 2024-04-15T19:52:15,678 using busybox ``modprobe``. ``modprobe`` is now resolving deps properly! :) 2024-04-15T19:52:15,679 At some point, we could make a "toggle" to select kmod/busybox mode. The 2024-04-15T19:52:15,680 best time to run ``depmod`` for busybox is probably once the ramdisk first 2024-04-15T19:52:15,680 boots, since it doesn't have a "root" option, making it hard to call from our 2024-04-15T19:52:15,681 ramdisk script. 2024-04-15T19:52:15,682 * Remove unused control character definitions in ``initrd.defaults``. 2024-04-15T19:52:15,684 * Mitigate an issue where ``ash`` shell could start before all USB keyboards 2024-04-15T19:52:15,684 have been detected, resulting in lack of input. We now wait 5 seconds 2024-04-15T19:52:15,685 before starting a rescue shell, to give the kernel time to enumerate 2024-04-15T19:52:15,685 devices on the USB2/3 bus. This isn't a full fix, but should resolve 2024-04-15T19:52:15,686 the problem of ``ash`` starting and not having any way to type, because 2024-04-15T19:52:15,686 it didn't connect to your main keyboard. 2024-04-15T19:52:15,687 Try to work around issues related to ATA/SCSI disk enumeration which could 2024-04-15T19:52:15,688 prevent the root filesystem from being mounted (see FL-11532). 2024-04-15T19:52:15,689 * Detect when a user has a ``/dev/sd*`` root block device and warn them that 2024-04-15T19:52:15,690 this is not a good idea, and can cause problems if you have multiple 2024-04-15T19:52:15,691 disks. Show them how to fix the problem by switching to UUID. 2024-04-15T19:52:15,692 * Remove scsi_debug module which is evil and if we force-load it, will create 2024-04-15T19:52:15,693 a new SCSI device 8MB in size and trigger the problem above for anyone 2024-04-15T19:52:15,693 with a SATA disk. 2024-04-15T19:52:15,694 * To implement above feature, added a feature to allow masking of modules in 2024-04-15T19:52:15,695 ``modules.copy`` via "-mod_shortname" in a specific section. Also added a 2024-04-15T19:52:15,695 lot of sanity checking and warnings. If you happen to mask a module in the 2024-04-15T19:52:15,696 wrong section, so it still gets included on the initramfs due to other 2024-04-15T19:52:15,696 section(s), we will warn you. 2024-04-15T19:52:15,698 funtoo-ramdisk 1.0.4 2024-04-15T19:52:15,698 -------------------- 2024-04-15T19:52:15,699 Released on August 18, 2023. 2024-04-15T19:52:15,700 This is a maintenance/bug fix release. 2024-04-15T19:52:15,701 * Fix ability to run from the git repo. This wasn't working. 2024-04-15T19:52:15,702 * Fix issue found by grouche, where if a module is built-in to the 2024-04-15T19:52:15,702 kernel but listed in ``modules.autoload``, ``ramdisk`` would throw 2024-04-15T19:52:15,702 an error because it would think it's not copied to the initramfs. 2024-04-15T19:52:15,703 We now read in the ``modules.builtin`` file and use this in the 2024-04-15T19:52:15,703 internal logic -- if a module is built-in to the kernel, we can 2024-04-15T19:52:15,704 not worry if it is our ``modules.autoload`` list. We still have it. 2024-04-15T19:52:15,704 We will also not worry about trying to load it at boot. 2024-04-15T19:52:15,705 * Add a debug output whenever a module is referenced that is actually 2024-04-15T19:52:15,705 a built-in. This helps to audit the behavior of the above 2024-04-15T19:52:15,706 functionality and could be useful to users of the tool as well. 2024-04-15T19:52:15,707 * Announce we are in debug mode with ``log.info()`` instead of a 2024-04-15T19:52:15,708 warning. Looks a bit nicer. 2024-04-15T19:52:16,179 running egg_info 2024-04-15T19:52:16,180 creating /tmp/pip-pip-egg-info-sy9c7oce/funtoo_ramdisk.egg-info 2024-04-15T19:52:16,205 writing /tmp/pip-pip-egg-info-sy9c7oce/funtoo_ramdisk.egg-info/PKG-INFO 2024-04-15T19:52:16,210 writing dependency_links to /tmp/pip-pip-egg-info-sy9c7oce/funtoo_ramdisk.egg-info/dependency_links.txt 2024-04-15T19:52:16,212 writing requirements to /tmp/pip-pip-egg-info-sy9c7oce/funtoo_ramdisk.egg-info/requires.txt 2024-04-15T19:52:16,213 writing top-level names to /tmp/pip-pip-egg-info-sy9c7oce/funtoo_ramdisk.egg-info/top_level.txt 2024-04-15T19:52:16,214 writing manifest file '/tmp/pip-pip-egg-info-sy9c7oce/funtoo_ramdisk.egg-info/SOURCES.txt' 2024-04-15T19:52:16,324 reading manifest file '/tmp/pip-pip-egg-info-sy9c7oce/funtoo_ramdisk.egg-info/SOURCES.txt' 2024-04-15T19:52:16,326 reading manifest template 'MANIFEST.in' 2024-04-15T19:52:16,334 warning: no files found matching 'COPYRIGHT.rst' 2024-04-15T19:52:16,336 writing manifest file '/tmp/pip-pip-egg-info-sy9c7oce/funtoo_ramdisk.egg-info/SOURCES.txt' 2024-04-15T19:52:16,445 Preparing metadata (setup.py): finished with status 'done' 2024-04-15T19:52:16,450 Source in /tmp/pip-wheel-ay0dsr5r/funtoo-ramdisk_c6fd5a9f6e7b4a719664ed27c4424c42 has version 1.1.7, which satisfies requirement funtoo-ramdisk==1.1.7 from https://files.pythonhosted.org/packages/10/2f/e2207365cd30d75ed1efbb19f7a991d6dab253a7eb0ad49e8c5a6cf6afd3/funtoo_ramdisk-1.1.7.tar.gz 2024-04-15T19:52:16,451 Removed funtoo-ramdisk==1.1.7 from https://files.pythonhosted.org/packages/10/2f/e2207365cd30d75ed1efbb19f7a991d6dab253a7eb0ad49e8c5a6cf6afd3/funtoo_ramdisk-1.1.7.tar.gz from build tracker '/tmp/pip-build-tracker-ej16m28f' 2024-04-15T19:52:16,458 Created temporary directory: /tmp/pip-unpack-2q67z3i2 2024-04-15T19:52:16,459 Created temporary directory: /tmp/pip-unpack-v74xdm85 2024-04-15T19:52:16,465 Building wheels for collected packages: funtoo-ramdisk 2024-04-15T19:52:16,469 Created temporary directory: /tmp/pip-wheel-u1fdor9p 2024-04-15T19:52:16,469 Building wheel for funtoo-ramdisk (setup.py): started 2024-04-15T19:52:16,471 Destination directory: /tmp/pip-wheel-u1fdor9p 2024-04-15T19:52:16,471 Running command python setup.py bdist_wheel 2024-04-15T19:52:17,142 ========= 2024-04-15T19:52:17,142 ramdisk 2024-04-15T19:52:17,143 ========= 2024-04-15T19:52:17,144 -------------------------------------------------- 2024-04-15T19:52:17,144 create a bootable initial ramdisk 2024-04-15T19:52:17,145 -------------------------------------------------- 2024-04-15T19:52:17,145 :Author: Daniel Robbins 2024-04-15T19:52:17,146 :Copyright: Copyright 2023 Daniel Robbins, Funtoo Solutions, Inc. 2024-04-15T19:52:17,146 Licensed under the Apache License, Version 2.0 (the "License"); 2024-04-15T19:52:17,147 you may not use this file except in compliance with the License. 2024-04-15T19:52:17,147 You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. 2024-04-15T19:52:17,148 :Version: 1.1.7 2024-04-15T19:52:17,148 :Manual section: 8 2024-04-15T19:52:17,149 :Manual group: Funtoo Linux 2024-04-15T19:52:17,150 SYNOPSIS 2024-04-15T19:52:17,150 ======== 2024-04-15T19:52:17,151 ``ramdisk`` [build] [*OPTION...*] ``initramfs_outfile`` 2024-04-15T19:52:17,152 ``ramdisk`` list kernels 2024-04-15T19:52:17,153 ``ramdisk`` list plugins 2024-04-15T19:52:17,154 DESCRIPTION 2024-04-15T19:52:17,155 =========== 2024-04-15T19:52:17,156 The Funtoo ramdisk tool, called ``ramdisk`` is a stand-alone tool to create an 2024-04-15T19:52:17,156 initial RAM disk filesystem (initramfs) for booting your Linux system. 2024-04-15T19:52:17,157 The internal initramfs logic is based on the logic found in Gentoo Linux's 2024-04-15T19:52:17,158 genkernel tool, but has been rewritten to be simpler and more efficient. 2024-04-15T19:52:17,159 You can use this tool to create an initramfs to boot to a Funtoo Linux root 2024-04-15T19:52:17,160 ext4 or XFS filesystem, which is what we support in our official installation 2024-04-15T19:52:17,160 documentation at https://www.funtoo.org/Install. 2024-04-15T19:52:17,161 CAPABILITIES 2024-04-15T19:52:17,162 ============ 2024-04-15T19:52:17,163 * genkernel-style initramfs without the cruft. In comparison to genkernel's 2024-04-15T19:52:17,164 initramfs, the shell code is about 10x simpler and a lot cleaner and has 2024-04-15T19:52:17,165 been modernized. About 100 lines of shell script, with another 215 lines 2024-04-15T19:52:17,165 of functions in a support file. 2024-04-15T19:52:17,166 * Copies over the modules you specify -- and automatically figures out any 2024-04-15T19:52:17,167 kernel module dependencies, so any depended-upon modules are also copied. 2024-04-15T19:52:17,167 This eliminates the need to track these dependencies manually. 2024-04-15T19:52:17,169 * Rootless operation. You do not need enhanced privileges to create the 2024-04-15T19:52:17,169 initramfs. 2024-04-15T19:52:17,170 * You can read the ``linuxrc`` script and actually understand what it does. 2024-04-15T19:52:17,171 It is written to be easy to understand and adapt. So it's not just short, 2024-04-15T19:52:17,172 but easy to grasp. 2024-04-15T19:52:17,173 * Enhanced module loading engine on the initramfs which is significantly 2024-04-15T19:52:17,173 faster than genkernel. This effectively eliminates the "watching the 2024-04-15T19:52:17,174 stream of useless modules being loaded" issue with genkernel. Modern 2024-04-15T19:52:17,174 systems with NVMe drives will load just a handful of modules to boot 2024-04-15T19:52:17,175 -- all without requiring any special action from the user. 2024-04-15T19:52:17,176 * "kpop" functionality allows for building ramdisks with just the modules 2024-04-15T19:52:17,177 you need. For example, ``ramdisk --kpop=nvme,ext4`` will create a 2024-04-15T19:52:17,177 ramdisk that can boot on NVMe ext4 root filesystems, and only include 2024-04-15T19:52:17,178 these necessary modules, leaving all other modules to be loaded by 2024-04-15T19:52:17,179 your Funtoo Linux system. 2024-04-15T19:52:17,180 * Effective Python-based command to actually build the ramdisk, which is 2024-04-15T19:52:17,181 called: ``ramdisk``. This gives us an extensible platform for the future. 2024-04-15T19:52:17,182 * Enhanced ini-style system for selecting modules to include on your initramfs. 2024-04-15T19:52:17,183 * Enhanced ini-style system for selecting module groups to autoload on the 2024-04-15T19:52:17,183 initramfs. 2024-04-15T19:52:17,184 * Support for xz and zstd compression. 2024-04-15T19:52:17,185 ACTIONS 2024-04-15T19:52:17,185 ======= 2024-04-15T19:52:17,186 The default action is ``build``, and can be optionally specified, which will 2024-04-15T19:52:17,187 instruct ``ramdisk`` to build an initramfs. Available actions: 2024-04-15T19:52:17,188 build 2024-04-15T19:52:17,188 ----- 2024-04-15T19:52:17,189 Create an initramfs. See **OPTIONS** below for all options supported. The ``build`` 2024-04-15T19:52:17,189 action requires a destination initramfs path. This will be the literal path and 2024-04-15T19:52:17,189 filename for the output initramfs. Use ``--force`` to overwrite any existing file. 2024-04-15T19:52:17,190 list 2024-04-15T19:52:17,191 ---- 2024-04-15T19:52:17,191 List various things -- currently supported targets are ``kernels`` and ``plugins``. 2024-04-15T19:52:17,192 ``kernels`` will show you a list of available installed kernels on your system for 2024-04-15T19:52:17,192 which you can build a ramdisk, and ``plugins`` will show the available boot-time 2024-04-15T19:52:17,193 plugins that can be enabled to add more functionality to your ramdisk. 2024-04-15T19:52:17,194 OPTIONS 2024-04-15T19:52:17,195 ======= 2024-04-15T19:52:17,196 --debug Enable debug output. 2024-04-15T19:52:17,196 --backtrace Display full python backtrace/traceback instead of just a 2024-04-15T19:52:17,197 short error summary. 2024-04-15T19:52:17,197 --force Overwrite target initramfs if it exists. 2024-04-15T19:52:17,198 --version Show this program's version number and exit. 2024-04-15T19:52:17,198 --help Show this help message and exit. 2024-04-15T19:52:17,199 --fs_foot= This defaults to ``/``, and specifies the filesystem root to look at 2024-04-15T19:52:17,199 for finding both kernel sources (in ``/usr/src``) and kernel modules 2024-04-15T19:52:17,200 (in ``/lib/modules``). This option also applies to ``ramdisk list 2024-04-15T19:52:17,201 kernels``. 2024-04-15T19:52:17,201 --kernel= Specify what kernel to build a ramdisk for. Use 2024-04-15T19:52:17,202 ``ramdisk list kernels`` to display available options. The 2024-04-15T19:52:17,202 default setting is to use the current value of the 2024-04-15T19:52:17,203 ``/usr/src/linux`` symlink at the filesystem root to determine 2024-04-15T19:52:17,204 which kernel to build a ramdisk for. 2024-04-15T19:52:17,204 --compression= Compression method to use. Default is ``xz``. Also supported: ``zstd``. 2024-04-15T19:52:17,205 --temp_root= Where to create temporary files. Defaults to ``/var/tmp``. 2024-04-15T19:52:17,205 --plugins= A comma-delimited list of plugins to enable. The ``core`` plugin is 2024-04-15T19:52:17,206 always enabled. Type ``ramdisk list plugins`` to see a list of available 2024-04-15T19:52:17,206 plugins. 2024-04-15T19:52:17,207 --kmod_config= ``ramdisk`` supports different sets of kernel module configurations, which 2024-04-15T19:52:17,207 define what kernel modules get copied to the initramfs, and which ones 2024-04-15T19:52:17,208 get auto-loaded by the initramfs at boot. Default value: ``full``. This 2024-04-15T19:52:17,208 is currently the only option unless overridden by ``--kpop`` (see below.) 2024-04-15T19:52:17,209 --kpop= A comma-delimited list of kernel module names that you are sure, if loaded, 2024-04-15T19:52:17,210 will allow your root block device and filesystem to be mounted. For example, 2024-04-15T19:52:17,210 ``--kpop=nvme,ext4`` will include just the modules required for booting 2024-04-15T19:52:17,211 NVMe disks and mounting your root ext4 filesystem. When this option is used, 2024-04-15T19:52:17,211 a special minimal kernel module config is used instead of what is specified 2024-04-15T19:52:17,212 via ``--kmod_config`` (see above). 2024-04-15T19:52:17,213 USAGE 2024-04-15T19:52:17,213 ===== 2024-04-15T19:52:17,214 In its simplest form, the command can be used as follows, as a regular user:: 2024-04-15T19:52:17,215 $ ramdisk /var/tmp/my-new-initramfs 2024-04-15T19:52:17,215 $ sudo cp /var/tmp/my-new-initramfs /boot 2024-04-15T19:52:17,216 By default, ``ramdisk`` will use your ``/usr/src/linux`` symlink to determine which 2024-04-15T19:52:17,216 kernel to use to build a ramdisk for. It will parse ``/usr/src/linux/Makefile``, 2024-04-15T19:52:17,217 extract kernel version information, and then find the appropriate directory in 2024-04-15T19:52:17,217 ``/lib/modules/`` for copying modules. You can type: 2024-04-15T19:52:17,218 ``ramdisk list kernels`` and ``ramdisk --kernel `` to build a ramdisk 2024-04-15T19:52:17,218 for a non-default kernel. 2024-04-15T19:52:17,219 Since this is brand-new software, it is highly recommended that you **DO NOT OVERWRITE 2024-04-15T19:52:17,220 YOUR EXISTING, WORKING INITRAMFS THAT YOU CURRENTLY USE TO BOOT YOUR SYSTEM.** 2024-04-15T19:52:17,221 Instead -- create a **NEW BOOT ENTRY** to test your initramfs. In GRUB, you can also 2024-04-15T19:52:17,222 press 'e' to edit an entry and type in the name of the new initramfs to give it a try. 2024-04-15T19:52:17,225 ChangeLog 2024-04-15T19:52:17,225 ========= 2024-04-15T19:52:17,227 funtoo-ramdisk 1.1.7 2024-04-15T19:52:17,227 -------------------- 2024-04-15T19:52:17,228 Released on April 15, 2024. 2024-04-15T19:52:17,230 This is a minor bug release. 2024-04-15T19:52:17,231 * Fix a possible issue where ``__pycache__`` directories can mess 2024-04-15T19:52:17,231 up copying of files to the initramfs. 2024-04-15T19:52:17,232 funtoo-ramdisk 1.1.6 2024-04-15T19:52:17,233 -------------------- 2024-04-15T19:52:17,234 Released on April 14, 2024. 2024-04-15T19:52:17,235 This is a maintenance and minor features release. 2024-04-15T19:52:17,237 * Various minor bug fixes. 2024-04-15T19:52:17,238 * Change ``--enable`` to ``--plugins`` since it's more 2024-04-15T19:52:17,238 self-explanatory. 2024-04-15T19:52:17,239 * Continue to flesh out the plugin system. I added support for 2024-04-15T19:52:17,240 plugins to have an activation script which will get executed 2024-04-15T19:52:17,241 on startup. This is a work in progress and I still need to 2024-04-15T19:52:17,241 add support for listing needed modules for a plugin which 2024-04-15T19:52:17,242 will get loaded automatically. 2024-04-15T19:52:17,243 * Fix a bug in argument parsing where the code was not scanning 2024-04-15T19:52:17,243 for invalid options which could result in odd parsing behavior. 2024-04-15T19:52:17,245 * Start adding support for udev. This is not yet completed but 2024-04-15T19:52:17,245 the plugin system for this has been incorporated into the 2024-04-15T19:52:17,246 linuxrc. 2024-04-15T19:52:17,247 funtoo-ramdisk 1.1.5 2024-04-15T19:52:17,248 -------------------- 2024-04-15T19:52:17,249 Released on September 15, 2023. 2024-04-15T19:52:17,250 This is a packaging fix for the manpage. 2024-04-15T19:52:17,253 funtoo-ramdisk 1.1.4 2024-04-15T19:52:17,253 -------------------- 2024-04-15T19:52:17,255 Released on September 15, 2023. 2024-04-15T19:52:17,256 This release adds a "ramdisk" man page. 2024-04-15T19:52:17,257 funtoo-ramdisk 1.1.3 2024-04-15T19:52:17,258 -------------------- 2024-04-15T19:52:17,259 Released on September 14, 2023. 2024-04-15T19:52:17,259 * FL-11606: ``/sbin/blkid`` can't be run as non-root, and will 2024-04-15T19:52:17,260 trigger a sandbox violation inside an ebuild. So don't do it -- 2024-04-15T19:52:17,260 we were just running it to convieniently spit out the UUID for 2024-04-15T19:52:17,261 the user to put in their ``/etc/fstab``. Now we instruct the 2024-04-15T19:52:17,261 user to run ``blkid`` as root and avoid the sandbox violation. 2024-04-15T19:52:17,262 funtoo-ramdisk 1.1.2 2024-04-15T19:52:17,263 -------------------- 2024-04-15T19:52:17,263 Released on September 4, 2023. 2024-04-15T19:52:17,264 * Fix exit code (zero on success.) 2024-04-15T19:52:17,266 funtoo-ramdisk 1.1.1 2024-04-15T19:52:17,266 -------------------- 2024-04-15T19:52:17,267 Released on September 4, 2023. 2024-04-15T19:52:17,269 Fix three bugs: 2024-04-15T19:52:17,270 * Allow plugins to be loaded when installed in ``site-packages``. 2024-04-15T19:52:17,271 * Don't assume ``/usr/src/linux`` symlink exists in two places and 2024-04-15T19:52:17,271 handle this situation gracefully. This situation may exist during 2024-04-15T19:52:17,272 metro builds on incomplete systems. (2 bugs fixed). 2024-04-15T19:52:17,273 funtoo-ramdisk 1.1.0 2024-04-15T19:52:17,274 -------------------- 2024-04-15T19:52:17,274 Released on September 3, 2023. 2024-04-15T19:52:17,275 * Add plugin system for ramdisk: 2024-04-15T19:52:17,276 To use, pass ``--enable=,``. The ``core`` plugin is 2024-04-15T19:52:17,277 always enabled and copies ``/sbin/blkid``. There are currently ``btrfs`` 2024-04-15T19:52:17,278 and ``lvm`` plugins as well -- these are not yet fully-implemented and 2024-04-15T19:52:17,278 just ensure necessary binaries are copied over (no extra setup commands 2024-04-15T19:52:17,279 are run by the initramfs.) 2024-04-15T19:52:17,280 This is a starting point for enabling support for advanced 2024-04-15T19:52:17,281 features on the initramfs. 2024-04-15T19:52:17,282 * New "module configurations". The default module configuration is "full", 2024-04-15T19:52:17,282 which means "make a ramdisk with lots of modules to support a lot of 2024-04-15T19:52:17,283 hardware." Different module configurations can be added in the future. 2024-04-15T19:52:17,283 Module configurations can be specified via ``--kmod_config=``. 2024-04-15T19:52:17,284 * ``--kpop=`` feature to make minimal module ramdisks by specifying a 2024-04-15T19:52:17,285 dynamic module configuration via the command-line, rather than via 2024-04-15T19:52:17,286 static config files. 2024-04-15T19:52:17,287 If you specify ``--kpop=nvme,ext4`` then a ramdisk with just those 2024-04-15T19:52:17,287 modules (and their dependencies) will be included. This can dramatically 2024-04-15T19:52:17,288 reduce the size of your ramdisk. Note that this doesn't include the 2024-04-15T19:52:17,289 necessary modules to allow USB keyboards to work in the rescue shell, 2024-04-15T19:52:17,289 so it's only for known-good configurations. Enabling this feature also 2024-04-15T19:52:17,290 disables any static module configuration (see above.) 2024-04-15T19:52:17,292 * Change the binary plugin API so lists of binaries can be dynamically 2024-04-15T19:52:17,293 created and programmatic decisions can be made. Previously, we used a 2024-04-15T19:52:17,294 static list. This allows us to use ``lvm.static`` if available, but 2024-04-15T19:52:17,295 fall back to dynamic ``lvm``, for example. 2024-04-15T19:52:17,296 * To support ``kpop`` functionality, the ability to add a module by its 2024-04-15T19:52:17,297 basic name, not just via its full path or glob, was added to 2024-04-15T19:52:17,298 ``modules.copy``. 2024-04-15T19:52:17,299 * Modules code can now accept ``modules.copy`` and ``modules.autoload`` 2024-04-15T19:52:17,300 as dynamically-generated line data rather than just as static files 2024-04-15T19:52:17,301 that must exist on the filesystem. (Again, used by ``kpop``). 2024-04-15T19:52:17,303 * ``linuxrc`` has been improved/fixed to not have a hard-coded list of 2024-04-15T19:52:17,303 module groups to try to load, and instead use the ``modules.autoload`` 2024-04-15T19:52:17,304 groups to determine these. 2024-04-15T19:52:17,305 * ``ramdisk list kernels`` and ``ramdisk list plugins`` actions added. 2024-04-15T19:52:17,306 The former makes use of ``ramdisk --kernel `` easier because it 2024-04-15T19:52:17,306 prints the available kernel names which can be copy/pasted for the 2024-04-15T19:52:17,307 ``--kernel`` option. 2024-04-15T19:52:17,308 * Implemented our own argument parsing as ``argparse`` was not worth 2024-04-15T19:52:17,309 using. 2024-04-15T19:52:17,310 * Lots of code organized into their own ``.py`` files. 2024-04-15T19:52:17,311 * Make ``/etc/fstab`` sanity check a warning as this file may not be 2024-04-15T19:52:17,312 set up at all if doing a metro build. 2024-04-15T19:52:17,313 * Disable colors if we don't have an interactive shell. 2024-04-15T19:52:17,314 funtoo-ramdisk 1.0.7 2024-04-15T19:52:17,315 -------------------- 2024-04-15T19:52:17,316 Released on August 22, 2023. 2024-04-15T19:52:17,317 Changes: 2024-04-15T19:52:17,318 * Get rid of ``--modules_root``. Instead, added ``--fs_root`` which 2024-04-15T19:52:17,319 specifies where modules *and* the kernel sources will be. This 2024-04-15T19:52:17,319 allows the tool to work from an ebuild. 2024-04-15T19:52:17,320 * Improve output and add nice colors. Optimize information to be 2024-04-15T19:52:17,320 more useful to users. 2024-04-15T19:52:17,322 funtoo-ramdisk 1.0.6 2024-04-15T19:52:17,323 -------------------- 2024-04-15T19:52:17,325 Released on August 21, 2023. 2024-04-15T19:52:17,326 Two new options: 2024-04-15T19:52:17,327 * ``--modules_root`` to set the root filesystem to scan for modules. 2024-04-15T19:52:17,328 It defaults to ``/``. 2024-04-15T19:52:17,329 * ``--temp_root`` to set the default path to use for creating a 2024-04-15T19:52:17,330 temporary directory. It defaults to ``/var/tmp``. 2024-04-15T19:52:17,331 funtoo-ramdisk 1.0.5 2024-04-15T19:52:17,332 -------------------- 2024-04-15T19:52:17,333 Released on August 21, 2023. 2024-04-15T19:52:17,334 This is a features/maintenance/bug fix release. 2024-04-15T19:52:17,335 In addition to a bunch of minor fixes and clean-ups, which you can 2024-04-15T19:52:17,336 view in the git history, the following significant changes were 2024-04-15T19:52:17,336 made: 2024-04-15T19:52:17,338 * Use kmod ``/sbin/modprobe`` instead of busybox's modprobe. Busybox's modprobe 2024-04-15T19:52:17,338 may be fine, but for it to work, we must use busybox's ``depmod`` -- and we're 2024-04-15T19:52:17,339 not. We're using ``kmod``'s. So for now, let's just copy the right modprobe 2024-04-15T19:52:17,339 over. This fixes an issue where we get invalid symbols when loading modules 2024-04-15T19:52:17,340 using busybox ``modprobe``. ``modprobe`` is now resolving deps properly! :) 2024-04-15T19:52:17,341 At some point, we could make a "toggle" to select kmod/busybox mode. The 2024-04-15T19:52:17,341 best time to run ``depmod`` for busybox is probably once the ramdisk first 2024-04-15T19:52:17,342 boots, since it doesn't have a "root" option, making it hard to call from our 2024-04-15T19:52:17,343 ramdisk script. 2024-04-15T19:52:17,344 * Remove unused control character definitions in ``initrd.defaults``. 2024-04-15T19:52:17,345 * Mitigate an issue where ``ash`` shell could start before all USB keyboards 2024-04-15T19:52:17,346 have been detected, resulting in lack of input. We now wait 5 seconds 2024-04-15T19:52:17,347 before starting a rescue shell, to give the kernel time to enumerate 2024-04-15T19:52:17,347 devices on the USB2/3 bus. This isn't a full fix, but should resolve 2024-04-15T19:52:17,348 the problem of ``ash`` starting and not having any way to type, because 2024-04-15T19:52:17,349 it didn't connect to your main keyboard. 2024-04-15T19:52:17,350 Try to work around issues related to ATA/SCSI disk enumeration which could 2024-04-15T19:52:17,350 prevent the root filesystem from being mounted (see FL-11532). 2024-04-15T19:52:17,351 * Detect when a user has a ``/dev/sd*`` root block device and warn them that 2024-04-15T19:52:17,351 this is not a good idea, and can cause problems if you have multiple 2024-04-15T19:52:17,352 disks. Show them how to fix the problem by switching to UUID. 2024-04-15T19:52:17,353 * Remove scsi_debug module which is evil and if we force-load it, will create 2024-04-15T19:52:17,353 a new SCSI device 8MB in size and trigger the problem above for anyone 2024-04-15T19:52:17,354 with a SATA disk. 2024-04-15T19:52:17,354 * To implement above feature, added a feature to allow masking of modules in 2024-04-15T19:52:17,355 ``modules.copy`` via "-mod_shortname" in a specific section. Also added a 2024-04-15T19:52:17,355 lot of sanity checking and warnings. If you happen to mask a module in the 2024-04-15T19:52:17,356 wrong section, so it still gets included on the initramfs due to other 2024-04-15T19:52:17,356 section(s), we will warn you. 2024-04-15T19:52:17,358 funtoo-ramdisk 1.0.4 2024-04-15T19:52:17,358 -------------------- 2024-04-15T19:52:17,359 Released on August 18, 2023. 2024-04-15T19:52:17,360 This is a maintenance/bug fix release. 2024-04-15T19:52:17,361 * Fix ability to run from the git repo. This wasn't working. 2024-04-15T19:52:17,362 * Fix issue found by grouche, where if a module is built-in to the 2024-04-15T19:52:17,362 kernel but listed in ``modules.autoload``, ``ramdisk`` would throw 2024-04-15T19:52:17,363 an error because it would think it's not copied to the initramfs. 2024-04-15T19:52:17,363 We now read in the ``modules.builtin`` file and use this in the 2024-04-15T19:52:17,364 internal logic -- if a module is built-in to the kernel, we can 2024-04-15T19:52:17,364 not worry if it is our ``modules.autoload`` list. We still have it. 2024-04-15T19:52:17,365 We will also not worry about trying to load it at boot. 2024-04-15T19:52:17,366 * Add a debug output whenever a module is referenced that is actually 2024-04-15T19:52:17,367 a built-in. This helps to audit the behavior of the above 2024-04-15T19:52:17,367 functionality and could be useful to users of the tool as well. 2024-04-15T19:52:17,368 * Announce we are in debug mode with ``log.info()`` instead of a 2024-04-15T19:52:17,369 warning. Looks a bit nicer. 2024-04-15T19:52:17,817 running bdist_wheel 2024-04-15T19:52:17,916 running build 2024-04-15T19:52:17,916 running build_py 2024-04-15T19:52:17,944 creating build 2024-04-15T19:52:17,944 creating build/lib 2024-04-15T19:52:17,945 creating build/lib/funtoo_ramdisk 2024-04-15T19:52:17,946 copying funtoo_ramdisk/log.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,949 copying funtoo_ramdisk/__init__.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,950 copying funtoo_ramdisk/config_files.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,952 copying funtoo_ramdisk/plugin_base.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,954 copying funtoo_ramdisk/modules.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,957 copying funtoo_ramdisk/const.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,959 copying funtoo_ramdisk/utilities.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,961 copying funtoo_ramdisk/args.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,963 copying funtoo_ramdisk/version.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:17,965 copying funtoo_ramdisk/initramfs.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:18,002 copying funtoo_ramdisk/kernel.py -> build/lib/funtoo_ramdisk 2024-04-15T19:52:18,004 creating build/lib/funtoo_ramdisk/plugins 2024-04-15T19:52:18,005 copying funtoo_ramdisk/plugins/core.py -> build/lib/funtoo_ramdisk/plugins 2024-04-15T19:52:18,007 copying funtoo_ramdisk/plugins/__init__.py -> build/lib/funtoo_ramdisk/plugins 2024-04-15T19:52:18,008 copying funtoo_ramdisk/plugins/btrfs.py -> build/lib/funtoo_ramdisk/plugins 2024-04-15T19:52:18,010 copying funtoo_ramdisk/plugins/lvm.py -> build/lib/funtoo_ramdisk/plugins 2024-04-15T19:52:18,012 creating build/lib/funtoo_ramdisk/support 2024-04-15T19:52:18,013 copying funtoo_ramdisk/support/__init__.py -> build/lib/funtoo_ramdisk/support 2024-04-15T19:52:18,014 creating build/lib/funtoo_ramdisk/support/module_configs 2024-04-15T19:52:18,015 copying funtoo_ramdisk/support/module_configs/__init__.py -> build/lib/funtoo_ramdisk/support/module_configs 2024-04-15T19:52:18,017 creating build/lib/funtoo_ramdisk/support/module_configs/full 2024-04-15T19:52:18,018 copying funtoo_ramdisk/support/module_configs/full/__init__.py -> build/lib/funtoo_ramdisk/support/module_configs/full 2024-04-15T19:52:18,019 running egg_info 2024-04-15T19:52:18,074 writing funtoo_ramdisk.egg-info/PKG-INFO 2024-04-15T19:52:18,078 writing dependency_links to funtoo_ramdisk.egg-info/dependency_links.txt 2024-04-15T19:52:18,080 writing requirements to funtoo_ramdisk.egg-info/requires.txt 2024-04-15T19:52:18,081 writing top-level names to funtoo_ramdisk.egg-info/top_level.txt 2024-04-15T19:52:18,111 reading manifest file 'funtoo_ramdisk.egg-info/SOURCES.txt' 2024-04-15T19:52:18,114 reading manifest template 'MANIFEST.in' 2024-04-15T19:52:18,123 warning: no files found matching 'COPYRIGHT.rst' 2024-04-15T19:52:18,126 writing manifest file 'funtoo_ramdisk.egg-info/SOURCES.txt' 2024-04-15T19:52:18,129 /usr/local/lib/python3.11/dist-packages/setuptools/command/build_py.py:207: _Warning: Package 'funtoo_ramdisk.support.etc' is absent from the `packages` configuration. 2024-04-15T19:52:18,129 !! 2024-04-15T19:52:18,131 ******************************************************************************** 2024-04-15T19:52:18,131 ############################ 2024-04-15T19:52:18,132 # Package would be ignored # 2024-04-15T19:52:18,132 ############################ 2024-04-15T19:52:18,133 Python recognizes 'funtoo_ramdisk.support.etc' as an importable package[^1], 2024-04-15T19:52:18,133 but it is absent from setuptools' `packages` configuration. 2024-04-15T19:52:18,134 This leads to an ambiguous overall configuration. If you want to distribute this 2024-04-15T19:52:18,135 package, please make sure that 'funtoo_ramdisk.support.etc' is explicitly added 2024-04-15T19:52:18,135 to the `packages` configuration field. 2024-04-15T19:52:18,137 Alternatively, you can also rely on setuptools' discovery methods 2024-04-15T19:52:18,137 (for example by using `find_namespace_packages(...)`/`find_namespace:` 2024-04-15T19:52:18,138 instead of `find_packages(...)`/`find:`). 2024-04-15T19:52:18,139 You can read more about "package discovery" on setuptools documentation page: 2024-04-15T19:52:18,141 - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html 2024-04-15T19:52:18,142 If you don't want 'funtoo_ramdisk.support.etc' to be distributed and are 2024-04-15T19:52:18,142 already explicitly excluding 'funtoo_ramdisk.support.etc' via 2024-04-15T19:52:18,143 `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, 2024-04-15T19:52:18,143 you can try to use `exclude_package_data`, or `include-package-data=False` in 2024-04-15T19:52:18,144 combination with a more fine grained `package-data` configuration. 2024-04-15T19:52:18,145 You can read more about "package data files" on setuptools documentation page: 2024-04-15T19:52:18,146 - https://setuptools.pypa.io/en/latest/userguide/datafiles.html 2024-04-15T19:52:18,148 [^1]: For Python, any directory (with suitable naming) can be imported, 2024-04-15T19:52:18,149 even if it does not contain any `.py` files. 2024-04-15T19:52:18,150 On the other hand, currently there is no concept of package data 2024-04-15T19:52:18,150 directory, all directories are treated like packages. 2024-04-15T19:52:18,150 ******************************************************************************** 2024-04-15T19:52:18,151 !! 2024-04-15T19:52:18,152 check.warn(importable) 2024-04-15T19:52:18,152 /usr/local/lib/python3.11/dist-packages/setuptools/command/build_py.py:207: _Warning: Package 'funtoo_ramdisk.support.etc.plugins' is absent from the `packages` configuration. 2024-04-15T19:52:18,152 !! 2024-04-15T19:52:18,153 ******************************************************************************** 2024-04-15T19:52:18,154 ############################ 2024-04-15T19:52:18,154 # Package would be ignored # 2024-04-15T19:52:18,154 ############################ 2024-04-15T19:52:18,155 Python recognizes 'funtoo_ramdisk.support.etc.plugins' as an importable package[^1], 2024-04-15T19:52:18,155 but it is absent from setuptools' `packages` configuration. 2024-04-15T19:52:18,156 This leads to an ambiguous overall configuration. If you want to distribute this 2024-04-15T19:52:18,157 package, please make sure that 'funtoo_ramdisk.support.etc.plugins' is explicitly added 2024-04-15T19:52:18,157 to the `packages` configuration field. 2024-04-15T19:52:18,159 Alternatively, you can also rely on setuptools' discovery methods 2024-04-15T19:52:18,159 (for example by using `find_namespace_packages(...)`/`find_namespace:` 2024-04-15T19:52:18,160 instead of `find_packages(...)`/`find:`). 2024-04-15T19:52:18,161 You can read more about "package discovery" on setuptools documentation page: 2024-04-15T19:52:18,162 - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html 2024-04-15T19:52:18,163 If you don't want 'funtoo_ramdisk.support.etc.plugins' to be distributed and are 2024-04-15T19:52:18,163 already explicitly excluding 'funtoo_ramdisk.support.etc.plugins' via 2024-04-15T19:52:18,164 `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, 2024-04-15T19:52:18,164 you can try to use `exclude_package_data`, or `include-package-data=False` in 2024-04-15T19:52:18,165 combination with a more fine grained `package-data` configuration. 2024-04-15T19:52:18,166 You can read more about "package data files" on setuptools documentation page: 2024-04-15T19:52:18,168 - https://setuptools.pypa.io/en/latest/userguide/datafiles.html 2024-04-15T19:52:18,169 [^1]: For Python, any directory (with suitable naming) can be imported, 2024-04-15T19:52:18,170 even if it does not contain any `.py` files. 2024-04-15T19:52:18,170 On the other hand, currently there is no concept of package data 2024-04-15T19:52:18,171 directory, all directories are treated like packages. 2024-04-15T19:52:18,171 ******************************************************************************** 2024-04-15T19:52:18,172 !! 2024-04-15T19:52:18,173 check.warn(importable) 2024-04-15T19:52:18,173 /usr/local/lib/python3.11/dist-packages/setuptools/command/build_py.py:207: _Warning: Package 'funtoo_ramdisk.support.etc.plugins.scan_mode' is absent from the `packages` configuration. 2024-04-15T19:52:18,174 !! 2024-04-15T19:52:18,175 ******************************************************************************** 2024-04-15T19:52:18,176 ############################ 2024-04-15T19:52:18,176 # Package would be ignored # 2024-04-15T19:52:18,177 ############################ 2024-04-15T19:52:18,177 Python recognizes 'funtoo_ramdisk.support.etc.plugins.scan_mode' as an importable package[^1], 2024-04-15T19:52:18,178 but it is absent from setuptools' `packages` configuration. 2024-04-15T19:52:18,179 This leads to an ambiguous overall configuration. If you want to distribute this 2024-04-15T19:52:18,180 package, please make sure that 'funtoo_ramdisk.support.etc.plugins.scan_mode' is explicitly added 2024-04-15T19:52:18,180 to the `packages` configuration field. 2024-04-15T19:52:18,181 Alternatively, you can also rely on setuptools' discovery methods 2024-04-15T19:52:18,182 (for example by using `find_namespace_packages(...)`/`find_namespace:` 2024-04-15T19:52:18,182 instead of `find_packages(...)`/`find:`). 2024-04-15T19:52:18,183 You can read more about "package discovery" on setuptools documentation page: 2024-04-15T19:52:18,184 - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html 2024-04-15T19:52:18,185 If you don't want 'funtoo_ramdisk.support.etc.plugins.scan_mode' to be distributed and are 2024-04-15T19:52:18,185 already explicitly excluding 'funtoo_ramdisk.support.etc.plugins.scan_mode' via 2024-04-15T19:52:18,186 `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, 2024-04-15T19:52:18,186 you can try to use `exclude_package_data`, or `include-package-data=False` in 2024-04-15T19:52:18,187 combination with a more fine grained `package-data` configuration. 2024-04-15T19:52:18,187 You can read more about "package data files" on setuptools documentation page: 2024-04-15T19:52:18,188 - https://setuptools.pypa.io/en/latest/userguide/datafiles.html 2024-04-15T19:52:18,190 [^1]: For Python, any directory (with suitable naming) can be imported, 2024-04-15T19:52:18,191 even if it does not contain any `.py` files. 2024-04-15T19:52:18,191 On the other hand, currently there is no concept of package data 2024-04-15T19:52:18,192 directory, all directories are treated like packages. 2024-04-15T19:52:18,192 ******************************************************************************** 2024-04-15T19:52:18,193 !! 2024-04-15T19:52:18,194 check.warn(importable) 2024-04-15T19:52:18,194 copying funtoo_ramdisk/support/initramfs.cpio -> build/lib/funtoo_ramdisk/support 2024-04-15T19:52:18,195 copying funtoo_ramdisk/support/linuxrc -> build/lib/funtoo_ramdisk/support 2024-04-15T19:52:18,195 creating build/lib/funtoo_ramdisk/support/etc 2024-04-15T19:52:18,195 copying funtoo_ramdisk/support/etc/initrd.defaults -> build/lib/funtoo_ramdisk/support/etc 2024-04-15T19:52:18,196 copying funtoo_ramdisk/support/etc/initrd.scripts -> build/lib/funtoo_ramdisk/support/etc 2024-04-15T19:52:18,196 creating build/lib/funtoo_ramdisk/support/etc/plugins 2024-04-15T19:52:18,197 copying funtoo_ramdisk/support/etc/plugins/__init__.py -> build/lib/funtoo_ramdisk/support/etc/plugins 2024-04-15T19:52:18,198 creating build/lib/funtoo_ramdisk/support/etc/plugins/scan_mode 2024-04-15T19:52:18,198 copying funtoo_ramdisk/support/etc/plugins/scan_mode/__init__.py -> build/lib/funtoo_ramdisk/support/etc/plugins/scan_mode 2024-04-15T19:52:18,199 copying funtoo_ramdisk/support/etc/plugins/scan_mode/legacy.sh -> build/lib/funtoo_ramdisk/support/etc/plugins/scan_mode 2024-04-15T19:52:18,199 copying funtoo_ramdisk/support/etc/plugins/scan_mode/udev.sh -> build/lib/funtoo_ramdisk/support/etc/plugins/scan_mode 2024-04-15T19:52:18,200 copying funtoo_ramdisk/support/module_configs/full/modules.autoload -> build/lib/funtoo_ramdisk/support/module_configs/full 2024-04-15T19:52:18,200 copying funtoo_ramdisk/support/module_configs/full/modules.copy -> build/lib/funtoo_ramdisk/support/module_configs/full 2024-04-15T19:52:18,201 running build_scripts 2024-04-15T19:52:18,202 creating build/scripts-3.11 2024-04-15T19:52:18,202 copying and adjusting bin/ramdisk -> build/scripts-3.11 2024-04-15T19:52:18,203 changing mode of build/scripts-3.11/ramdisk from 644 to 755 2024-04-15T19:52:18,203 /usr/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 2024-04-15T19:52:18,204 !! 2024-04-15T19:52:18,205 ******************************************************************************** 2024-04-15T19:52:18,205 Please avoid running ``setup.py`` directly. 2024-04-15T19:52:18,206 Instead, use pypa/build, pypa/installer or other 2024-04-15T19:52:18,206 standards-based tools. 2024-04-15T19:52:18,207 See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 2024-04-15T19:52:18,207 ******************************************************************************** 2024-04-15T19:52:18,208 !! 2024-04-15T19:52:18,209 self.initialize_options() 2024-04-15T19:52:18,227 installing to build/bdist.linux-armv7l/wheel 2024-04-15T19:52:18,228 running install 2024-04-15T19:52:18,251 running install_lib 2024-04-15T19:52:18,275 creating build/bdist.linux-armv7l 2024-04-15T19:52:18,275 creating build/bdist.linux-armv7l/wheel 2024-04-15T19:52:18,277 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,278 copying build/lib/funtoo_ramdisk/log.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,280 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk/plugins 2024-04-15T19:52:18,281 copying build/lib/funtoo_ramdisk/plugins/core.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/plugins 2024-04-15T19:52:18,283 copying build/lib/funtoo_ramdisk/plugins/__init__.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/plugins 2024-04-15T19:52:18,284 copying build/lib/funtoo_ramdisk/plugins/btrfs.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/plugins 2024-04-15T19:52:18,286 copying build/lib/funtoo_ramdisk/plugins/lvm.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/plugins 2024-04-15T19:52:18,288 copying build/lib/funtoo_ramdisk/__init__.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,289 copying build/lib/funtoo_ramdisk/config_files.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,293 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support 2024-04-15T19:52:18,294 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/module_configs 2024-04-15T19:52:18,295 copying build/lib/funtoo_ramdisk/support/module_configs/__init__.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/module_configs 2024-04-15T19:52:18,298 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/module_configs/full 2024-04-15T19:52:18,298 copying build/lib/funtoo_ramdisk/support/module_configs/full/__init__.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/module_configs/full 2024-04-15T19:52:18,300 copying build/lib/funtoo_ramdisk/support/module_configs/full/modules.copy -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/module_configs/full 2024-04-15T19:52:18,302 copying build/lib/funtoo_ramdisk/support/module_configs/full/modules.autoload -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/module_configs/full 2024-04-15T19:52:18,304 copying build/lib/funtoo_ramdisk/support/__init__.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support 2024-04-15T19:52:18,306 copying build/lib/funtoo_ramdisk/support/initramfs.cpio -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support 2024-04-15T19:52:18,309 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc 2024-04-15T19:52:18,310 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc/plugins 2024-04-15T19:52:18,312 copying build/lib/funtoo_ramdisk/support/etc/plugins/__init__.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc/plugins 2024-04-15T19:52:18,314 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc/plugins/scan_mode 2024-04-15T19:52:18,315 copying build/lib/funtoo_ramdisk/support/etc/plugins/scan_mode/__init__.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc/plugins/scan_mode 2024-04-15T19:52:18,317 copying build/lib/funtoo_ramdisk/support/etc/plugins/scan_mode/legacy.sh -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc/plugins/scan_mode 2024-04-15T19:52:18,320 copying build/lib/funtoo_ramdisk/support/etc/plugins/scan_mode/udev.sh -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc/plugins/scan_mode 2024-04-15T19:52:18,322 copying build/lib/funtoo_ramdisk/support/etc/initrd.defaults -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc 2024-04-15T19:52:18,325 copying build/lib/funtoo_ramdisk/support/etc/initrd.scripts -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support/etc 2024-04-15T19:52:18,327 copying build/lib/funtoo_ramdisk/support/linuxrc -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk/support 2024-04-15T19:52:18,329 copying build/lib/funtoo_ramdisk/plugin_base.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,332 copying build/lib/funtoo_ramdisk/modules.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,335 copying build/lib/funtoo_ramdisk/const.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,337 copying build/lib/funtoo_ramdisk/utilities.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,338 copying build/lib/funtoo_ramdisk/args.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,341 copying build/lib/funtoo_ramdisk/version.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,342 copying build/lib/funtoo_ramdisk/initramfs.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,345 copying build/lib/funtoo_ramdisk/kernel.py -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk 2024-04-15T19:52:18,346 running install_egg_info 2024-04-15T19:52:18,376 Copying funtoo_ramdisk.egg-info to build/bdist.linux-armv7l/wheel/funtoo_ramdisk-1.1.7-py3.11.egg-info 2024-04-15T19:52:18,386 running install_scripts 2024-04-15T19:52:18,387 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk-1.1.7.data 2024-04-15T19:52:18,388 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk-1.1.7.data/scripts 2024-04-15T19:52:18,389 copying build/scripts-3.11/ramdisk -> build/bdist.linux-armv7l/wheel/funtoo_ramdisk-1.1.7.data/scripts 2024-04-15T19:52:18,391 changing mode of build/bdist.linux-armv7l/wheel/funtoo_ramdisk-1.1.7.data/scripts/ramdisk to 755 2024-04-15T19:52:18,404 creating build/bdist.linux-armv7l/wheel/funtoo_ramdisk-1.1.7.dist-info/WHEEL 2024-04-15T19:52:18,407 creating '/tmp/pip-wheel-u1fdor9p/funtoo_ramdisk-1.1.7-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it 2024-04-15T19:52:18,409 adding 'funtoo_ramdisk/__init__.py' 2024-04-15T19:52:18,410 adding 'funtoo_ramdisk/args.py' 2024-04-15T19:52:18,412 adding 'funtoo_ramdisk/config_files.py' 2024-04-15T19:52:18,413 adding 'funtoo_ramdisk/const.py' 2024-04-15T19:52:18,415 adding 'funtoo_ramdisk/initramfs.py' 2024-04-15T19:52:18,417 adding 'funtoo_ramdisk/kernel.py' 2024-04-15T19:52:18,418 adding 'funtoo_ramdisk/log.py' 2024-04-15T19:52:18,421 adding 'funtoo_ramdisk/modules.py' 2024-04-15T19:52:18,423 adding 'funtoo_ramdisk/plugin_base.py' 2024-04-15T19:52:18,424 adding 'funtoo_ramdisk/utilities.py' 2024-04-15T19:52:18,425 adding 'funtoo_ramdisk/version.py' 2024-04-15T19:52:18,427 adding 'funtoo_ramdisk/plugins/__init__.py' 2024-04-15T19:52:18,428 adding 'funtoo_ramdisk/plugins/btrfs.py' 2024-04-15T19:52:18,429 adding 'funtoo_ramdisk/plugins/core.py' 2024-04-15T19:52:18,430 adding 'funtoo_ramdisk/plugins/lvm.py' 2024-04-15T19:52:18,432 adding 'funtoo_ramdisk/support/__init__.py' 2024-04-15T19:52:18,434 adding 'funtoo_ramdisk/support/initramfs.cpio' 2024-04-15T19:52:18,435 adding 'funtoo_ramdisk/support/linuxrc' 2024-04-15T19:52:18,437 adding 'funtoo_ramdisk/support/etc/initrd.defaults' 2024-04-15T19:52:18,438 adding 'funtoo_ramdisk/support/etc/initrd.scripts' 2024-04-15T19:52:18,440 adding 'funtoo_ramdisk/support/etc/plugins/__init__.py' 2024-04-15T19:52:18,441 adding 'funtoo_ramdisk/support/etc/plugins/scan_mode/__init__.py' 2024-04-15T19:52:18,443 adding 'funtoo_ramdisk/support/etc/plugins/scan_mode/legacy.sh' 2024-04-15T19:52:18,444 adding 'funtoo_ramdisk/support/etc/plugins/scan_mode/udev.sh' 2024-04-15T19:52:18,445 adding 'funtoo_ramdisk/support/module_configs/__init__.py' 2024-04-15T19:52:18,446 adding 'funtoo_ramdisk/support/module_configs/full/__init__.py' 2024-04-15T19:52:18,448 adding 'funtoo_ramdisk/support/module_configs/full/modules.autoload' 2024-04-15T19:52:18,449 adding 'funtoo_ramdisk/support/module_configs/full/modules.copy' 2024-04-15T19:52:18,451 adding 'funtoo_ramdisk-1.1.7.data/scripts/ramdisk' 2024-04-15T19:52:18,454 adding 'funtoo_ramdisk-1.1.7.dist-info/METADATA' 2024-04-15T19:52:18,455 adding 'funtoo_ramdisk-1.1.7.dist-info/WHEEL' 2024-04-15T19:52:18,456 adding 'funtoo_ramdisk-1.1.7.dist-info/top_level.txt' 2024-04-15T19:52:18,457 adding 'funtoo_ramdisk-1.1.7.dist-info/RECORD' 2024-04-15T19:52:18,459 removing build/bdist.linux-armv7l/wheel 2024-04-15T19:52:18,580 Building wheel for funtoo-ramdisk (setup.py): finished with status 'done' 2024-04-15T19:52:18,583 Created wheel for funtoo-ramdisk: filename=funtoo_ramdisk-1.1.7-py3-none-any.whl size=35296 sha256=3f6ee8459b06d90b3b3dd6927b3d64ede7b5523b25979148ac1dfab00b76f35b 2024-04-15T19:52:18,584 Stored in directory: /tmp/pip-ephem-wheel-cache-4w5vh3kr/wheels/18/b2/de/39474895575cca7e6ec1e9b3b3bd06d0dfcb194dd416b26591 2024-04-15T19:52:18,596 Successfully built funtoo-ramdisk 2024-04-15T19:52:18,601 Removed build tracker: '/tmp/pip-build-tracker-ej16m28f'