Skip to content

Commit

Permalink
Merge pull request #150 from Olf0/sfos220qcrypto+
Browse files Browse the repository at this point in the history
Commits for v1.4.3
  • Loading branch information
Olf0 authored Mar 16, 2021
2 parents 9bc47c4 + 348e852 commit c0526f2
Show file tree
Hide file tree
Showing 6 changed files with 516 additions and 36 deletions.
514 changes: 493 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion rpm/crypto-sdcard.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: crypto-sdcard
Summary: Configuration files for unlocking and mounting encrypted SD-cards automatically
Version: 1.4.2
Version: 1.4.3
# Since v1.3.1, the release version consists of two or three fields, separated by a dot ("."):
# - The first field must contain a natural number greater than zero.
# This number may be prefixed by one of {alpha,beta,stable}, e.g. "alpha13".
Expand Down
10 changes: 7 additions & 3 deletions systemd/system/[email protected]
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[Unit]
Description=Open DM-Crypt LUKS on SD-card %I
Documentation=https://github.com/Olf0/crypto-sdcard
After=systemd-udevd.service dev-%i.device
BindsTo=dev-%i.device
Conflicts=umount.target actdead.target factory-test.target
DefaultDependencies=no
After=sysinit.target dev-%i.device
Requisite=dev-%i.device
Requires=sysinit.target
Conflicts=umount.target shutdown.target actdead.target factory-test.target
Before=umount.target shutdown.target mount-cryptosd-luks@%i.service
IgnoreOnIsolate=true
AssertFileNotEmpty=/etc/crypto-sdcard/%I.key

[Service]
Expand Down
10 changes: 7 additions & 3 deletions systemd/system/[email protected]
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[Unit]
Description=Open DM-Crypt "plain" on SD-card %I
Documentation=https://github.com/Olf0/crypto-sdcard
After=systemd-udevd.service dev-%i.device
BindsTo=dev-%i.device
Conflicts=umount.target actdead.target factory-test.target
DefaultDependencies=no
After=sysinit.target dev-%i.device
Requisite=dev-%i.device
Requires=sysinit.target
Conflicts=umount.target shutdown.target actdead.target factory-test.target
Before=umount.target shutdown.target mount-cryptosd-plain@%i.service
IgnoreOnIsolate=true
AssertFileNotEmpty=/etc/crypto-sdcard/%I.key

[Service]
Expand Down
8 changes: 4 additions & 4 deletions systemd/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Description=Mount LUKS encrypted SD-card (%I) with udisks
Documentation=https://github.com/Olf0/crypto-sdcard
After=udisks2.service cryptosd-luks@%i.service dev-mapper-%i.device start-user-session.service
BindsTo=dev-mapper-%i.device cryptosd-luks@%i.service
Requires=udisks2.service
Requisite=dev-mapper-%i.device
Requires=udisks2.service cryptosd-luks@%i.service
# Allow for rescue.target and conflict with umount.target (see
# man 7 systemd.special; needed explicitly for the new ExecStopPost
# statement as this a mounting unit, though not a mount unit):
Expand All @@ -12,7 +12,7 @@ Conflicts=umount.target actdead.target factory-test.target
# is started (and even more importantly that it is shut down, *after*
# alien-service-manager is shut down), to allow for e.g. (and more),
# android_storage on encrypted SD-card:
Before=alien-service-manager.service
Before=alien-service-manager.service umount.target

[Service]
User=nemo
Expand All @@ -22,5 +22,5 @@ EnvironmentFile=-/var/lib/environment/udisks2/%[email protected]
EnvironmentFile=-/var/lib/environment/udisks2/%p@%I.conf
ExecStart=/usr/bin/udisksctl mount $UDISKS2_MOUNT_OPTIONS -b /dev/mapper/%I
ExecStop=/usr/bin/udisksctl unmount -b /dev/mapper/%I
ExecStopPost=/bin/umount -vrq /dev/%I
ExecStopPost=/bin/umount -vrq /dev/mapper/%I

8 changes: 4 additions & 4 deletions systemd/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Description=Mount "plain" encrypted SD-card (%I) with udisks
Documentation=https://github.com/Olf0/crypto-sdcard
After=udisks2.service cryptosd-plain@%i.service dev-mapper-%i.device start-user-session.service
BindsTo=dev-mapper-%i.device cryptosd-plain@%i.service
Requires=udisks2.service
Requisite=dev-mapper-%i.device
Requires=udisks2.service cryptosd-plain@%i.service
# Allow for rescue.target and conflict with umount.target (see
# man 7 systemd.special; needed explicitly for the new ExecStopPost
# statement as this a mounting unit, though not a mount unit):
Expand All @@ -12,7 +12,7 @@ Conflicts=umount.target actdead.target factory-test.target
# is started (and even more importantly that it is shut down, *after*
# alien-service-manager is shut down), to allow for e.g. (and more),
# android_storage on encrypted SD-card:
Before=alien-service-manager.service
Before=alien-service-manager.service umount.target

[Service]
User=nemo
Expand All @@ -22,5 +22,5 @@ EnvironmentFile=-/var/lib/environment/udisks2/%[email protected]
EnvironmentFile=-/var/lib/environment/udisks2/%p@%I.conf
ExecStart=/usr/bin/udisksctl mount $UDISKS2_MOUNT_OPTIONS -b /dev/mapper/%I
ExecStop=/usr/bin/udisksctl unmount -b /dev/mapper/%I
ExecStopPost=/bin/umount -vrq /dev/%I
ExecStopPost=/bin/umount -vrq /dev/mapper/%I

0 comments on commit c0526f2

Please sign in to comment.