Package Details: rebuild-initramfs-dracut-hook 2.1.1-1

Git Clone URL: https://aur.archlinux.org/rebuild-initramfs-dracut.git (read-only, click to copy)
Package Base: rebuild-initramfs-dracut
Description: Install/remove hooks for dracut, based on rebuild-initramfs
Upstream URL: https://github.com/xuanruiqi/rebuild-initramfs-dracut-arch
Licenses: MIT
Conflicts: rebuild-initramfs-dracut-legacy-hook
Submitter: xuanruiqi
Maintainer: xuanruiqi
Last Packager: xuanruiqi
Votes: 6
Popularity: 0.000067
First Submitted: 2020-06-04 22:44 (UTC)
Last Updated: 2024-04-30 19:03 (UTC)

Pinned Comments

xuanruiqi commented on 2024-04-28 14:49 (UTC)

I've rewritten the tool in Python. If you're fine with the old script or you don't want to pull in the new dependencies, you can stick with the legacy version which won't receive any updates.

Latest Comments

1 2 Next › Last »

xuanruiqi commented on 2024-04-30 14:40 (UTC)

I am guessing that you have a malformed configuration file. I should add some checks to catch this.

xuanruiqi commented on 2024-04-30 14:37 (UTC)

I will try to reproduce and fix this. Meanwhile, could you report bugs in the program on GitHub rather than here, to make it easy for me to track? Thanks.

merlock commented on 2024-04-30 12:57 (UTC)

2.0.2-1 build fine.

Problem after install:

rebuild-initramfs linux linux-lts
Traceback (most recent call last):
  File "/usr/bin/rebuild-initramfs", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/rebuild_initramfs.py", line 198, in main
    verbosity = 2 if config.get("verbose", False) else 1
                     ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

xuanruiqi commented on 2024-04-30 10:51 (UTC)

Sorry, added setuptools and wheel as makedeps. Now it should build fine.

alitajelsir commented on 2024-04-29 21:02 (UTC) (edited on 2024-04-30 14:54 (UTC) by alitajelsir)

@xuanruiqi,

  • Please add python-setuptools as makedepends. Thanks in Advance!

xuanruiqi commented on 2024-04-29 15:16 (UTC)

Sorry, apparently I forgot to add python-build and python-installer to makedepends. Adding now.

merlock commented on 2024-04-28 20:51 (UTC)

Attempting to build in clean chroot. Error:

==> Retrieving sources...
  -> Found rebuild-initramfs-dracut-2.0.1.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting rebuild-initramfs-dracut-2.0.1.tar.gz with bsdtar
==> Starting build()...
/usr/bin/python: No module named build
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /home/merell/chroot/merell/build

xuanruiqi commented on 2024-04-28 14:49 (UTC)

I've rewritten the tool in Python. If you're fine with the old script or you don't want to pull in the new dependencies, you can stick with the legacy version which won't receive any updates.

merlock commented on 2024-02-04 23:07 (UTC)

Late getting back; aren't the commands in the script actually considered command-line options (which override *.conf files)?

xuanruiqi commented on 2024-01-19 18:18 (UTC)

Hi! I certainly can't replicate 1, because I'm just directly calling the dracut binary from a shell script and dracut should load these config files automatically, unless overridden by command-line options. It must be a configuration problem: most likely your config files don't have .conf extension.

Regarding 2: it is not possible right now. I've always planned to rewrite this in Python, as the growing list of functionalities make a shell script difficult to manage.