Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941295 - sys-fs/loop-aes build-initrd.sh calling 'losetup' executes the wrong one
Summary: sys-fs/loop-aes build-initrd.sh calling 'losetup' executes the wrong one
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Hank Leininger
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-10-12 01:13 UTC by Hank Leininger
Modified: 2024-10-12 02:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hank Leininger 2024-10-12 01:13:25 UTC
loop-aes expects/is intended to patch losetup and mount from util-linux. But on Gentoo our packaging leaves these alone, instead installs loop-aes-losetup and does not bother with a loop-aes-mount.

Starting with loop-aes-3.7w I added changes to the initrd generation script to
explicitly call losetup and then mount, to work around incompatibilities.

However on an already-installed system where the initrd is rebuilt, this ends up calling the unpatched losetup which does not handle the loop-aes-specific arguments.

Instead, build-initrd.sh needs to check for and prefer loop-aes-losetup if it is present.