Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lvm2: cleanup & fix eval error when systemd=null #62660

Merged
merged 4 commits into from Oct 14, 2019

Conversation

joachifm
Copy link
Contributor

@joachifm joachifm commented Jun 4, 2019

No description provided.

@joachifm
Copy link
Contributor Author

joachifm commented Jun 4, 2019

@GrahamcOfBorg build lvm2

sed -i /DEFAULT_SYS_DIR/d Makefile.in
sed -i /DEFAULT_PROFILE_DIR/d conf/Makefile.in
'' + stdenv.lib.optionalString (systemd != null) ''
substituteInPlace scripts/lvm2_activation_generator_systemd_red_hat.c \
--replace /usr/bin/udevadm ${systemd}/bin/udevadm
'';

# gcc: error: ../../device_mapper/libdevice-mapper.a: No such file or directory
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, forgot to remove this comment ...

The closure still picks up systemd via udev, however, overriding with eudev is
necessary to avoid the reference.
@joachifm
Copy link
Contributor Author

@GrahamcOfBorg build systemd_with_lvm2

@joachifm joachifm merged commit bd58bdc into NixOS:master Oct 14, 2019
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Oct 29, 2019
lvm2: cleanup & fix eval error when systemd=null
(cherry picked from commit bd58bdc)
@kirelagin
Copy link
Member

FTR I am getting the libdevice-mapper.a thing from 494d2de.

@joachifm joachifm deleted the feat/lvm2-nonSystemd branch April 6, 2020 13:05
@nh2
Copy link
Contributor

nh2 commented Feb 9, 2021

@joachifm How do you use this / for what? (I'm looking into building pkgsStatic.parted which depends on lvm2 so just checking if you already did something like that.)

Edit: This works:

https://github.com/nh2/parted/releases/tag/v3.3

nix-build -E '(import <nixpkgs> {}).pkgsStatic.parted.override { lvm2 = null; }'

@joachifm
Copy link
Contributor Author

joachifm commented Feb 9, 2021

@nh2 I used it for a minimal Linux appliance that needed LVM2 but not systemd et al, so this was really part of a larger patch set that sought to allow stuff to be built without "unnecessary" (for my purposes) deps. A version that supports static linking sounds great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants