Skip to content

Commit dd10c29

Browse files
committed
Clean up module-setup.sh
1 parent a7568dc commit dd10c29

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/plugins/askpassd/module-setup.sh.in

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ check() {
1010
# If petera is not installed,
1111
# then we cannot support it
1212
require_binaries petera \
13-
"$systemdsystemunitdir/petera-askpassd.service" \
14-
"$systemdsystemunitdir/petera-askpassd.path" \
1513
@PETERA_PLUGINS@/askpassd.so \
1614
@PETERA_PLUGINS@/decrypt.so \
1715
|| return 1
@@ -20,7 +18,7 @@ check() {
2018
}
2119

2220
depends() {
23-
echo crypt systemd
21+
echo crypt systemd network
2422
return 0
2523
}
2624

@@ -39,10 +37,11 @@ install() {
3937
"$systemdsystemunitdir/petera-askpassd.path" \
4038
@PETERA_PLUGINS@/askpassd.so \
4139
@PETERA_PLUGINS@/decrypt.so \
42-
@PETERA_CONF@/disks.d
40+
@PETERA_CONF@/disks.d/*
4341

42+
mkdir -p "$initdir/$systemdsystemunitdir/cryptsetup.target.wants"
4443
ln_r "$systemdsystemunitdir/petera-askpassd.path" \
45-
"$systemdsystemunitdir/basic.target.wants/petera-askpassd.path"
44+
"$systemdsystemunitdir/cryptsetup.target.wants/petera-askpassd.path"
4645

4746
dracut_need_initqueue
4847
}

0 commit comments

Comments
 (0)