2021-03-31 18:24:19 +02:00
|
|
|
From 2f4a5e9c9ef1cd57662e8bd4c24e1029a00d55b5 Mon Sep 17 00:00:00 2001
|
2020-01-26 14:56:41 +01:00
|
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
|
|
Date: Tue, 8 Jan 2013 15:46:30 +0100
|
2021-03-31 18:24:19 +02:00
|
|
|
Subject: [PATCH 01/19] Start device units for uninitialised encrypted devices
|
2020-01-26 14:56:41 +01:00
|
|
|
|
|
|
|
This is necessary because the NixOS service that initialises the
|
|
|
|
filesystem depends on the appearance of the device unit. Also, this
|
|
|
|
makes more sense to me: the device is ready; it's the filesystem
|
|
|
|
that's not, but taking care of that is the responsibility of the mount
|
|
|
|
unit. (However, this ignores the fsck unit, so it's not perfect...)
|
|
|
|
---
|
2020-03-07 23:47:22 +01:00
|
|
|
rules.d/99-systemd.rules.in | 4 ----
|
2020-01-26 14:56:41 +01:00
|
|
|
1 file changed, 4 deletions(-)
|
|
|
|
|
2020-03-07 23:47:22 +01:00
|
|
|
diff --git a/rules.d/99-systemd.rules.in b/rules.d/99-systemd.rules.in
|
2021-03-31 18:24:19 +02:00
|
|
|
index 7c22eefdb7..e3a55e00b5 100644
|
2020-03-07 23:47:22 +01:00
|
|
|
--- a/rules.d/99-systemd.rules.in
|
|
|
|
+++ b/rules.d/99-systemd.rules.in
|
2020-01-26 14:56:41 +01:00
|
|
|
@@ -17,10 +17,6 @@ SUBSYSTEM=="ubi", TAG+="systemd"
|
|
|
|
SUBSYSTEM=="block", TAG+="systemd"
|
|
|
|
SUBSYSTEM=="block", ACTION=="add", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"
|
|
|
|
|
|
|
|
-# Ignore encrypted devices with no identified superblock on it, since
|
|
|
|
-# we are probably still calling mke2fs or mkswap on it.
|
|
|
|
-SUBSYSTEM=="block", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0"
|
|
|
|
-
|
|
|
|
# add symlink to GPT root disk
|
|
|
|
SUBSYSTEM=="block", ENV{ID_PART_GPT_AUTO_ROOT}=="1", ENV{ID_FS_TYPE}!="crypto_LUKS", SYMLINK+="gpt-auto-root"
|
|
|
|
SUBSYSTEM=="block", ENV{ID_PART_GPT_AUTO_ROOT}=="1", ENV{ID_FS_TYPE}=="crypto_LUKS", SYMLINK+="gpt-auto-root-luks"
|
|
|
|
--
|
2021-03-31 18:24:19 +02:00
|
|
|
2.30.1
|
2020-01-26 14:56:41 +01:00
|
|
|
|