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 Christian Heusel (gromit) - Saturday, 02 September 2023, 10:07 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
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

Closed by  Christian Heusel (gromit)
Saturday, 02 September 2023, 10:07 GMT
Reason for closing:  Won't implement
Additional comments about closing:  See comments
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.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...