Skip to content

Commit

Permalink
Clean up module-setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
npmccallum committed May 20, 2015
1 parent a7568dc commit dd10c29
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/plugins/askpassd/module-setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ check() {
# If petera is not installed,
# then we cannot support it
require_binaries petera \
"$systemdsystemunitdir/petera-askpassd.service" \
"$systemdsystemunitdir/petera-askpassd.path" \
@PETERA_PLUGINS@/askpassd.so \
@PETERA_PLUGINS@/decrypt.so \
|| return 1
Expand All @@ -20,7 +18,7 @@ check() {
}

depends() {
echo crypt systemd
echo crypt systemd network
return 0
}

Expand All @@ -39,10 +37,11 @@ install() {
"$systemdsystemunitdir/petera-askpassd.path" \
@PETERA_PLUGINS@/askpassd.so \
@PETERA_PLUGINS@/decrypt.so \
@PETERA_CONF@/disks.d
@PETERA_CONF@/disks.d/*

mkdir -p "$initdir/$systemdsystemunitdir/cryptsetup.target.wants"
ln_r "$systemdsystemunitdir/petera-askpassd.path" \
"$systemdsystemunitdir/basic.target.wants/petera-askpassd.path"
"$systemdsystemunitdir/cryptsetup.target.wants/petera-askpassd.path"

dracut_need_initqueue
}

0 comments on commit dd10c29

Please sign in to comment.