Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61481 - [parted] Add an initcpio hook that uses partprobe?

Attached to Project: Arch Linux
Opened by Neven Sajko (Neven) - Sunday, 20 January 2019, 14:49 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 10 December 2019, 13:33 GMT
Task Type Feature Request
Category Packages: Extra
Status Assigned
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

The attached hook uses partprobe to inform the kernel about partitions on a device. For the usecase, see [0], [1]. It is necessary to include the two files in the package source and install them to the obvious directory in the PKGBUILD.

[0] https://lists.archlinux.org/pipermail/arch-general/2019-January/045968.html

[1] https://wiki.archlinux.org/index.php?title=Talk:Dm-crypt/Encrypting_an_entire_system&oldid=564036#Can_we_rename_%22Plain_dm-crypt%22_to_%22LVM_on_plain_dm-crypt%22
This task depends upon

Comment by Robin Broda (coderobe) - Sunday, 20 January 2019, 16:06 GMT
fwiw i'd just call the hook `partprobe`, if anything.
i don't think it needs to be overly verbose, and that also fits with the current set of hooks we have
Comment by Neven Sajko (Neven) - Sunday, 20 January 2019, 16:13 GMT
A name change is fine by me.
Comment by Dave Reisner (falconindy) - Sunday, 20 January 2019, 17:46 GMT
As discussed on the list, this seems like an extremely niche use case. I'd suggest hosting your work somewhere and creating an AUR package for it to gauge interest. I don't really see the need for this to be generally available in the parted package.

As for the hook itself,

- It looks like you're expecting devMapRootPartitioned to be defined on the kernel command line? You probably want that documented. You probabably also want to follow local style of other command line options, which is to use snake case.
- For this to be more generally useful, you'd want a systemd-compatible version as well. You could write this as a udev rule, instead, which would work in both the busybox and systemd-based initramfs setups.

Loading...