]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: replace "-" with "none" in cryptsetup commands and crypttab
authornl6720 <nl6720@gmail.com>
Sat, 18 Jan 2025 15:46:03 +0000 (17:46 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Jan 2025 19:37:14 +0000 (04:37 +0900)
`none` is more explicit and harder to overlook than `-` which in certain
contexts could be misunderstood to mean standard input.

man/fido2-crypttab.sh
man/systemd-cryptenroll.xml
man/tpm2-crypttab.sh
man/yubikey-crypttab.sh

index 6823958a4e4b0b5dd38db5c9ecabd7957e086870..31ecfeaffd09f0f5ecca86570d37b11243d29a1d 100644 (file)
@@ -5,7 +5,7 @@
 sudo systemd-cryptenroll --fido2-device=auto /dev/sdXn
 
 # Test: Let's run systemd-cryptsetup to test if this worked.
-sudo systemd-cryptsetup attach mytest /dev/sdXn - fido2-device=auto
+sudo systemd-cryptsetup attach mytest /dev/sdXn none fido2-device=auto
 
 # If that worked, let's now add the same line persistently to /etc/crypttab,
 # for the future. We do not want to use the (unstable) /dev/sdX name, so let's
@@ -13,7 +13,7 @@ sudo systemd-cryptsetup attach mytest /dev/sdXn - fido2-device=auto
 udevadm info -q symlink -r /dev/sdXn
 
 # Now add the line using the by-uuid symlink to /etc/crypttab:
-sudo bash -c 'echo "mytest /dev/disk/by-uuid/... - fido2-device=auto" >>/etc/crypttab'
+sudo bash -c 'echo "mytest /dev/disk/by-uuid/... none fido2-device=auto" >>/etc/crypttab'
 
 # Depending on your distribution and encryption setup, you may need to manually
 # regenerate your initramfs to be able to use a FIDO2 device to unlock the
index b80a63f4266ccafa3897f1f00e470c89ee01e77d..7c2f4ec0e59f9d705e137fd2df5e8155dc4c146d 100644 (file)
         <para>In order to unlock a LUKS2 volume with an enrolled PKCS#11 security token, specify the
         <option>pkcs11-uri=</option> option in the respective <filename>/etc/crypttab</filename> line:</para>
 
-        <programlisting>myvolume /dev/sda1 - pkcs11-uri=auto</programlisting>
+        <programlisting>myvolume /dev/sda1 none pkcs11-uri=auto</programlisting>
 
         <para>See
         <citerefentry><refentrytitle>crypttab</refentrytitle><manvolnum>5</manvolnum></citerefentry> for a
         <para>In order to unlock a LUKS2 volume with an enrolled FIDO2 security token, specify the
         <option>fido2-device=</option> option in the respective <filename>/etc/crypttab</filename> line:</para>
 
-        <programlisting>myvolume /dev/sda1 - fido2-device=auto</programlisting>
+        <programlisting>myvolume /dev/sda1 none fido2-device=auto</programlisting>
 
         <para>See
         <citerefentry><refentrytitle>crypttab</refentrytitle><manvolnum>5</manvolnum></citerefentry> for a
         <para>In order to unlock a LUKS2 volume with an enrolled TPM2 security chip, specify the
         <option>tpm2-device=</option> option in the respective <filename>/etc/crypttab</filename> line:</para>
 
-        <programlisting>myvolume /dev/sda1 - tpm2-device=auto</programlisting>
+        <programlisting>myvolume /dev/sda1 none tpm2-device=auto</programlisting>
 
         <para>See
         <citerefentry><refentrytitle>crypttab</refentrytitle><manvolnum>5</manvolnum></citerefentry> for a
index aff0c9b62a2c18e062c4a5cd8fff8afe66bd804c..765c1ee8eb4bcab6e1520fcae1ef94d578e8de16 100644 (file)
@@ -5,7 +5,7 @@
 sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=7 /dev/sdXn
 
 # Test: Let's run systemd-cryptsetup to test if this worked.
-sudo systemd-cryptsetup attach mytest /dev/sdXn - tpm2-device=auto
+sudo systemd-cryptsetup attach mytest /dev/sdXn none tpm2-device=auto
 
 # If that worked, let's now add the same line persistently to /etc/crypttab,
 # for the future. We do not want to use the (unstable) /dev/sdX name, so let's
@@ -13,7 +13,7 @@ sudo systemd-cryptsetup attach mytest /dev/sdXn - tpm2-device=auto
 udevadm info -q symlink -r /dev/sdXn
 
 # Now add the line using the by-uuid symlink to /etc/crypttab:
-sudo bash -c 'echo "mytest /dev/disk/by-uuid/... - tpm2-device=auto" >>/etc/crypttab'
+sudo bash -c 'echo "mytest /dev/disk/by-uuid/... none tpm2-device=auto" >>/etc/crypttab'
 
 # And now let's check that automatic unlocking works:
 sudo systemd-cryptsetup detach mytest
index 291ec42e32ba1818e230c5148cf7d7aa2fb4bc4d..e5679537c039e34f352581d77bb3e18f668106f7 100644 (file)
@@ -21,7 +21,7 @@ rm pubkey.pem
 sudo systemd-cryptenroll --pkcs11-token-uri=auto /dev/sdXn
 
 # Test: Let's run systemd-cryptsetup to test if this all worked.
-sudo systemd-cryptsetup attach mytest /dev/sdXn - pkcs11-uri=auto
+sudo systemd-cryptsetup attach mytest /dev/sdXn none pkcs11-uri=auto
 
 # If that worked, let's now add the same line persistently to /etc/crypttab,
 # for the future. We do not want to use the (unstable) /dev/sdX name, so let's
@@ -29,7 +29,7 @@ sudo systemd-cryptsetup attach mytest /dev/sdXn - pkcs11-uri=auto
 udevadm info -q symlink -r /dev/sdXn
 
 # Now add the line using the by-uuid symlink to /etc/crypttab:
-sudo bash -c 'echo "mytest /dev/disk/by-uuid/... - pkcs11-uri=auto" >>/etc/crypttab'
+sudo bash -c 'echo "mytest /dev/disk/by-uuid/... none pkcs11-uri=auto" >>/etc/crypttab'
 
 # Depending on your distribution and encryption setup, you may need to manually
 # regenerate your initramfs to be able to use a Yubikey / PKCS#11 token to