X Tutup
Skip to content

Commit 63c862b

Browse files
committed
cryptsetup: fix ordering loop when dealing with encrypted swap devices
https://bugzilla.redhat.com/show_bug.cgi?id=657234
1 parent ed86ebc commit 63c862b

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

Makefile.am

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,14 +1190,12 @@ install-data-hook:
11901190
fsck-root.service \
11911191
remount-rootfs.service \
11921192
var-run.mount \
1193-
var-lock.mount \
1194-
cryptsetup.target && \
1193+
var-lock.mount && \
11951194
$(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
11961195
$(LN_S) ../fsck-root.service fsck-root.service && \
11971196
$(LN_S) ../remount-rootfs.service remount-rootfs.service && \
11981197
$(LN_S) ../var-run.mount var-run.mount && \
1199-
$(LN_S) ../var-lock.mount var-lock.mount && \
1200-
$(LN_S) ../cryptsetup.target )
1198+
$(LN_S) ../var-lock.mount var-lock.mount )
12011199
( cd $(DESTDIR)$(userunitdir) && \
12021200
rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
12031201
$(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
@@ -1253,7 +1251,8 @@ install-data-hook:
12531251
systemd-random-seed-load.service \
12541252
systemd-tmpfiles-setup.service \
12551253
systemd-sysctl.service \
1256-
systemd-ask-password-console.path && \
1254+
systemd-ask-password-console.path \
1255+
cryptsetup.target && \
12571256
$(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
12581257
$(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
12591258
$(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
@@ -1264,7 +1263,8 @@ install-data-hook:
12641263
$(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
12651264
$(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
12661265
$(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1267-
$(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
1266+
$(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
1267+
$(LN_S) ../cryptsetup.target cryptsetup.target )
12681268
( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
12691269
rm -f systemd-tmpfiles-clean.timer && \
12701270
$(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )

TODO

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
Bugs:
22

3-
* dep loop when using encrypted swap
4-
https://bugzilla.redhat.com/show_bug.cgi?id=657234
5-
63
* somehow some /etc/fstab supplied mount params are never applied to api fs
74
https://bugzilla.redhat.com/show_bug.cgi?id=663108
85

units/cryptsetup.target

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@
99

1010
[Unit]
1111
Description=Encrypted Volumes
12-
13-
[Install]
14-
WantedBy=local-fs.target

0 commit comments

Comments
 (0)
X Tutup