Compare commits
2 Commits
6695795ac7
...
ee23e73ce4
Author | SHA1 | Date |
---|---|---|
Luca Boccassi | ee23e73ce4 | |
Luca Boccassi | eb9691bd05 |
|
@ -833,6 +833,10 @@ int generator_write_cryptsetup_unit_section(
|
||||||
"Wants=blockdev@dev-mapper-%%i.target\n"
|
"Wants=blockdev@dev-mapper-%%i.target\n"
|
||||||
"IgnoreOnIsolate=true\n");
|
"IgnoreOnIsolate=true\n");
|
||||||
|
|
||||||
|
/* Ensure confexts can be used to customize unlocking disks */
|
||||||
|
if (in_initrd() && !dir_is_empty("/.extra/confext/", /* ignore_hidden_or_backup= */ true))
|
||||||
|
fprintf(f, "After=systemd-confext.service\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -907,6 +911,10 @@ int generator_write_veritysetup_unit_section(
|
||||||
"Before=blockdev@dev-mapper-%%i.target\n"
|
"Before=blockdev@dev-mapper-%%i.target\n"
|
||||||
"Wants=blockdev@dev-mapper-%%i.target\n");
|
"Wants=blockdev@dev-mapper-%%i.target\n");
|
||||||
|
|
||||||
|
/* Ensure confexts can be used to customize setting up disks */
|
||||||
|
if (in_initrd() && !dir_is_empty("/.extra/confext/", /* ignore_hidden_or_backup= */ true))
|
||||||
|
fprintf(f, "After=systemd-confext.service\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue